public static interface Comment.Builder extends CopyableBuilder<Comment.Builder,Comment>
Modifier and Type | Method and Description |
---|---|
Comment.Builder |
commentId(String commentId)
The ID of the comment.
|
default Comment.Builder |
contributor(Consumer<User.Builder> contributor)
The details of the user who made the comment.
|
Comment.Builder |
contributor(User contributor)
The details of the user who made the comment.
|
Comment.Builder |
createdTimestamp(Instant createdTimestamp)
The time that the comment was created.
|
Comment.Builder |
parentId(String parentId)
The ID of the parent comment.
|
Comment.Builder |
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.
|
Comment.Builder |
status(CommentStatusType status)
The status of the comment.
|
Comment.Builder |
status(String status)
The status of the comment.
|
Comment.Builder |
text(String text)
The text of the comment.
|
Comment.Builder |
threadId(String threadId)
The ID of the root comment in the thread.
|
Comment.Builder |
visibility(CommentVisibilityType visibility)
The visibility of the comment.
|
Comment.Builder |
visibility(String visibility)
The visibility of the comment.
|
copy
apply, build
Comment.Builder commentId(String commentId)
The ID of the comment.
commentId
- The ID of the comment.Comment.Builder parentId(String parentId)
The ID of the parent comment.
parentId
- The ID of the parent comment.Comment.Builder threadId(String threadId)
The ID of the root comment in the thread.
threadId
- The ID of the root comment in the thread.Comment.Builder text(String text)
The text of the comment.
text
- The text of the comment.Comment.Builder contributor(User contributor)
The details of the user who made the comment.
contributor
- The details of the user who made the comment.default Comment.Builder contributor(Consumer<User.Builder> contributor)
The details of the user who made the comment.
This is a convenience that creates an instance of theUser.Builder
avoiding the need to create one
manually via User.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to contributor(User)
.contributor
- a consumer that will call methods on User.Builder
contributor(User)
Comment.Builder createdTimestamp(Instant createdTimestamp)
The time that the comment was created.
createdTimestamp
- The time that the comment was created.Comment.Builder status(String status)
The status of the comment.
status
- The status of the comment.CommentStatusType
,
CommentStatusType
Comment.Builder status(CommentStatusType status)
The status of the comment.
status
- The status of the comment.CommentStatusType
,
CommentStatusType
Comment.Builder visibility(String 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.
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.CommentVisibilityType
,
CommentVisibilityType
Comment.Builder visibility(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.
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.CommentVisibilityType
,
CommentVisibilityType
Comment.Builder 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.
recipientId
- If the comment is a reply to another user's comment, this field contains the user ID of the user being
replied to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.