public abstract class DeletePathRequest extends BaseFssApiResource
UTF_8| Modifier and Type | Method and Description |
|---|---|
static DeletePathRequest |
create(FssApiVersion apiVersion,
java.io.InputStreamReader reader)
Constructs a DeletePathRequest from the JSON string representation contained in the specified
reader.
|
static DeletePathRequest |
create(FssApiVersion apiVersion,
java.lang.String path,
java.lang.Boolean recursive,
java.lang.String etag)
Returns a versioned DeletePathRequest that is compatible with the specified apiVersion.
|
java.lang.String |
getEtag()
Returns the etag that should correspond to the current entry at path.
|
static java.lang.Class<? extends DeletePathRequest> |
getFssApiClass(FssApiVersion apiVersion)
Returns the
Class of the DeletePathRequest that corresponds to the
specified apiVersion. |
java.lang.String |
getPath()
Returns the path of the entry to delete.
|
java.lang.Boolean |
isRecursive()
If the entry is a folder, whether to recursively delete all the contents of the folder.
|
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 DeletePathRequest> getFssApiClass(FssApiVersion apiVersion) throws AwUnsupportedApiVersionException
Class of the DeletePathRequest that corresponds to the
specified apiVersion.apiVersion - API version of the class to be returnedClass of the DeletePathRequest that corresponds to the
specified apiVersionAwUnsupportedApiVersionExceptionpublic static DeletePathRequest create(FssApiVersion apiVersion, java.lang.String path, java.lang.Boolean recursive, java.lang.String etag) throws AwUnsupportedApiVersionException
apiVersion - API version to be supported by the DeletePathRequestpath - path of the file or folder to deleterecursive - true indicates that the files and folders of the provided path should be
recursively deleted. False indicates that the files and folders of the provided
path should not be recursively deleted.etag - the etag of the entry currently at the specified pathAwUnsupportedApiVersionExceptionpublic static DeletePathRequest create(FssApiVersion apiVersion, java.io.InputStreamReader reader) throws AwJsonException, AwUnsupportedApiVersionException
apiVersion - API version of the object to be read from readerreader - contains the JSON string representation of a DeletePathRequestAwJsonExceptionAwUnsupportedApiVersionExceptionpublic void validate(java.lang.String fieldName,
BaseFssApiResource parent)
throws AwJsonException
BaseFssApiResource.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 occurpublic java.lang.String getPath()
public java.lang.Boolean isRecursive()
public java.lang.String getEtag()