Interface GetCommitResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CodeCommitResponse.Builder,CopyableBuilder<GetCommitResponse.Builder,,GetCommitResponse> SdkBuilder<GetCommitResponse.Builder,,GetCommitResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetCommitResponse
public static interface GetCommitResponse.Builder
extends CodeCommitResponse.Builder, SdkPojo, CopyableBuilder<GetCommitResponse.Builder,GetCommitResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetCommitResponse.Buildercommit(Consumer<Commit.Builder> commit) A commit data type object that contains information about the specified commit.A commit data type object that contains information about the specified commit.Methods inherited from interface software.amazon.awssdk.services.codecommit.model.CodeCommitResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
commit
A commit data type object that contains information about the specified commit.
- Parameters:
commit- A commit data type object that contains information about the specified commit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
commit
A commit data type object that contains information about the specified commit.
This is a convenience method that creates an instance of theCommit.Builderavoiding the need to create one manually viaCommit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocommit(Commit).- Parameters:
commit- a consumer that will call methods onCommit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-