public class FileLockMetadata
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FileLockMetadata.Builder
Builder for
FileLockMetadata . |
Modifier and Type | Field and Description |
---|---|
protected java.util.Date |
created |
protected java.lang.Boolean |
isLockholder |
protected java.lang.String |
lockholderAccountId |
protected java.lang.String |
lockholderName |
Constructor and Description |
---|
FileLockMetadata()
None
|
FileLockMetadata(java.lang.Boolean isLockholder,
java.lang.String lockholderName,
java.lang.String lockholderAccountId,
java.util.Date created)
Use
newBuilder to create instances of this class without
specifying values for all optional fields. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreated()
The timestamp of the lock was created.
|
java.lang.Boolean |
getIsLockholder()
True if caller holds the file lock.
|
java.lang.String |
getLockholderAccountId()
The account ID of the lock holder if known.
|
java.lang.String |
getLockholderName()
The display name of the lock holder.
|
int |
hashCode() |
static FileLockMetadata.Builder |
newBuilder()
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final java.lang.Boolean isLockholder
protected final java.lang.String lockholderName
protected final java.lang.String lockholderAccountId
protected final java.util.Date created
public FileLockMetadata(java.lang.Boolean isLockholder, java.lang.String lockholderName, java.lang.String lockholderAccountId, java.util.Date created)
newBuilder
to create instances of this class without
specifying values for all optional fields.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.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public FileLockMetadata()
The default values for unset fields will be used.
public java.lang.Boolean getIsLockholder()
null
if not present.public java.lang.String getLockholderName()
null
if not present.public java.lang.String getLockholderAccountId()
null
if not present.public java.util.Date getCreated()
null
if not present.public static FileLockMetadata.Builder newBuilder()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.