public abstract class FileUpdateRequest extends BaseFssApiResource
UTF_8| Modifier and Type | Method and Description |
|---|---|
static FileUpdateRequest |
create(FssApiVersion apiVersion,
java.lang.String path,
java.lang.Long size,
java.lang.String hash,
java.lang.String etag,
java.lang.Long changeTime,
java.lang.Long accessTime,
java.io.InputStream input)
Returns a versioned FileUpdateRequest that is compatible with the specified apiVersion.
|
java.lang.Long |
getAccessTime()
Returns the Last Accessed time of the file created.
|
java.lang.Long |
getChangeTime()
Returns the modified time of the file created.
|
java.lang.String |
getEtag()
Returns the current etag of the file to be updated.
|
static java.lang.Class<? extends FileUpdateRequest> |
getFssApiClass(FssApiVersion apiVersion)
Returns the
Class of the FileUpdateRequest that corresponds to the
specified apiVersion. |
java.lang.String |
getHash()
Returns the SHA-384 hash of the new file being uploaded, represented as a hex string.
|
java.io.InputStream |
getInput()
Returns the
InputStream containing the contents of the file being
uploaded. |
java.lang.String |
getPath()
Returns the path of the file to be updated.
|
java.lang.Long |
getSize()
Returns the size (in bytes) of the new file being uploaded.
|
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 FileUpdateRequest> getFssApiClass(FssApiVersion apiVersion) throws AwUnsupportedApiVersionException
Class of the FileUpdateRequest that corresponds to the
specified apiVersion.apiVersion - API version of the class to be returnedClass of the FileUpdateRequest that corresponds to the
specified apiVersionAwUnsupportedApiVersionExceptionpublic static FileUpdateRequest create(FssApiVersion apiVersion, java.lang.String path, java.lang.Long size, java.lang.String hash, java.lang.String etag, java.lang.Long changeTime, java.lang.Long accessTime, java.io.InputStream input) throws AwUnsupportedApiVersionException
apiVersion - API version to be supported by the FileUpdateRequestpath - path of the file to updatesize - size (in bytes) of the new file being uploaded.hash - the SHA-384 hash of the new file being uploaded, represented as a hex string
(optional)etag - the etag of the current file at the specified pathinput - contains the contents of the file being uploadedAwUnsupportedApiVersionExceptionpublic 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 java.lang.String getPath()
public java.lang.String getEtag()
public java.lang.Long getSize()
public java.lang.Long getChangeTime()
public java.lang.Long getAccessTime()
public java.lang.String getHash()
public java.io.InputStream getInput()
InputStream containing the contents of the file being
uploaded.InputStream containing the contents of the file being
uploaded