@Generated(value="software.amazon.awssdk:codegen") public final class Comment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Comment.Builder,Comment>
Describes a comment.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Comment.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Comment.Builder |
builder() |
String |
commentId()
The ID of the comment.
|
User |
contributor()
The details of the user who made the comment.
|
Instant |
createdTimestamp()
The time that the comment was created.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
parentId()
The ID of the parent comment.
|
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.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Comment.Builder> |
serializableBuilderClass() |
CommentStatusType |
status()
The status of the comment.
|
String |
statusAsString()
The status of the comment.
|
String |
text()
The text of the comment.
|
String |
threadId()
The ID of the root comment in the thread.
|
Comment.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
CommentVisibilityType |
visibility()
The visibility of the comment.
|
String |
visibilityAsString()
The visibility of the comment.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String commentId()
The ID of the comment.
public final String parentId()
The ID of the parent comment.
public final String threadId()
The ID of the root comment in the thread.
public final String text()
The text of the comment.
public final User contributor()
The details of the user who made the comment.
public final Instant createdTimestamp()
The time that the comment was created.
public final CommentStatusType status()
The status of the comment.
If the service returns an enum value that is not available in the current SDK version, status will
return CommentStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
CommentStatusTypepublic final String statusAsString()
The status of the comment.
If the service returns an enum value that is not available in the current SDK version, status will
return CommentStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
CommentStatusTypepublic final 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.
If the service returns an enum value that is not available in the current SDK version, visibility will
return CommentVisibilityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from visibilityAsString().
CommentVisibilityTypepublic final String visibilityAsString()
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.
If the service returns an enum value that is not available in the current SDK version, visibility will
return CommentVisibilityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from visibilityAsString().
CommentVisibilityTypepublic final 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.
public Comment.Builder toBuilder()
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)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.