Interface CommentMetadata.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CommentMetadata.Builder,CommentMetadata>,SdkBuilder<CommentMetadata.Builder,CommentMetadata>,SdkPojo
- Enclosing class:
- CommentMetadata
@Mutable @NotThreadSafe public static interface CommentMetadata.Builder extends SdkPojo, CopyableBuilder<CommentMetadata.Builder,CommentMetadata>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CommentMetadata.BuildercommentId(String commentId)The ID of the comment.CommentMetadata.BuildercommentStatus(String commentStatus)The status of the comment.CommentMetadata.BuildercommentStatus(CommentStatusType commentStatus)The status of the comment.default CommentMetadata.Buildercontributor(Consumer<User.Builder> contributor)The user who made the comment.CommentMetadata.Buildercontributor(User contributor)The user who made the comment.CommentMetadata.BuildercontributorId(String contributorId)The ID of the user who made the comment.CommentMetadata.BuildercreatedTimestamp(Instant createdTimestamp)The timestamp that the comment was created.CommentMetadata.BuilderrecipientId(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
commentId
CommentMetadata.Builder commentId(String 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
CommentMetadata.Builder contributor(User 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
default CommentMetadata.Builder contributor(Consumer<User.Builder> contributor)
The user who made the comment.
This is a convenience method that creates an instance of theUser.Builderavoiding the need to create one manually viaUser.builder().When the
Consumercompletes,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:
contributor(User)
-
createdTimestamp
CommentMetadata.Builder createdTimestamp(Instant 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
CommentMetadata.Builder commentStatus(String 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:
CommentStatusType,CommentStatusType
-
commentStatus
CommentMetadata.Builder commentStatus(CommentStatusType 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:
CommentStatusType,CommentStatusType
-
recipientId
CommentMetadata.Builder recipientId(String 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
CommentMetadata.Builder contributorId(String 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.
-
-