Interface GetBranchResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CodeCommitResponse.Builder
,CopyableBuilder<GetBranchResponse.Builder,
,GetBranchResponse> SdkBuilder<GetBranchResponse.Builder,
,GetBranchResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetBranchResponse
public static interface GetBranchResponse.Builder
extends CodeCommitResponse.Builder, SdkPojo, CopyableBuilder<GetBranchResponse.Builder,GetBranchResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetBranchResponse.Builder
branch
(Consumer<BranchInfo.Builder> branch) The name of the branch.branch
(BranchInfo branch) The name of the branch.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
-
branch
The name of the branch.
- Parameters:
branch
- The name of the branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
branch
The name of the branch.
This is a convenience method that creates an instance of theBranchInfo.Builder
avoiding the need to create one manually viaBranchInfo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobranch(BranchInfo)
.- Parameters:
branch
- a consumer that will call methods onBranchInfo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-