Class Info |
|---|
public final class Change extends GenericJson File or drive change class. |
Qualifier and Type | Method Name and Description |
|---|---|
String | Obtains the change type. |
setChangeType(String changeType) Sets the change type. | |
getFile() Obtains information about a changed file. The file field is available only when the changed file is not deleted and the value of changeType is file. | |
setFile(File file) Sets information about a changed file. The file field is available only when the changed file is not deleted and the value of changeType is file. | |
String | Obtains the ID of a changed file. |
setFileId(String fileId) Sets the ID of a changed file. | |
String | Obtains the resource type. The value is always drive#change. |
setCategory(String category) Sets the resource type. The value is always drive#change. | |
com.huawei.cloud.base.util.DateTime | getTime() Obtains the change time, in RFC 3339 date-time format. |
setTime(com.huawei.cloud.base.util.DateTime time) Sets the change time, in RFC 3339 date-time format. | |
Boolean | Checks whether a change is removed from the change list. |
setDeleted(Boolean deleted) Sets whether a change is removed from the change list. | |
set(String fieldName, Object value) Sets a custom attribute and its value. | |
clone() Clones a Change object. |
Method |
|---|
public String getChangeType() Obtains the change type, which can be file or drive. |
Returns
Type | Description |
|---|---|
String | Change type, which can be file or drive. |
Method |
|---|
public Change setChangeType(String changeType) Sets the change type, which can be file or drive. |
Parameters
Name | Description |
|---|---|
changeType | Change type, which can be file or drive. |
Returns
Type | Description |
|---|---|
Change | A Change object. |
Method |
|---|
public File getFile() Obtains information about a changed file. The file field is available only when the changed file is not deleted and the value of changeType is file. |
Returns
Type | Description |
|---|---|
File | Information about a changed file. |
Method |
|---|
public Change setFile(File file) Sets information about a changed file. The file field is available only when the changed file is not deleted and the value of changeType is file. |
Parameters
Name | Description |
|---|---|
file | Information about a changed file. |
Returns
Type | Description |
|---|---|
Change | A Change object. |
Method |
|---|
public String getFileId() Obtains the ID of a changed file. |
Returns
Type | Description |
|---|---|
String | ID of a changed file. |
Method |
|---|
public Change setFileId(String fileId) Sets the ID of a changed file. |
Parameters
Name | Description |
|---|---|
fileId | ID of a changed file. |
Returns
Type | Description |
|---|---|
Change | A Change object. |
Method |
|---|
public String getCategory() Obtains the resource type. The value is always drive#change. |
Returns
Type | Description |
|---|---|
String | Resource type. The value is always drive#change. |
Method |
|---|
public Change setCategory(String category) Sets the resource type. The value is always drive#change. |
Parameters
Name | Description |
|---|---|
category | Resource type. The value is always drive#change. |
Returns
Type | Description |
|---|---|
Change | A Change object. |
Method |
|---|
public com.huawei.cloud.base.util.DateTime getTime() Obtains the change time, in RFC 3339 date-time format. |
Returns
Type | Description |
|---|---|
com.huawei.cloud.base.util.DateTime | Change time, in RFC 3339 date-time format. |
Method |
|---|
public Change setTime(com.huawei.cloud.base.util.DateTime time) Sets the change time, in RFC 3339 date-time format. |
Parameters
Name | Description |
|---|---|
time | Change time, in RFC 3339 date-time format. |
Returns
Type | Description |
|---|---|
Change | A Change object. |
Method |
|---|
public Boolean getDeleted() Checks whether a change is removed from the change list. The options include true and false. |
Returns
Type | Description |
|---|---|
Boolean | true if a change is removed from the change list; false otherwise. |
Method |
|---|
public Change setDeleted(Boolean deleted) Sets whether a change is removed from the change list. |
Parameters
Name | Description |
|---|---|
deleted | Indicates whether a change is removed from the change list. true if a change is removed from the change list; false otherwise. |
Returns
Type | Description |
|---|---|
Change | A Change object. |