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.ObjectBuilder forLockResult.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LockResultbuild()Builds an instance ofLockResultconfigured with this builder's valuesLockResult.BuilderwithExpiresAt(java.lang.Long expiresAt)Set value for optional field.LockResult.BuilderwithFileId(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 to0Lwhen set tonull.- Returns:
- this builder
-
build
public LockResult build()
Builds an instance ofLockResultconfigured with this builder's values- Returns:
- new instance of
LockResult
-
-