public static interface GetCommitResponse.Builder extends CodeCommitResponse.Builder, CopyableBuilder<GetCommitResponse.Builder,GetCommitResponse>
Modifier and Type | Method and Description |
---|---|
GetCommitResponse.Builder |
commit(Commit commit)
A commit data type object that contains information about the specified commit.
|
default GetCommitResponse.Builder |
commit(Consumer<Commit.Builder> commit)
A commit data type object that contains information about the specified commit.
|
build
sdkHttpResponse, sdkHttpResponse
copy
applyMutation, build
GetCommitResponse.Builder commit(Commit commit)
A commit data type object that contains information about the specified commit.
commit
- A commit data type object that contains information about the specified commit.default GetCommitResponse.Builder commit(Consumer<Commit.Builder> commit)
A commit data type object that contains information about the specified commit.
This is a convenience that creates an instance of theCommit.Builder
avoiding the need to create one
manually via Commit.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result is
passed to commit(Commit)
.commit
- a consumer that will call methods on Commit.Builder
commit(Commit)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.