public abstract class FolderCreateRequest extends BaseFssApiResource
UTF_8| Modifier and Type | Method and Description |
|---|---|
static FolderCreateRequest |
create(FssApiVersion apiVersion,
java.io.InputStreamReader reader)
Constructs a FolderCreateRequest from the JSON string representation contained in the reader.
|
static FolderCreateRequest |
create(FssApiVersion apiVersion,
java.lang.String path,
java.lang.Boolean createParents,
java.lang.Long mtime,
java.lang.Long ctime,
java.lang.Long atime)
Returns a versioned FolderCreateRequest that is compatible with the specified apiVersion.
|
java.lang.Long |
getAtime()
Returns the Last Accessed time of the file created.
|
java.lang.Boolean |
getCreateParents()
Returns whether or not to create all missing parents of the path.
|
java.lang.Long |
getCtime()
Returns the created time of the file created.
|
static java.lang.Class<? extends FolderCreateRequest> |
getFssApiClass(FssApiVersion apiVersion)
Returns the
Class of the FolderCreateRequest that corresponds to the
specified apiVersion. |
java.lang.Long |
getMtime()
Returns the modified time of the file created.
|
java.lang.String |
getPath()
Returns the path where the folder should be created.
|
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 FolderCreateRequest> getFssApiClass(FssApiVersion apiVersion) throws AwUnsupportedApiVersionException
Class of the FolderCreateRequest that corresponds to the
specified apiVersion.apiVersion - API version of the class to be returnedClass of the FolderCreateRequest that corresponds to the
specified apiVersionAwUnsupportedApiVersionExceptionpublic static FolderCreateRequest 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 FolderCreateRequestAwJsonExceptionAwUnsupportedApiVersionExceptionpublic static FolderCreateRequest create(FssApiVersion apiVersion, java.lang.String path, java.lang.Boolean createParents, java.lang.Long mtime, java.lang.Long ctime, java.lang.Long atime) throws AwUnsupportedApiVersionException
apiVersion - API version to be supported by the FolderCreateRequestpath - path of the folder to be createdcreateParents - if true, then any parent folders of path that do not already exist should be
created. False otherwiseAwUnsupportedApiVersionExceptionpublic 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 getPath()
public java.lang.Long getMtime()
public java.lang.Long getCtime()
public java.lang.Long getAtime()
public java.lang.Boolean getCreateParents()