Class Info |
|---|
public final class HistoryVersion extends GenericJson Metadata class for historical file versions. |
Qualifier and Type | Method Name and Description |
|---|---|
clone() Clones a HistoryVersion object. | |
String | getId() Obtains the ID of a historical file version. |
setId(String id) Sets the ID of a historical file version. | |
Boolean | Checks whether to permanently keep a historical version, even if it is not the latest version. |
setKeepPermanent(Boolean keepPermanent) Sets whether to permanently keep a historical version, even if it is not the latest version. | |
String | Obtains the resource type. |
setCategory(String category) Sets the resource type. The value is always drive#historyVersion. | |
| Obtains the last user who modified a historical file version. | |
setLastEditor(User lastEditor) Sets the last user who modified a historical file version. | |
String | Obtains the SHA-256 value of a historical file version. |
setSha256(String sha256) Sets the SHA-256 value of a historical file version. | |
String | Obtains the MIME type of the file. |
setMimeType(String mimeType) Sets the MIME type of the file. | |
com.huawei.cloud.base.util.DateTime | Obtains the time when a historical version is modified. |
setEditedTime(DateTime editedTime) Sets the time when a historical version is modified. | |
String | Obtains the original file name of a historical version. |
setOriginalFilename(String originalFilename) Sets the original file name of a historical version. | |
Long | getSize() Obtains the change in the file size of a historical version, in bytes. |
setSize(Long size) Sets the file size of a historical version, in bytes. | |
set(String fieldName, Object value) Sets a custom attribute and its value. |
Method |
|---|
public HistoryVersion clone() Clones a HistoryVersion object. |
Returns
Type | Description |
|---|---|
HistoryVersion | A HistoryVersion object. |
Method |
|---|
public String getId() Obtains the ID of a historical file version. |
Returns
Type | Description |
|---|---|
String | ID of a historical file version. |
Method |
|---|
public HistoryVersion setId(String id) Sets the ID of a historical file version. |
Parameters
Name | Description |
|---|---|
id | ID of a historical file version. |
Returns
Type | Description |
|---|---|
HistoryVersion | A HistoryVersion object. |
Method |
|---|
public Boolean getKeepPermanent() Checks whether to permanently keep a historical version, even if it is not the latest version. |
Returns
Type | Description |
|---|---|
Boolean | Whether to permanently keep a historical version, even if it is not the latest version. |
Method |
|---|
public HistoryVersion setKeepPermanent(Boolean keepPermanent) Sets whether to permanently keep a historical version, even if it is not the latest version. |
Parameters
Name | Description |
|---|---|
keepPermanent | Whether to permanently keep a historical version, even if it is not the latest version. |
Returns
Type | Description |
|---|---|
HistoryVersion | A HistoryVersion object. |
Method |
|---|
public String getCategory() Obtains the resource type. |
Returns
Type | Description |
|---|---|
String | Resource type. The value is always drive#historyVersion. |
Method |
|---|
public HistoryVersion setCategory(String category) Sets the resource type. |
Parameters
Name | Description |
|---|---|
category | Resource type. The value is always drive#historyVersion. |
Returns
Type | Description |
|---|---|
HistoryVersion | A HistoryVersion object. |
Method |
|---|
public User getLastEditor() Obtains the last user who modified a historical file version. |
Returns
Type | Description |
|---|---|
User | Last user who modified a historical file version. |
Method |
|---|
public HistoryVersion setLastEditor(User lastEditor) Sets the last user who modified a historical file version. |
Parameters
Name | Description |
|---|---|
lastEditor | Last user who modified a historical file version. |
Returns
Type | Description |
|---|---|
HistoryVersion | A HistoryVersion object. |
Method |
|---|
public String getSha256() Obtains the SHA-256 value of a historical file version. |
Returns
Type | Description |
|---|---|
String | SHA-256 value of a historical file version. |
Method |
|---|
public HistoryVersion setSha256(String sha256) Sets the SHA-256 value of a historical file version. |
Parameters
Name | Description |
|---|---|
sha256 | SHA-256 value for verifying a historical file version. This parameter may not be set on the client. If it is set, the server will use the SHA-256 value for verifying the historical file version. |
Returns
Type | Description |
|---|---|
HistoryVersion | A HistoryVersion object. |
Method |
|---|
public String getMimeType() Obtains the MIME type of the file. |
Returns
Type | Description |
|---|---|
String | MIME type of the file. |
Method |
|---|
public HistoryVersion setMimeType(String mimeType) Sets the MIME type of the file. |
Parameters
Name | Description |
|---|---|
mimeType | MIME type of the file. |
Returns
Type | Description |
|---|---|
HistoryVersion | A HistoryVersion object. |
Method |
|---|
public com.huawei.cloud.base.util.DateTime getEditedTime() Obtains the time when a historical version is modified. |
Returns
Type | Description |
|---|---|
com.huawei.cloud.base.util.DateTime | Time when a historical version is modified. |
Method |
|---|
public HistoryVersion setEditedTime(DateTime editedTime) Sets the time when a historical version is modified. |
Parameters
Name | Description |
|---|---|
editedTime | Time when a historical version is modified. |
Returns
Type | Description |
|---|---|
HistoryVersion | A HistoryVersion object. |
Method |
|---|
public String getOriginalFilename() Obtains the original file name of a historical version. |
Returns
Type | Description |
|---|---|
String | Original file name of a historical version. |
Method |
|---|
public HistoryVersion setOriginalFilename(String originalFilename) Sets the original file name of a historical version. |
Parameters
Name | Description |
|---|---|
originalFilename | Original file name of a historical version. |
Returns
Type | Description |
|---|---|
HistoryVersion | A HistoryVersion object. |
Method |
|---|
public Long getSize() Obtains the change in the file size of a historical version, in bytes. |
Returns
Type | Description |
|---|---|
Long | File size of a historical version, in bytes. |