public static class FileLockMetadata.Builder
extends java.lang.Object
FileLockMetadata
.Modifier and Type | Field and Description |
---|---|
protected java.util.Date |
created |
protected java.lang.Boolean |
isLockholder |
protected java.lang.String |
lockholderAccountId |
protected java.lang.String |
lockholderName |
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
FileLockMetadata |
build()
Builds an instance of
FileLockMetadata configured with this
builder's values |
FileLockMetadata.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.
|
protected java.lang.Boolean isLockholder
protected java.lang.String lockholderName
protected java.lang.String lockholderAccountId
protected java.util.Date created
public FileLockMetadata.Builder withIsLockholder(java.lang.Boolean isLockholder)
isLockholder
- True if caller holds the file lock.public FileLockMetadata.Builder withLockholderName(java.lang.String lockholderName)
lockholderName
- The display name of the lock holder.public FileLockMetadata.Builder withLockholderAccountId(java.lang.String lockholderAccountId)
lockholderAccountId
- The account ID of the lock holder if
known. Must have length of at least 40 and have length of at most
40.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public FileLockMetadata.Builder withCreated(java.util.Date created)
created
- The timestamp of the lock was created.public FileLockMetadata build()
FileLockMetadata
configured with this
builder's valuesFileLockMetadata