Class FileLockMetadata.Builder

    • Field Detail

      • isLockholder

        protected java.lang.Boolean isLockholder
      • lockholderName

        protected java.lang.String lockholderName
      • lockholderAccountId

        protected java.lang.String lockholderAccountId
      • created

        protected java.util.Date created
    • Constructor Detail

      • Builder

        protected Builder()
    • Method Detail

      • withIsLockholder

        public FileLockMetadata.Builder withIsLockholder​(java.lang.Boolean isLockholder)
        Set value for optional field.
        Parameters:
        isLockholder - True if caller holds the file lock.
        Returns:
        this builder
      • withLockholderName

        public FileLockMetadata.Builder withLockholderName​(java.lang.String lockholderName)
        Set value for optional field.
        Parameters:
        lockholderName - The display name of the lock holder.
        Returns:
        this builder
      • withLockholderAccountId

        public FileLockMetadata.Builder withLockholderAccountId​(java.lang.String lockholderAccountId)
        Set value for optional field.
        Parameters:
        lockholderAccountId - The account ID of the lock holder if known. Must have length of at least 40 and have length of at most 40.
        Returns:
        this builder
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • withCreated

        public FileLockMetadata.Builder withCreated​(java.util.Date created)
        Set value for optional field.
        Parameters:
        created - The timestamp of the lock was created.
        Returns:
        this builder