Package com.dropbox.core.v2.files
Class FileLockMetadata.Builder
- java.lang.Object
-
- com.dropbox.core.v2.files.FileLockMetadata.Builder
-
- Enclosing class:
- FileLockMetadata
public static class FileLockMetadata.Builder extends java.lang.Object
Builder forFileLockMetadata
.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Date
created
protected java.lang.Boolean
isLockholder
protected java.lang.String
lockholderAccountId
protected java.lang.String
lockholderName
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileLockMetadata
build()
Builds an instance ofFileLockMetadata
configured with this builder's valuesFileLockMetadata.Builder
withCreated(java.util.Date created)
Set value for optional field.FileLockMetadata.Builder
withIsLockholder(java.lang.Boolean isLockholder)
Set value for optional field.FileLockMetadata.Builder
withLockholderAccountId(java.lang.String lockholderAccountId)
Set value for optional field.FileLockMetadata.Builder
withLockholderName(java.lang.String lockholderName)
Set value for optional field.
-
-
-
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
-
build
public FileLockMetadata build()
Builds an instance ofFileLockMetadata
configured with this builder's values- Returns:
- new instance of
FileLockMetadata
-
-