public abstract class FolderRestoreRequest extends BaseFssApiResource
UTF_8| Modifier and Type | Method and Description |
|---|---|
static FolderRestoreRequest |
create(FssApiVersion apiVersion,
java.lang.String path,
java.lang.Integer deltaSeconds)
Returns a versioned FolderRestoreRequest that is compatible with the specified apiVersion.
|
java.lang.Integer |
getDeltaSeconds()
Returns the max difference in seconds between the folder to be restored and the entries
inside the folder that will be restored.
|
static java.lang.Class<? extends FolderRestoreRequest> |
getFssApiClass(FssApiVersion apiVersion)
Returns the
Class of the FolderRestoreRequest that corresponds to the
specified apiVersion. |
java.lang.String |
getPath()
Returns the path to be restored.
|
protected 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 FolderRestoreRequest> getFssApiClass(FssApiVersion apiVersion) throws AwUnsupportedApiVersionException
Class of the FolderRestoreRequest that corresponds to the
specified apiVersion.apiVersion - API version of the class to be returnedClass of the FileCreateRequest that corresponds to the
specified apiVersionAwUnsupportedApiVersionExceptionpublic static FolderRestoreRequest create(FssApiVersion apiVersion, java.lang.String path, java.lang.Integer deltaSeconds) throws AwUnsupportedApiVersionException
apiVersion - API version to be supported by the FolderCreateRequestpath - The path of the folder to restoredeltaSeconds - The maximum difference in seconds between when the folder was deleted to restore
entries inside the folderAwUnsupportedApiVersionExceptionpublic java.lang.String getPath()
public java.lang.Integer getDeltaSeconds()
protected void validate(java.lang.String fieldName,
BaseFssApiResource parent)
throws AwJsonException
BaseFssApiResourceBaseFssApiResource.validateRequiredField(String, BaseFssApiResource, String) for foo, and
BaseFssApiResource.validateOptionalField(String, BaseFssApiResource) for bar.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 occur