| Class info |
| public final class Change extends GenericJson |
| File or drive change class. |
| Constructor name |
Change() Constructor for the Change class. |
| Return type | Method name |
| String | getChangeType() Obtains the change type. |
| Change | setChangeType(String changeType) Sets the change type. |
| 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. |
| 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. |
| String | getFileId() Obtains the ID of a changed file. |
| Change | setFileId(String fileId) Sets the ID of a changed file. |
| String | getCategory() Obtains the resource type, which is always drive#change. |
| Change | setCategory(String category) Sets the resource type, which is always drive#change. |
| com.huawei.cloud.base.util.DateTime | getTime() Obtains the change time, in RFC 3339 date-time format. |
| Change | setTime(com.huawei.cloud.base.util.DateTime time) Sets the change time, in RFC 3339 date-time format. |
| Change | set(String fieldName, Object value) Sets the given field value for the given field name. |
| Change | clone() Clones a Change object. |
| Boolean | getDeleted() Checks whether a change is deleted from the change list. Only true or false may be returned. |
| Change | setDeleted(Boolean deleted) Sets whether a change is deleted from the change list. |
| constructor |
| Change() |
| Constructs a Change object. |
| Method |
| public String getChangeType() |
| Obtains the change type, which can be file or drive. |
Return
| type | desc |
| 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
| Parameter name | Parameter desc |
| changeType | Change type, which can be file or drive. |
Return
| type | desc |
| 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. |
Return
| type | desc |
| 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
| Parameter name | Parameter desc |
| file | Information about a changed file. |
Return
| type | desc |
| Change | A Change object. |
| Method |
public String getFileId() |
| Obtains the ID of a changed file. |
Return
| type | desc |
| String | ID of a changed file. |
| Method |
public Change setFileId(String fileId) |
| Sets the ID of a changed file. |
Parameters
| Parameter name | Parameter desc |
| fileId | ID of a changed file. |
Return
| type | desc |
| Change | A Change object. |
| Method |
public String getCategory() |
| Obtains the resource type, which is always drive#change. |
Return
| type | desc |
| String | Resource type, which is always drive#change. |
| Method |
public Change setCategory(String category) |
| Sets the resource type, which is always drive#change. |
Parameters
| Parameter name | Parameter desc |
| category | Resource type, which is always drive#change. |
Return
| type | desc |
| Change | A Change object. |
| Method |
public com.huawei.cloud.base.util.DateTime getTime() |
| Obtains the change time, in RFC 3339 date-time format. |
Return
| type | desc |
| 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
| Parameter name | Parameter desc |
| time | Change time, in RFC 3339 date-time format. |
Return
| type | desc |
| Change | A Change object. |
| Method |
public Change clone() |
| Clones a Change object. |
Return
| type | desc |
| Change | A Change object. |
| Method |
public Change set(String fieldName,Object value) |
| Sets the given field value for the given field name. |
Parameters
| Parameter name | Parameter desc |
| fieldName | Field name. |
| value | Field value. |
Return
| type | desc |
| Change | A Change object. |
| Method |
public Boolean getDeleted() |
| Checks whether a change is deleted from the change list. Only true or false may be returned. |
Return
| type | desc |
| Boolean | Whether a change is deleted from the change list. The value true indicates that the change is deleted and the value false indicates not. |
| Method |
public Change setDeleted(Boolean deleted) |
| Sets whether a change is deleted from the change list. |
Parameters
| Parameter name | Parameter desc |
| deleted | Indicates whether a change is deleted from the change list. The value true indicates that the change is deleted and the value false indicates not. |
Return
| type | desc |
| Change | A Change object. |