@Generated(value="software.amazon.awssdk:codegen") public final class Comment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Comment.Builder,Comment>
Returns information about a specific comment.
Modifier and Type | Class and Description |
---|---|
static interface |
Comment.Builder |
Modifier and Type | Method and Description |
---|---|
String |
authorArn()
The Amazon Resource Name (ARN) of the person who posted the comment.
|
static Comment.Builder |
builder() |
List<String> |
callerReactions()
The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the call to
the API.
|
String |
clientRequestToken()
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be
repeated with a changed parameter.
|
String |
commentId()
The system-generated comment ID.
|
String |
content()
The content of the comment.
|
Instant |
creationDate()
The date and time the comment was created, in timestamp format.
|
Boolean |
deleted()
A Boolean value indicating whether the comment has been deleted.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasCallerReactions()
Returns true if the CallerReactions property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasReactionCounts()
Returns true if the ReactionCounts property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
String |
inReplyTo()
The ID of the comment for which this comment is a reply, if any.
|
Instant |
lastModifiedDate()
The date and time the comment was most recently modified, in timestamp format.
|
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.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Comment.Builder> |
serializableBuilderClass() |
Comment.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
copy
public final String commentId()
The system-generated comment ID.
public final String content()
The content of the comment.
public final String inReplyTo()
The ID of the comment for which this comment is a reply, if any.
public final Instant creationDate()
The date and time the comment was created, in timestamp format.
public final Instant lastModifiedDate()
The date and time the comment was most recently modified, in timestamp format.
public final String authorArn()
The Amazon Resource Name (ARN) of the person who posted the comment.
public final Boolean deleted()
A Boolean value indicating whether the comment has been deleted.
public final 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.
public final boolean hasCallerReactions()
public final List<String> callerReactions()
The emoji reactions to a comment, if any, submitted by the user whose credentials are associated with the call to the API.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasCallerReactions()
to see if a value was sent in this field.
public final boolean hasReactionCounts()
public final 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasReactionCounts()
to see if a value was sent in this field.
public Comment.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Comment.Builder,Comment>
public static Comment.Builder builder()
public static Class<? extends Comment.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.