@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Comment extends Object implements Serializable, Cloneable, StructuredPojo
Describes a comment.
| Constructor and Description |
|---|
Comment() |
| Modifier and Type | Method and Description |
|---|---|
Comment |
clone() |
boolean |
equals(Object obj) |
String |
getCommentId()
The ID of the comment.
|
User |
getContributor()
The details of the user who made the comment.
|
Date |
getCreatedTimestamp()
The time that the comment was created.
|
String |
getParentId()
The ID of the parent comment.
|
String |
getRecipientId()
If the comment is a reply to another user's comment, this field contains the user ID of the user being replied
to.
|
String |
getStatus()
The status of the comment.
|
String |
getText()
The text of the comment.
|
String |
getThreadId()
The ID of the root comment in the thread.
|
String |
getVisibility()
The visibility of the comment.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCommentId(String commentId)
The ID of the comment.
|
void |
setContributor(User contributor)
The details of the user who made the comment.
|
void |
setCreatedTimestamp(Date createdTimestamp)
The time that the comment was created.
|
void |
setParentId(String parentId)
The ID of the parent comment.
|
void |
setRecipientId(String recipientId)
If the comment is a reply to another user's comment, this field contains the user ID of the user being replied
to.
|
void |
setStatus(CommentStatusType status)
The status of the comment.
|
void |
setStatus(String status)
The status of the comment.
|
void |
setText(String text)
The text of the comment.
|
void |
setThreadId(String threadId)
The ID of the root comment in the thread.
|
void |
setVisibility(CommentVisibilityType visibility)
The visibility of the comment.
|
void |
setVisibility(String visibility)
The visibility of the comment.
|
String |
toString()
Returns a string representation of this object.
|
Comment |
withCommentId(String commentId)
The ID of the comment.
|
Comment |
withContributor(User contributor)
The details of the user who made the comment.
|
Comment |
withCreatedTimestamp(Date createdTimestamp)
The time that the comment was created.
|
Comment |
withParentId(String parentId)
The ID of the parent comment.
|
Comment |
withRecipientId(String recipientId)
If the comment is a reply to another user's comment, this field contains the user ID of the user being replied
to.
|
Comment |
withStatus(CommentStatusType status)
The status of the comment.
|
Comment |
withStatus(String status)
The status of the comment.
|
Comment |
withText(String text)
The text of the comment.
|
Comment |
withThreadId(String threadId)
The ID of the root comment in the thread.
|
Comment |
withVisibility(CommentVisibilityType visibility)
The visibility of the comment.
|
Comment |
withVisibility(String visibility)
The visibility of the comment.
|
public void setCommentId(String commentId)
The ID of the comment.
commentId - The ID of the comment.public String getCommentId()
The ID of the comment.
public Comment withCommentId(String commentId)
The ID of the comment.
commentId - The ID of the comment.public void setParentId(String parentId)
The ID of the parent comment.
parentId - The ID of the parent comment.public String getParentId()
The ID of the parent comment.
public Comment withParentId(String parentId)
The ID of the parent comment.
parentId - The ID of the parent comment.public void setThreadId(String threadId)
The ID of the root comment in the thread.
threadId - The ID of the root comment in the thread.public String getThreadId()
The ID of the root comment in the thread.
public Comment withThreadId(String threadId)
The ID of the root comment in the thread.
threadId - The ID of the root comment in the thread.public void setText(String text)
The text of the comment.
text - The text of the comment.public String getText()
The text of the comment.
public Comment withText(String text)
The text of the comment.
text - The text of the comment.public void setContributor(User contributor)
The details of the user who made the comment.
contributor - The details of the user who made the comment.public User getContributor()
The details of the user who made the comment.
public Comment withContributor(User contributor)
The details of the user who made the comment.
contributor - The details of the user who made the comment.public void setCreatedTimestamp(Date createdTimestamp)
The time that the comment was created.
createdTimestamp - The time that the comment was created.public Date getCreatedTimestamp()
The time that the comment was created.
public Comment withCreatedTimestamp(Date createdTimestamp)
The time that the comment was created.
createdTimestamp - The time that the comment was created.public void setStatus(String status)
The status of the comment.
status - The status of the comment.CommentStatusTypepublic String getStatus()
The status of the comment.
CommentStatusTypepublic Comment withStatus(String status)
The status of the comment.
status - The status of the comment.CommentStatusTypepublic void setStatus(CommentStatusType status)
The status of the comment.
status - The status of the comment.CommentStatusTypepublic Comment withStatus(CommentStatusType status)
The status of the comment.
status - The status of the comment.CommentStatusTypepublic void setVisibility(String visibility)
The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.
visibility - The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the
comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document
owners, co-owners, and contributors.CommentVisibilityTypepublic String getVisibility()
The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.
CommentVisibilityTypepublic Comment withVisibility(String visibility)
The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.
visibility - The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the
comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document
owners, co-owners, and contributors.CommentVisibilityTypepublic void setVisibility(CommentVisibilityType visibility)
The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.
visibility - The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the
comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document
owners, co-owners, and contributors.CommentVisibilityTypepublic Comment withVisibility(CommentVisibilityType visibility)
The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.
visibility - The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the
comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document
owners, co-owners, and contributors.CommentVisibilityTypepublic void setRecipientId(String recipientId)
If the comment is a reply to another user's comment, this field contains the user ID of the user being replied to.
recipientId - If the comment is a reply to another user's comment, this field contains the user ID of the user being
replied to.public String getRecipientId()
If the comment is a reply to another user's comment, this field contains the user ID of the user being replied to.
public Comment withRecipientId(String recipientId)
If the comment is a reply to another user's comment, this field contains the user ID of the user being replied to.
recipientId - If the comment is a reply to another user's comment, this field contains the user ID of the user being
replied to.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.