public abstract class LinkFileCreateRequest extends LinkRequestBase
accessCode, itemName, linkTokenUTF_8| Modifier and Type | Method and Description |
|---|---|
static LinkFileCreateRequest |
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.Boolean createParents,
java.lang.Long atime,
java.lang.Long ctime,
java.lang.Long mtime,
java.io.InputStream input) |
java.lang.Long |
getATime()
Returns the Last Accessed time of the file created.
|
java.lang.Boolean |
getCreateParents()
Returns true if parents of path should be created if they do not exist; false otherwise.
|
java.lang.Long |
getCTime()
Returns the created time of the file created.
|
static java.lang.Class<? extends LinkFileCreateRequest> |
getFssApiClass(FssApiVersion apiVersion)
Returns the
Class of the LinkFileCreateRequest that corresponds to the
specified apiVersion. |
java.lang.String |
getHash()
Returns the SHA-384 hash of the file to be created, represented as a hex string.
|
java.io.InputStream |
getInput()
Returns the InputStream containing the contents of the file to be created.
|
java.lang.Long |
getMTime()
Returns the modified time of the file created.
|
java.lang.String |
getPath()
Returns the path of the file to be created.
|
java.lang.Long |
getSize()
Returns the size (in bytes) of the file to be created.
|
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 LinkFileCreateRequest> getFssApiClass(FssApiVersion apiVersion) throws AwUnsupportedApiVersionException
Class of the LinkFileCreateRequest that corresponds to the
specified apiVersion.apiVersion - API version of the class to be returnedClass of the LinkFileCreateRequest that corresponds to the
specified apiVersionAwUnsupportedApiVersionExceptionpublic static LinkFileCreateRequest 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.Boolean createParents, java.lang.Long atime, java.lang.Long ctime, java.lang.Long mtime, java.io.InputStream input) throws AwUnsupportedApiVersionException
apiVersion - linkToken - itemName - accessCode - path - size - hash - createParents - input - AwUnsupportedApiVersionExceptionprotected 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)public java.lang.String getPath()
public java.lang.Long getSize()
public java.lang.String getHash()
public java.lang.Boolean getCreateParents()
public java.io.InputStream getInput()
public java.lang.Long getMTime()
public java.lang.Long getCTime()
public java.lang.Long getATime()