Interface CommentMetadata.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CommentMetadata.Builder,
,CommentMetadata> SdkBuilder<CommentMetadata.Builder,
,CommentMetadata> SdkPojo
- Enclosing class:
CommentMetadata
public static interface CommentMetadata.Builder
extends SdkPojo, CopyableBuilder<CommentMetadata.Builder,CommentMetadata>
-
Method Summary
Modifier and TypeMethodDescriptionThe ID of the comment.commentStatus
(String commentStatus) The status of the comment.commentStatus
(CommentStatusType commentStatus) The status of the comment.default CommentMetadata.Builder
contributor
(Consumer<User.Builder> contributor) The user who made the comment.contributor
(User contributor) The user who made the comment.contributorId
(String contributorId) The ID of the user who made the comment.createdTimestamp
(Instant createdTimestamp) The timestamp that the comment was created.recipientId
(String recipientId) The ID of the user being replied to.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.
-
contributor
The user who made the comment.
- Parameters:
contributor
- The user who made the comment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contributor
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 timestamp that the comment was created.
- Parameters:
createdTimestamp
- The timestamp that the comment was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commentStatus
The status of the comment.
- Parameters:
commentStatus
- The status of the comment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
commentStatus
The status of the comment.
- Parameters:
commentStatus
- The status of the comment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recipientId
The ID of the user being replied to.
- Parameters:
recipientId
- The ID of the user being replied to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contributorId
The ID of the user who made the comment.
- Parameters:
contributorId
- The ID of the user who made the comment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-