Class Comment
- java.lang.Object
-
- software.amazon.awssdk.services.workdocs.model.Comment
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Comment.Builder,Comment>
@Generated("software.amazon.awssdk:codegen") public final class Comment extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Comment.Builder,Comment>
Describes a comment.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceComment.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Comment.Builderbuilder()StringcommentId()The ID of the comment.Usercontributor()The details of the user who made the comment.InstantcreatedTimestamp()The time that the comment was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringparentId()The ID of the parent comment.StringrecipientId()If the comment is a reply to another user's comment, this field contains the user ID of the user being replied to.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Comment.Builder>serializableBuilderClass()CommentStatusTypestatus()The status of the comment.StringstatusAsString()The status of the comment.Stringtext()The text of the comment.StringthreadId()The ID of the root comment in the thread.Comment.BuildertoBuilder()StringtoString()Returns a string representation of this object.CommentVisibilityTypevisibility()The visibility of the comment.StringvisibilityAsString()The visibility of the comment.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
commentId
public final String commentId()
The ID of the comment.
- Returns:
- The ID of the comment.
-
parentId
public final String parentId()
The ID of the parent comment.
- Returns:
- The ID of the parent comment.
-
threadId
public final String threadId()
The ID of the root comment in the thread.
- Returns:
- The ID of the root comment in the thread.
-
text
public final String text()
The text of the comment.
- Returns:
- The text of the comment.
-
contributor
public final User contributor()
The details of the user who made the comment.
- Returns:
- The details of the user who made the comment.
-
createdTimestamp
public final Instant createdTimestamp()
The time that the comment was created.
- Returns:
- The time that the comment was created.
-
status
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,
statuswill returnCommentStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the comment.
- See Also:
CommentStatusType
-
statusAsString
public final String statusAsString()
The status of the comment.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnCommentStatusType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The status of the comment.
- See Also:
CommentStatusType
-
visibility
public 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,
visibilitywill returnCommentVisibilityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvisibilityAsString().- Returns:
- 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.
- See Also:
CommentVisibilityType
-
visibilityAsString
public 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,
visibilitywill returnCommentVisibilityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvisibilityAsString().- Returns:
- 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.
- See Also:
CommentVisibilityType
-
recipientId
public 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.
- Returns:
- If the comment is a reply to another user's comment, this field contains the user ID of the user being replied to.
-
toBuilder
public Comment.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Comment.Builder,Comment>
-
builder
public static Comment.Builder builder()
-
serializableBuilderClass
public static Class<? extends Comment.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-