Package com.dropbox.core.v2.files
Class FileLockMetadata
java.lang.Object
com.dropbox.core.v2.files.FileLockMetadata
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNoneFileLockMetadata(Boolean isLockholder, String lockholderName, String lockholderAccountId, Date created) UsenewBuilder()to create instances of this class without specifying values for all optional fields. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe timestamp of the lock was created.True if caller holds the file lock.The account ID of the lock holder if known.The display name of the lock holder.inthashCode()static FileLockMetadata.BuilderReturns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
isLockholder
-
lockholderName
-
lockholderAccountId
-
created
-
-
Constructor Details
-
FileLockMetadata
public FileLockMetadata(@Nullable Boolean isLockholder, @Nullable String lockholderName, @Nullable String lockholderAccountId, @Nullable Date created) UsenewBuilder()to create instances of this class without specifying values for all optional fields.- Parameters:
isLockholder- True if caller holds the file lock.lockholderName- The display name of the lock holder.lockholderAccountId- The account ID of the lock holder if known. Must have length of at least 40 and have length of at most 40.created- The timestamp of the lock was created.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
FileLockMetadata
public FileLockMetadata()NoneThe default values for unset fields will be used.
-
-
Method Details
-
getIsLockholder
True if caller holds the file lock.- Returns:
- value for this field, or
nullif not present.
-
getLockholderName
The display name of the lock holder.- Returns:
- value for this field, or
nullif not present.
-
getLockholderAccountId
The account ID of the lock holder if known.- Returns:
- value for this field, or
nullif not present.
-
getCreated
The timestamp of the lock was created.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
Returns a new builder for creating an instance of this class.- Returns:
- builder for this class.
-
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
-