public abstract class LinkUpdateRequest extends BaseFssApiResource
UTF_8| Modifier and Type | Method and Description |
|---|---|
static LinkUpdateRequest |
create(FssApiVersion apiVersion,
java.io.InputStreamReader reader)
Constructs a LinkUpdateRequest from the JSON string representation contained in reader.
|
static LinkUpdateRequest |
create(FssApiVersion apiVersion,
java.lang.String url,
java.lang.Boolean updateAccessCode,
java.lang.Long expirationDate)
Returns a versioned LinkUpdateRequest that is compatible with the specified apiVersion.
|
static LinkUpdateRequest |
create(FssApiVersion apiVersion,
java.lang.String path,
java.lang.String url,
java.lang.Boolean updateAccessCode,
java.lang.Long expirationDate)
Returns a versioned LinkUpdateRequest that is compatible with the specified apiVersion.
|
java.lang.Long |
getExpirationDate()
Returns the expirationDate
|
static java.lang.Class<? extends LinkUpdateRequest> |
getFssApiClass(FssApiVersion apiVersion)
Returns the
Class of the LinkUpdateRequest that corresponds to the
specified apiVersion. |
java.lang.Boolean |
getUpdateAccessCode()
Returns whether or not to update an access code
|
java.lang.String |
getUrl()
Returns the url of the link.
|
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 LinkUpdateRequest> getFssApiClass(FssApiVersion apiVersion) throws AwUnsupportedApiVersionException
Class of the LinkUpdateRequest that corresponds to the
specified apiVersion.apiVersion - API version of the class to be returnedClass of the LinkUpdateRequest that corresponds to the
specified apiVersionAwUnsupportedApiVersionExceptionpublic static LinkUpdateRequest create(FssApiVersion apiVersion, java.lang.String path, java.lang.String url, java.lang.Boolean updateAccessCode, java.lang.Long expirationDate) throws AwUnsupportedApiVersionException
apiVersion - API version to be supported by the LinkUpdateRequestpath - path to the file or folderurl - url of the linkAwUnsupportedApiVersionExceptionpublic static LinkUpdateRequest create(FssApiVersion apiVersion, java.lang.String url, java.lang.Boolean updateAccessCode, java.lang.Long expirationDate) throws AwUnsupportedApiVersionException
apiVersion - API version to be supported by the LinkUpdateRequesturl - url of the linkupdateAccessCode - Whether or not to update the access codeexpirationDate - new expiration for the linkAwUnsupportedApiVersionExceptionpublic static LinkUpdateRequest create(FssApiVersion apiVersion, java.io.InputStreamReader reader) throws AwJsonException, AwUnsupportedApiVersionException
apiVersion - API version of the object to be read from readerreader - contains the JSON representation of a LinkUpdateRequestAwJsonExceptionAwUnsupportedApiVersionExceptionpublic 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 getUrl()
public java.lang.Boolean getUpdateAccessCode()
public java.lang.Long getExpirationDate()