目录

Class info
public final class Change extends GenericJson
File or drive change class.

Public Constructor Summary

Constructor name

Change() 

Constructor for the Change class.

Public Method Summary

Return typeMethod 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.

Public Constructors

constructor
Change()
Constructs a Change object.

Public Methods

Method
public String getChangeType()
Obtains the change type, which can be file or drive.

Return

typedesc
StringChange 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 nameParameter desc
changeTypeChange type, which can be file or drive.

Return

typedesc
ChangeA 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

typedesc
FileInformation 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 nameParameter desc
fileInformation about a changed file.

Return

typedesc
ChangeA Change object.
Method


public String getFileId()

Obtains the ID of a changed file.

Return

typedesc
StringID of a changed file.
Method


public Change setFileId(String fileId)

Sets the ID of a changed file.

Parameters

Parameter nameParameter desc
fileIdID of a changed file.

Return

typedesc
ChangeA Change object.
Method


public String getCategory()

Obtains the resource type, which is always drive#change.

Return

typedesc
StringResource type, which is always drive#change.
Method


public Change setCategory(String category)

Sets the resource type, which is always drive#change.

Parameters

Parameter nameParameter desc
categoryResource type, which is always drive#change.

Return

typedesc
ChangeA Change object.
Method


public com.huawei.cloud.base.util.DateTime getTime()

Obtains the change time, in RFC 3339 date-time format.

Return

typedesc
com.huawei.cloud.base.util.DateTimeChange 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 nameParameter desc
timeChange time, in RFC 3339 date-time format.

Return

typedesc
ChangeA Change object.
Method


public Change clone()

Clones a Change object.

Return

typedesc
ChangeA Change object.
Method


public Change set(String fieldName,Object value)

Sets the given field value for the given field name.

Parameters

Parameter nameParameter desc
fieldNameField name.
valueField value.

Return

typedesc
ChangeA Change object.
Method


public Boolean getDeleted()

Checks whether a change is deleted from the change list. Only true or false may be returned.

Return

typedesc
BooleanWhether 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 nameParameter desc
deletedIndicates 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

typedesc
ChangeA Change object.