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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CommentMetadata.Builder
commentId(String commentId)
The ID of the comment.CommentMetadata.Builder
commentStatus(String commentStatus)
The status of the comment.CommentMetadata.Builder
commentStatus(CommentStatusType commentStatus)
The status of the comment.default CommentMetadata.Builder
contributor(Consumer<User.Builder> contributor)
The user who made the comment.CommentMetadata.Builder
contributor(User contributor)
The user who made the comment.CommentMetadata.Builder
contributorId(String contributorId)
The ID of the user who made the comment.CommentMetadata.Builder
createdTimestamp(Instant createdTimestamp)
The timestamp that the comment was created.CommentMetadata.Builder
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 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.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:
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.
-
-