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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetCommentResponse.Buildercomment(Consumer<Comment.Builder> comment)The contents of the comment.GetCommentResponse.Buildercomment(Comment 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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
comment
GetCommentResponse.Builder comment(Comment 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
default GetCommentResponse.Builder comment(Consumer<Comment.Builder> comment)
The contents of the comment.
This is a convenience method that creates an instance of theComment.Builderavoiding the need to create one manually viaComment.builder().When the
Consumercompletes,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:
comment(Comment)
-
-