public abstract class FileVersionEntry extends BaseFssApiResource
UTF_8| Modifier and Type | Method and Description |
|---|---|
static FileVersionEntry |
create(FssApiVersion apiVersion,
java.lang.String event,
java.lang.String username,
java.lang.Long size,
java.lang.Long timestamp,
int nanos,
java.lang.Short tsExtra,
java.lang.Boolean currentVersion,
java.lang.String etag,
java.lang.String eventArg)
Returns a versioned FileVersionEntry that is compatible with the specified apiVersion.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getEtag()
Returns the etag associated with the version
|
java.lang.String |
getEvent()
Returns the event type
|
java.lang.String |
getEventArg()
Returns argument associated with the event string
|
static java.lang.Class<? extends FileVersionEntry> |
getFssApiClass(FssApiVersion apiVersion)
Returns the
Class of the FileVersionEntry that corresponds to the specified
apiVersion. |
int |
getNanos()
Returns the nanoseconds associated with the file time
|
java.lang.Long |
getSize()
Returns the size of the version in string form
|
java.lang.Long |
getTimestamp()
Returns the time that the entry was created
|
java.lang.Short |
getTsExtra()
Returns the tsExtra value associated with the version
|
java.lang.String |
getUsername()
Returns the name of the user that created this version entry
|
int |
hashCode() |
java.lang.Boolean |
isCurrentVersion()
Returns whether or not this version represents the current version of the file
|
void |
validate(java.lang.String fieldName,
BaseFssApiResource parent)
Validates this object.
|
badValue, badValue, fromJson, toJson, toJson, toString, validate, validateFieldInRange, validateFieldInRange, validateFieldIsNull, validateFieldNotNull, validateLocale, validateOptionalField, validateOptionalFieldList, validateRequiredField, validateRequiredFieldList, writeToOutputStreampublic static java.lang.Class<? extends FileVersionEntry> getFssApiClass(FssApiVersion apiVersion)
Class of the FileVersionEntry that corresponds to the specified
apiVersion.apiVersion - API version of the class to be returnedClass of the entry that corresponds to the specified apiVersionpublic static FileVersionEntry create(FssApiVersion apiVersion, java.lang.String event, java.lang.String username, java.lang.Long size, java.lang.Long timestamp, int nanos, java.lang.Short tsExtra, java.lang.Boolean currentVersion, java.lang.String etag, java.lang.String eventArg) throws AwUnsupportedApiVersionException
event - Type of file version eventusername - Name of user that made the version changesize - size (in bytes) of the entry. This parameter is only applicable to files.timestamp - Time of the file version event.nanos - Nanoseconds associated with the timestamptsExtra - Timestamp qualifiercurrentVersion - True if this VersionEntry represents the current version of the fileetag - The etag for this version of the fileAwUnsupportedApiVersionException - The specified API
version is not supportedpublic java.lang.String getEvent()
public java.lang.String getUsername()
public java.lang.Long getSize()
public java.lang.Boolean isCurrentVersion()
public java.lang.Long getTimestamp()
public int getNanos()
public java.lang.Short getTsExtra()
public java.lang.String getEtag()
public java.lang.String getEventArg()
public void validate(java.lang.String fieldName,
BaseFssApiResource parent)
throws AwJsonException
validate in class BaseFssApiResourcefieldName - name of this object in the parent (containing) object. If this object is a
top-level object (not contained within another object), then enter null for this
parameterparent - parent (containing) object that contains the object specified in the fieldName
parameter. If this object is a top-level object (not contained within another
object), then enter null for this parameterAwJsonException - if any validation errors occurBaseFssApiResource.validate(String, BaseFssApiResource)public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object