public static class LockResult.Builder
extends java.lang.Object
LockResult.| Modifier and Type | Field and Description |
|---|---|
protected long |
expiresAt |
protected java.lang.String |
fileId |
| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
| Modifier and Type | Method and Description |
|---|---|
LockResult |
build()
Builds an instance of
LockResult configured with this
builder's values |
LockResult.Builder |
withExpiresAt(java.lang.Long expiresAt)
Set value for optional field.
|
LockResult.Builder |
withFileId(java.lang.String fileId)
Set value for optional field.
|
public LockResult.Builder withFileId(java.lang.String fileId)
If left unset or set to null, defaults to "\"\"".
fileId - Must not be null. Defaults to "\"\""
when set to null.java.lang.IllegalArgumentException - If any argument does not meet its
preconditions.public LockResult.Builder withExpiresAt(java.lang.Long expiresAt)
If left unset or set to null, defaults to 0L.
expiresAt - The timestamp after which the lock will expire,
measured in seconds since 1970-01-01 00:00:00 UTC. Defaults to
0L when set to null.public LockResult build()
LockResult configured with this
builder's valuesLockResult