public abstract class LinkFileUpdateRequest extends LinkRequestBase
accessCode, itemName, linkTokenUTF_8| Modifier and Type | Method and Description |
|---|---|
static LinkFileUpdateRequest |
create(FssApiVersion apiVersion,
java.lang.String linkToken,
java.lang.String itemName,
java.lang.String accessCode,
java.lang.String path,
java.lang.Long size,
java.lang.String hash,
java.lang.String etag,
java.lang.Long atime,
java.lang.Long mtime,
java.io.InputStream input)
Returns a versioned LinkFileUpdateRequest that is compatible with the specified apiVersion.
|
java.lang.Long |
getATime()
Returns the Last Accessed time of the file created.
|
java.lang.String |
getEtag() |
static java.lang.Class<? extends LinkFileUpdateRequest> |
getFssApiClass(FssApiVersion apiVersion)
Returns the
Class of the LinkFileUpdateRequest that corresponds to the
specified apiVersion. |
java.lang.String |
getHash() |
java.io.InputStream |
getInput() |
java.lang.Long |
getMTime()
Returns the modified time of the file created.
|
java.lang.String |
getPath() |
java.lang.Long |
getSize() |
protected void |
validate(java.lang.String fieldName,
BaseFssApiResource parent)
Validates this object.
|
getAccessCode, getItemName, getLinkTokenbadValue, badValue, fromJson, toJson, toJson, toString, validate, validateFieldInRange, validateFieldInRange, validateFieldIsNull, validateFieldNotNull, validateLocale, validateOptionalField, validateOptionalFieldList, validateRequiredField, validateRequiredFieldList, writeToOutputStreampublic static java.lang.Class<? extends LinkFileUpdateRequest> getFssApiClass(FssApiVersion apiVersion) throws AwUnsupportedApiVersionException
Class of the LinkFileUpdateRequest that corresponds to the
specified apiVersion.apiVersion - API version of the class to be returnedClass of the LinkFileUpdateRequest that corresponds to the
specified apiVersionAwUnsupportedApiVersionExceptionpublic static LinkFileUpdateRequest create(FssApiVersion apiVersion, java.lang.String linkToken, java.lang.String itemName, java.lang.String accessCode, java.lang.String path, java.lang.Long size, java.lang.String hash, java.lang.String etag, java.lang.Long atime, java.lang.Long mtime, java.io.InputStream input) throws AwUnsupportedApiVersionException
apiVersion - API version to be supported by the LinkFileUpdateRequestlinkToken - The token for the linkitemName - The name of the item pointed to by the linkaccessCode - Access code of the linkpath - Path of the file to be updatedsize - Size of the content to update the file withhash - Hash of the content to update the file withetag - The etag of the current file at the specified pathinput - InputStream containing content to update the file withAwUnsupportedApiVersionExceptionpublic java.lang.String getPath()
public java.lang.Long getSize()
public java.lang.String getHash()
public java.lang.String getEtag()
public java.lang.Long getMTime()
public java.lang.Long getATime()
public java.io.InputStream getInput()
protected void validate(java.lang.String fieldName,
BaseFssApiResource parent)
throws AwJsonException
LinkRequestBasevalidate in class LinkRequestBasefieldName - 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)