Package com.dropbox.core.v2.clouddocs
Class LockResult.Builder
- java.lang.Object
-
- com.dropbox.core.v2.clouddocs.LockResult.Builder
-
- Enclosing class:
- LockResult
public static class LockResult.Builder extends java.lang.Object
Builder forLockResult
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LockResult
build()
Builds an instance ofLockResult
configured with this builder's valuesLockResult.Builder
withExpiresAt(java.lang.Long expiresAt)
Set value for optional field.LockResult.Builder
withFileId(java.lang.String fileId)
Set value for optional field.
-
-
-
Method Detail
-
withFileId
public LockResult.Builder withFileId(java.lang.String fileId)
Set value for optional field.If left unset or set to
null
, defaults to"\"\""
.- Parameters:
fileId
- Must not benull
. Defaults to"\"\""
when set tonull
.- Returns:
- this builder
- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
withExpiresAt
public LockResult.Builder withExpiresAt(java.lang.Long expiresAt)
Set value for optional field.If left unset or set to
null
, defaults to0L
.- Parameters:
expiresAt
- The timestamp after which the lock will expire, measured in seconds since 1970-01-01 00:00:00 UTC. Defaults to0L
when set tonull
.- Returns:
- this builder
-
build
public LockResult build()
Builds an instance ofLockResult
configured with this builder's values- Returns:
- new instance of
LockResult
-
-