@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Comment extends Object implements Serializable, Cloneable, StructuredPojo
Returns information about a specific comment.
Constructor and Description |
---|
Comment() |
Modifier and Type | Method and Description |
---|---|
Comment |
addReactionCountsEntry(String key,
Integer value)
Add a single ReactionCounts entry
|
Comment |
clearReactionCountsEntries()
Removes all the entries added into ReactionCounts.
|
Comment |
clone() |
boolean |
equals(Object obj) |
String |
getAuthorArn()
The Amazon Resource Name (ARN) of the person who posted the comment.
|
List<String> |
getCallerReactions()
The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the call to
the API.
|
String |
getClientRequestToken()
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be
repeated with a changed parameter.
|
String |
getCommentId()
The system-generated comment ID.
|
String |
getContent()
The content of the comment.
|
Date |
getCreationDate()
The date and time the comment was created, in timestamp format.
|
Boolean |
getDeleted()
A Boolean value indicating whether the comment has been deleted.
|
String |
getInReplyTo()
The ID of the comment for which this comment is a reply, if any.
|
Date |
getLastModifiedDate()
The date and time the comment was most recently modified, in timestamp format.
|
Map<String,Integer> |
getReactionCounts()
A string to integer map that represents the number of individual users who have responded to a comment with the
specified reactions.
|
int |
hashCode() |
Boolean |
isDeleted()
A Boolean value indicating whether the comment has been deleted.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAuthorArn(String authorArn)
The Amazon Resource Name (ARN) of the person who posted the comment.
|
void |
setCallerReactions(Collection<String> callerReactions)
The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the call to
the API.
|
void |
setClientRequestToken(String clientRequestToken)
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be
repeated with a changed parameter.
|
void |
setCommentId(String commentId)
The system-generated comment ID.
|
void |
setContent(String content)
The content of the comment.
|
void |
setCreationDate(Date creationDate)
The date and time the comment was created, in timestamp format.
|
void |
setDeleted(Boolean deleted)
A Boolean value indicating whether the comment has been deleted.
|
void |
setInReplyTo(String inReplyTo)
The ID of the comment for which this comment is a reply, if any.
|
void |
setLastModifiedDate(Date lastModifiedDate)
The date and time the comment was most recently modified, in timestamp format.
|
void |
setReactionCounts(Map<String,Integer> reactionCounts)
A string to integer map that represents the number of individual users who have responded to a comment with the
specified reactions.
|
String |
toString()
Returns a string representation of this object.
|
Comment |
withAuthorArn(String authorArn)
The Amazon Resource Name (ARN) of the person who posted the comment.
|
Comment |
withCallerReactions(Collection<String> callerReactions)
The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the call to
the API.
|
Comment |
withCallerReactions(String... callerReactions)
The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the call to
the API.
|
Comment |
withClientRequestToken(String clientRequestToken)
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be
repeated with a changed parameter.
|
Comment |
withCommentId(String commentId)
The system-generated comment ID.
|
Comment |
withContent(String content)
The content of the comment.
|
Comment |
withCreationDate(Date creationDate)
The date and time the comment was created, in timestamp format.
|
Comment |
withDeleted(Boolean deleted)
A Boolean value indicating whether the comment has been deleted.
|
Comment |
withInReplyTo(String inReplyTo)
The ID of the comment for which this comment is a reply, if any.
|
Comment |
withLastModifiedDate(Date lastModifiedDate)
The date and time the comment was most recently modified, in timestamp format.
|
Comment |
withReactionCounts(Map<String,Integer> reactionCounts)
A string to integer map that represents the number of individual users who have responded to a comment with the
specified reactions.
|
public void setCommentId(String commentId)
The system-generated comment ID.
commentId
- The system-generated comment ID.public String getCommentId()
The system-generated comment ID.
public Comment withCommentId(String commentId)
The system-generated comment ID.
commentId
- The system-generated comment ID.public void setContent(String content)
The content of the comment.
content
- The content of the comment.public String getContent()
The content of the comment.
public Comment withContent(String content)
The content of the comment.
content
- The content of the comment.public void setInReplyTo(String inReplyTo)
The ID of the comment for which this comment is a reply, if any.
inReplyTo
- The ID of the comment for which this comment is a reply, if any.public String getInReplyTo()
The ID of the comment for which this comment is a reply, if any.
public Comment withInReplyTo(String inReplyTo)
The ID of the comment for which this comment is a reply, if any.
inReplyTo
- The ID of the comment for which this comment is a reply, if any.public void setCreationDate(Date creationDate)
The date and time the comment was created, in timestamp format.
creationDate
- The date and time the comment was created, in timestamp format.public Date getCreationDate()
The date and time the comment was created, in timestamp format.
public Comment withCreationDate(Date creationDate)
The date and time the comment was created, in timestamp format.
creationDate
- The date and time the comment was created, in timestamp format.public void setLastModifiedDate(Date lastModifiedDate)
The date and time the comment was most recently modified, in timestamp format.
lastModifiedDate
- The date and time the comment was most recently modified, in timestamp format.public Date getLastModifiedDate()
The date and time the comment was most recently modified, in timestamp format.
public Comment withLastModifiedDate(Date lastModifiedDate)
The date and time the comment was most recently modified, in timestamp format.
lastModifiedDate
- The date and time the comment was most recently modified, in timestamp format.public void setAuthorArn(String authorArn)
The Amazon Resource Name (ARN) of the person who posted the comment.
authorArn
- The Amazon Resource Name (ARN) of the person who posted the comment.public String getAuthorArn()
The Amazon Resource Name (ARN) of the person who posted the comment.
public Comment withAuthorArn(String authorArn)
The Amazon Resource Name (ARN) of the person who posted the comment.
authorArn
- The Amazon Resource Name (ARN) of the person who posted the comment.public void setDeleted(Boolean deleted)
A Boolean value indicating whether the comment has been deleted.
deleted
- A Boolean value indicating whether the comment has been deleted.public Boolean getDeleted()
A Boolean value indicating whether the comment has been deleted.
public Comment withDeleted(Boolean deleted)
A Boolean value indicating whether the comment has been deleted.
deleted
- A Boolean value indicating whether the comment has been deleted.public Boolean isDeleted()
A Boolean value indicating whether the comment has been deleted.
public void setClientRequestToken(String clientRequestToken)
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.
clientRequestToken
- A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot
be repeated with a changed parameter. If a request is received with the same parameters and a token is
included, the request returns information about the initial request that used that token.public String getClientRequestToken()
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.
public Comment withClientRequestToken(String clientRequestToken)
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.
clientRequestToken
- A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot
be repeated with a changed parameter. If a request is received with the same parameters and a token is
included, the request returns information about the initial request that used that token.public List<String> getCallerReactions()
The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the call to the API.
public void setCallerReactions(Collection<String> callerReactions)
The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the call to the API.
callerReactions
- The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the
call to the API.public Comment withCallerReactions(String... callerReactions)
The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the call to the API.
NOTE: This method appends the values to the existing list (if any). Use
setCallerReactions(java.util.Collection)
or withCallerReactions(java.util.Collection)
if you
want to override the existing values.
callerReactions
- The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the
call to the API.public Comment withCallerReactions(Collection<String> callerReactions)
The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the call to the API.
callerReactions
- The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the
call to the API.public Map<String,Integer> getReactionCounts()
A string to integer map that represents the number of individual users who have responded to a comment with the specified reactions.
public void setReactionCounts(Map<String,Integer> reactionCounts)
A string to integer map that represents the number of individual users who have responded to a comment with the specified reactions.
reactionCounts
- A string to integer map that represents the number of individual users who have responded to a comment
with the specified reactions.public Comment withReactionCounts(Map<String,Integer> reactionCounts)
A string to integer map that represents the number of individual users who have responded to a comment with the specified reactions.
reactionCounts
- A string to integer map that represents the number of individual users who have responded to a comment
with the specified reactions.public Comment addReactionCountsEntry(String key, Integer value)
public Comment clearReactionCountsEntries()
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.