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 SummaryFields Modifier and Type Field Description protected java.util.Datecreatedprotected java.lang.BooleanisLockholderprotected java.lang.StringlockholderAccountIdprotected java.lang.StringlockholderName
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedBuilder()
 - 
Method SummaryAll 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- 
withIsLockholderpublic FileLockMetadata.Builder withIsLockholder(java.lang.Boolean isLockholder) Set value for optional field.- Parameters:
- isLockholder- True if caller holds the file lock.
- Returns:
- this builder
 
 - 
withLockholderNamepublic FileLockMetadata.Builder withLockholderName(java.lang.String lockholderName) Set value for optional field.- Parameters:
- lockholderName- The display name of the lock holder.
- Returns:
- this builder
 
 - 
withLockholderAccountIdpublic 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.
 
 - 
withCreatedpublic FileLockMetadata.Builder withCreated(java.util.Date created) Set value for optional field.- Parameters:
- created- The timestamp of the lock was created.
- Returns:
- this builder
 
 - 
buildpublic FileLockMetadata build() Builds an instance ofFileLockMetadataconfigured with this builder's values- Returns:
- new instance of FileLockMetadata
 
 
- 
 
-