Interface BatchGetCommitsResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CodeCommitResponse.Builder,CopyableBuilder<BatchGetCommitsResponse.Builder,BatchGetCommitsResponse>,SdkBuilder<BatchGetCommitsResponse.Builder,BatchGetCommitsResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- BatchGetCommitsResponse
public static interface BatchGetCommitsResponse.Builder extends CodeCommitResponse.Builder, SdkPojo, CopyableBuilder<BatchGetCommitsResponse.Builder,BatchGetCommitsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BatchGetCommitsResponse.Buildercommits(Collection<Commit> commits)An array of commit data type objects, each of which contains information about a specified commit.BatchGetCommitsResponse.Buildercommits(Consumer<Commit.Builder>... commits)An array of commit data type objects, each of which contains information about a specified commit.BatchGetCommitsResponse.Buildercommits(Commit... commits)An array of commit data type objects, each of which contains information about a specified commit.BatchGetCommitsResponse.Buildererrors(Collection<BatchGetCommitsError> errors)Returns any commit IDs for which information could not be found.BatchGetCommitsResponse.Buildererrors(Consumer<BatchGetCommitsError.Builder>... errors)Returns any commit IDs for which information could not be found.BatchGetCommitsResponse.Buildererrors(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, 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 Detail
-
commits
BatchGetCommitsResponse.Builder commits(Collection<Commit> 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
BatchGetCommitsResponse.Builder commits(Commit... 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
BatchGetCommitsResponse.Builder commits(Consumer<Commit.Builder>... 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 to#commits(List.) - 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:
#commits(java.util.Collection)
-
errors
BatchGetCommitsResponse.Builder errors(Collection<BatchGetCommitsError> 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
BatchGetCommitsResponse.Builder errors(BatchGetCommitsError... 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
BatchGetCommitsResponse.Builder errors(Consumer<BatchGetCommitsError.Builder>... 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 to#errors(List.) - 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:
#errors(java.util.Collection)
-
-