Interface BatchGetCommitsResponse.Builder
- All Superinterfaces:
 AwsResponse.Builder,Buildable,CodeCommitResponse.Builder,CopyableBuilder<BatchGetCommitsResponse.Builder,,BatchGetCommitsResponse> SdkBuilder<BatchGetCommitsResponse.Builder,,BatchGetCommitsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
 BatchGetCommitsResponse
- 
Method Summary
Modifier and TypeMethodDescriptioncommits(Collection<Commit> commits) An array of commit data type objects, each of which contains information about a specified commit.commits(Consumer<Commit.Builder>... commits) An array of commit data type objects, each of which contains information about a specified commit.An array of commit data type objects, each of which contains information about a specified commit.errors(Collection<BatchGetCommitsError> errors) Returns any commit IDs for which information could not be found.errors(Consumer<BatchGetCommitsError.Builder>... errors) Returns any commit IDs for which information could not be found.errors(BatchGetCommitsError... errors) Returns any commit IDs for which information could not be found.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, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse 
- 
Method Details
- 
commits
An array of commit data type objects, each of which contains information about a specified commit.
- Parameters:
 commits- An array of commit data type objects, each of which contains information about a specified commit.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
commits
An array of commit data type objects, each of which contains information about a specified commit.
- Parameters:
 commits- An array of commit data type objects, each of which contains information about a specified commit.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
commits
An array of commit data type objects, each of which contains information about a 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 tocommits(List<Commit>).- Parameters:
 commits- 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:
 
 - 
errors
Returns any commit IDs for which information could not be found. For example, if one of the commit IDs was a shortened SHA ID or that commit was not found in the specified repository, the ID returns an error object with more information.
- Parameters:
 errors- Returns any commit IDs for which information could not be found. For example, if one of the commit IDs was a shortened SHA ID or that commit was not found in the specified repository, the ID returns an error object with more information.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
errors
Returns any commit IDs for which information could not be found. For example, if one of the commit IDs was a shortened SHA ID or that commit was not found in the specified repository, the ID returns an error object with more information.
- Parameters:
 errors- Returns any commit IDs for which information could not be found. For example, if one of the commit IDs was a shortened SHA ID or that commit was not found in the specified repository, the ID returns an error object with more information.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
errors
Returns any commit IDs for which information could not be found. For example, if one of the commit IDs was a shortened SHA ID or that commit was not found in the specified repository, the ID returns an error object with more information.
This is a convenience method that creates an instance of theBatchGetCommitsError.Builderavoiding the need to create one manually viaBatchGetCommitsError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerrors(List<BatchGetCommitsError>).- Parameters:
 errors- a consumer that will call methods onBatchGetCommitsError.Builder- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 
 -