Package com.dropbox.core.v2.files
Class SingleUserLock
java.lang.Object
com.dropbox.core.v2.files.SingleUserLock
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSingleUserLock(Date created, String lockHolderAccountId) NoneSingleUserLock(Date created, String lockHolderAccountId, String lockHolderTeamId) -
Method Summary
-
Field Details
-
created
-
lockHolderAccountId
-
lockHolderTeamId
-
-
Constructor Details
-
SingleUserLock
public SingleUserLock(@Nonnull Date created, @Nonnull String lockHolderAccountId, @Nullable String lockHolderTeamId) - Parameters:
created- The time the lock was created. Must not benull.lockHolderAccountId- The account ID of the lock holder if known. Must have length of at least 40, have length of at most 40, and not benull.lockHolderTeamId- The id of the team of the account holder if it exists.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
SingleUserLock
NoneThe default values for unset fields will be used.
- Parameters:
created- The time the lock was created. Must not benull.lockHolderAccountId- The account ID of the lock holder if known. Must have length of at least 40, have length of at most 40, and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getCreated
The time the lock was created.- Returns:
- value for this field, never
null.
-
getLockHolderAccountId
The account ID of the lock holder if known.- Returns:
- value for this field, never
null.
-
getLockHolderTeamId
The id of the team of the account holder if it exists.- Returns:
- value for this field, or
nullif not present.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-