Interface Comment.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Comment.Builder,
,Comment> SdkBuilder<Comment.Builder,
,Comment> SdkPojo
- Enclosing class:
Comment
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the comment.default Comment.Builder
contributor
(Consumer<User.Builder> contributor) The details of the user who made the comment.contributor
(User contributor) The details of the user who made the comment.createdTimestamp
(Instant createdTimestamp) The time that the comment was created.The ID of the parent comment.recipientId
(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.The status of the comment.status
(CommentStatusType status) The status of the comment.The text of the comment.The ID of the root comment in the thread.visibility
(String visibility) The visibility of the comment.visibility
(CommentVisibilityType visibility) The visibility of the comment.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
commentId
The ID of the comment.
- Parameters:
commentId
- The ID of the comment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parentId
The ID of the parent comment.
- Parameters:
parentId
- The ID of the parent comment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
threadId
The ID of the root comment in the thread.
- Parameters:
threadId
- The ID of the root comment in the thread.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
text
The text of the comment.
- Parameters:
text
- The text of the comment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contributor
The details of the user who made the comment.
- Parameters:
contributor
- The details of the user who made the comment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contributor
The details of the user who made the comment.
This is a convenience method that creates an instance of theUser.Builder
avoiding the need to create one manually viaUser.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontributor(User)
.- Parameters:
contributor
- a consumer that will call methods onUser.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdTimestamp
The time that the comment was created.
- Parameters:
createdTimestamp
- The time that the comment was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the comment.
- Parameters:
status
- The status of the comment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the comment.
- Parameters:
status
- The status of the comment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recipientId
If the comment is a reply to another user's comment, this field contains the user ID of the user being replied to.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-