目录

Reply

Class Info

public final class Reply extends GenericJson

File reply class.

Public Constructor Summary

Constructor Name

Reply()

Constructs a Reply object.

Public Method Summary

Qualifier and Type

Method Name and Description

String

getOperate()

Obtains the operation of replying to a parent comment.

Reply

setOperate(String operate)

Sets the operation of replying to a parent comment.

User

getCreator()

Obtains the user who creates a reply.

Reply

setCreator(User creator)

Sets the user who creates a reply.

String

getDescription()

Obtains a reply in plain text format.

Reply

setDescription(String description)

Sets a reply in plain text format.

com.huawei.cloud.base.util.DateTime

getCreatedTime()

Obtains reply creation time in RFC 3339 format.

Reply

setCreatedTime(com.huawei.cloud.base.util.DateTime createdTime)

Sets reply creation time in RFC 3339 format.

Boolean

getDeleted()

Checks whether a reply is deleted.

Reply

setDeleted(Boolean deleted)

Sets whether a reply is deleted.

String

getHtmlDescription()

Obtains a reply in HTML format.

Reply

setHtmlDescription(String htmlDescription)

Sets a reply in HTML format.

String

getId()

Obtains a reply ID.

Reply

setId(String id)

Sets a reply ID.

String

getCategory()

Obtains the resource type.

Reply

setCategory(String category)

Sets the resource type.

com.huawei.cloud.base.util.DateTime

getEditedTime()

Obtains the last modification time of a reply.

Reply

setEditedTime(com.huawei.cloud.base.util.DateTime editedTime)

Sets the last modification time of a reply.

Reply

set(String fieldName, Object value)

Sets a custom attribute and its value.

Reply

clone()

Clones a Reply object.

Public Constructors

[h2]Reply

Constructor

Reply()

Constructs a Reply object.

Public Methods

[h2]getOperate

Method

public String getOperate()

Obtains the operation of replying to a parent comment.

Returns

Type

Description

String

Operation of replying to a parent comment.

[h2]setOperate

Method

public Reply setOperate(String operate)

Sets the operation of replying to a parent comment.

Parameters

Name

Description

operate

Operation of replying to a parent comment.

Returns

Type

Description

Reply

A Reply object.

[h2]getCreator

Method

public User getCreator()

Obtains the user who creates a reply.

Returns

Type

Description

User

User who creates a reply.

[h2]setCreator

Method

public Reply setCreator(User creator)

Sets the user who creates a reply.

Parameters

Name

Description

creator

User who creates a reply.

Returns

Type

Description

Reply

A Reply object.

[h2]getDescription

Method

public String getDescription()

Obtains a reply in plain text format.

Returns

Type

Description

String

Reply in plain text format.

[h2]setDescription

Method

public Reply setDescription(String description)

Sets a reply in plain text format.

Parameters

Name

Description

description

Reply in plain text format.

Returns

Type

Description

Reply

A Reply object.

[h2]getCreatedTime

Method

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

Obtains reply creation time in RFC 3339 format.

Returns

Type

Description

com.huawei.cloud.base.util.DateTime

Reply creation time in RFC 3339 format.

[h2]setCreatedTime

Method

public Reply setCreatedTime(com.huawei.cloud.base.util.DateTime createdTime)

Sets reply creation time in RFC 3339 format.

Parameters

Name

Description

createdTime

Reply creation time in RFC 3339 format.

Returns

Type

Description

Reply

A Reply object.

[h2]getDeleted

Method

public Boolean getDeleted()

Checks whether a reply is deleted.

Returns

Type

Description

Boolean

Whether a reply is deleted.

[h2]setDeleted

Method

public Reply setDeleted(Boolean deleted)

Sets whether a reply is deleted.

Parameters

Name

Description

deleted

Whether a reply is deleted.

Returns

Type

Description

Reply

A Reply object.

[h2]getHtmlDescription

Method

public String getHtmlDescription()

Obtains a reply in HTML format.

Returns

Type

Description

String

Reply in HTML format.

[h2]setHtmlDescription

Method

public Reply setHtmlDescription(String htmlDescription)

Sets a reply in HTML format.

Parameters

Name

Description

htmlDescription

Reply in HTML format.

Returns

Type

Description

Reply

A Reply object.

[h2]getId

Method

public String getId()

Obtains a reply ID.

Returns

Type

Description

String

Reply ID.

[h2]setId

Method

public Reply setId(String id)

Sets a reply ID.

Parameters

Name

Description

id

Reply ID.

Returns

Type

Description

Reply

A Reply object.

[h2]getCategory

Method

public String getCategory()

Obtains the resource type.

Returns

Type

Description

String

Resource type.

[h2]setCategory

Method

public Reply setCategory(String category)

Sets the resource type.

Parameters

Name

Description

category

Resource type.

Returns

Type

Description

Reply

A Reply object.

[h2]getEditedTime

Method

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

Obtains the last modification time of a reply.

Returns

Type

Description

com.huawei.cloud.base.util.DateTime

Last modification time of a reply.

[h2]setEditedTime

Method

public Reply setEditedTime(com.huawei.cloud.base.util.DateTime editedTime)

Sets the last modification time of a reply.

Parameters

Name

Description

editedTime

Last modification time of a reply.

Returns

Type

Description

Reply

A Reply object.

[h2]set

Method

public Reply set(String fieldName,Object value)

Sets the field name and field value.

Parameters

Name

Description

fieldname

Field name.

value

Field value.

Returns

Type

Description

Reply

A Reply object.

[h2]clone

Method

public Reply clone()

Clones a Reply object.

Returns

Type

Description

Reply

A Reply object.