Class LockResult.Builder

  • Enclosing class:
    LockResult

    public static class LockResult.Builder
    extends java.lang.Object
    Builder for LockResult.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected long expiresAt  
      protected java.lang.String fileId  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Builder()  
    • Field Detail

      • fileId

        protected java.lang.String fileId
      • expiresAt

        protected long expiresAt
    • Constructor Detail

      • Builder

        protected Builder()
    • Method Detail

      • withFileId

        public LockResult.Builder withFileId​(java.lang.String fileId)
        Set value for optional field.

        If left unset or set to null, defaults to "\"\"".

        Parameters:
        fileId - Must not be null. Defaults to "\"\"" when set to null.
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withExpiresAt

        public LockResult.Builder withExpiresAt​(java.lang.Long expiresAt)
        Set value for optional field.

        If left unset or set to null, defaults to 0L.

        Parameters:
        expiresAt - The timestamp after which the lock will expire, measured in seconds since 1970-01-01 00:00:00 UTC. Defaults to 0L when set to null.
        Returns:
        this builder