目录

Change

Class Info

public final class Change extends GenericJson

File or drive change class.

Public Constructor Summary

Constructor Name

Change()

Constructs a Change object.

Public Method Summary

Qualifier and Type

Method Name and Description

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. The value is always drive#change.

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.

Change

setTime(com.huawei.cloud.base.util.DateTime time)

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

Boolean

getDeleted()

Checks whether a change is removed from the change list.

Change

setDeleted(Boolean deleted)

Sets whether a change is removed from the change list.

Change

set(String fieldName, Object value)

Sets a custom attribute and its value.

Change

clone()

Clones a Change object.

Public Constructors

[h2]Change

Constructor

Change()

Constructs a Change object.

Public Methods

[h2]getChangeType

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.

[h2]setChangeType

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.

[h2]getFile

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.

[h2]setFile

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.

[h2]getFileId

Method

public String getFileId()

Obtains the ID of a changed file.

Returns

Type

Description

String

ID of a changed file.

[h2]setFileId

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.

[h2]getCategory

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.

[h2]setCategory

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.

[h2]getTime

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.

[h2]setTime

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.

[h2]getDeleted

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.

[h2]setDeleted

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.

[h2]set

Method

public Change set(String fieldName,Object value)

Sets a custom attribute and its value.

Parameters

Name

Description

fieldName

Attribute name.

value

Attribute value.

Returns

Type

Description

Change

A Change object.

[h2]clone

Method

public Change clone()

Clones a Change object.

Returns

Type

Description

Change

A Change object.