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.ObjectBuilder forFileLockMetadata.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Datecreatedprotected java.lang.BooleanisLockholderprotected java.lang.StringlockholderAccountIdprotected java.lang.StringlockholderName
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileLockMetadatabuild()Builds an instance ofFileLockMetadataconfigured with this builder's valuesFileLockMetadata.BuilderwithCreated(java.util.Date created)Set value for optional field.FileLockMetadata.BuilderwithIsLockholder(java.lang.Boolean isLockholder)Set value for optional field.FileLockMetadata.BuilderwithLockholderAccountId(java.lang.String lockholderAccountId)Set value for optional field.FileLockMetadata.BuilderwithLockholderName(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 ofFileLockMetadataconfigured with this builder's values- Returns:
- new instance of
FileLockMetadata
-
-