Package com.dropbox.core.v2.files
Class FileLockMetadata.Builder
java.lang.Object
com.dropbox.core.v2.files.FileLockMetadata.Builder
- Enclosing class:
FileLockMetadata
Builder for
FileLockMetadata.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an instance ofFileLockMetadataconfigured with this builder's valueswithCreated(Date created) Set value for optional field.withIsLockholder(Boolean isLockholder) Set value for optional field.withLockholderAccountId(String lockholderAccountId) Set value for optional field.withLockholderName(String lockholderName) Set value for optional field.
-
Field Details
-
isLockholder
-
lockholderName
-
lockholderAccountId
-
created
-
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
withIsLockholder
Set value for optional field.- Parameters:
isLockholder- True if caller holds the file lock.- Returns:
- this builder
-
withLockholderName
Set value for optional field.- Parameters:
lockholderName- The display name of the lock holder.- Returns:
- this builder
-
withLockholderAccountId
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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
withCreated
Set value for optional field.- Parameters:
created- The timestamp of the lock was created.- Returns:
- this builder
-
build
Builds an instance ofFileLockMetadataconfigured with this builder's values- Returns:
- new instance of
FileLockMetadata
-