public abstract class MovePathRequest extends BaseFssApiResource
UTF_8| Modifier and Type | Method and Description |
|---|---|
static MovePathRequest |
create(FssApiVersion apiVersion,
java.io.InputStreamReader reader)
Constructs a MovePathRequest from the JSON string representation contained in the reader.
|
static MovePathRequest |
create(FssApiVersion apiVersion,
java.lang.String sourcePath,
java.lang.String destinationPath,
java.lang.String etag,
java.lang.Boolean createParents)
Returns a versioned MovePathRequest that is compatible with the specified apiVersion.
|
java.lang.Boolean |
getCreateParents()
Returns whether or not to create missing parents at the destination path.
|
java.lang.String |
getDestinationPath()
Returns the path where the file or folder should be moved.
|
java.lang.String |
getEtag()
Returns the etag of file or folder where it currently resides.
|
static java.lang.Class<? extends MovePathRequest> |
getFssApiClass(FssApiVersion apiVersion)
Returns the
Class of the MovePathRequest that corresponds to the specified
apiVersion. |
java.lang.String |
getSourcePath()
Returns the path where the file or folder currently resides.
|
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 MovePathRequest> getFssApiClass(FssApiVersion apiVersion) throws AwUnsupportedApiVersionException
Class of the MovePathRequest that corresponds to the specified
apiVersion.apiVersion - API version of the class to be returnedClass of the MovePathRequest that corresponds to the specified
apiVersionAwUnsupportedApiVersionExceptionpublic static MovePathRequest create(FssApiVersion apiVersion, java.lang.String sourcePath, java.lang.String destinationPath, java.lang.String etag, java.lang.Boolean createParents) throws AwUnsupportedApiVersionException
apiVersion - API version to be supported by the MovePathRequestsourcePath - current path (including file or folder name) of the entry to be moveddestinationPath - path where the file or folder will be movedetag - the current etag of the file or folder at sourcePathcreateParents - if true, then any parent folders of destPath (that do not already exist) should be
createdAwUnsupportedApiVersionExceptionpublic static MovePathRequest create(FssApiVersion apiVersion, java.io.InputStreamReader reader) throws AwJsonException, AwUnsupportedApiVersionException
apiVersion - API version of the object to be read from the readerreader - contains the JSON string representation of a MovePathRequestAwJsonExceptionAwUnsupportedApiVersionExceptionpublic 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 getSourcePath()
public java.lang.String getDestinationPath()
public java.lang.String getEtag()
public java.lang.Boolean getCreateParents()