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.Builder
commit
(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, 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
-
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.Builder
avoiding the need to create one manually viaCommit.builder()
.When the
Consumer
completes,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:
-