Interface GetCommentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CodeCommitResponse.Builder
,CopyableBuilder<GetCommentResponse.Builder,
,GetCommentResponse> SdkBuilder<GetCommentResponse.Builder,
,GetCommentResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetCommentResponse
public static interface GetCommentResponse.Builder
extends CodeCommitResponse.Builder, SdkPojo, CopyableBuilder<GetCommentResponse.Builder,GetCommentResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetCommentResponse.Builder
comment
(Consumer<Comment.Builder> comment) The contents of the comment.The contents of the comment.Methods inherited from interface software.amazon.awssdk.services.codecommit.model.CodeCommitResponse.Builder
build, responseMetadata, responseMetadata
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
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
comment
The contents of the comment.
- Parameters:
comment
- The contents of the comment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
comment
The contents of the comment.
This is a convenience method that creates an instance of theComment.Builder
avoiding the need to create one manually viaComment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocomment(Comment)
.- Parameters:
comment
- a consumer that will call methods onComment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-