Interface DeleteBranchResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CodeCommitResponse.Builder,CopyableBuilder<DeleteBranchResponse.Builder,DeleteBranchResponse>,SdkBuilder<DeleteBranchResponse.Builder,DeleteBranchResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- DeleteBranchResponse
public static interface DeleteBranchResponse.Builder extends CodeCommitResponse.Builder, SdkPojo, CopyableBuilder<DeleteBranchResponse.Builder,DeleteBranchResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DeleteBranchResponse.BuilderdeletedBranch(Consumer<BranchInfo.Builder> deletedBranch)Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.DeleteBranchResponse.BuilderdeletedBranch(BranchInfo deletedBranch)Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip 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 Detail
-
deletedBranch
DeleteBranchResponse.Builder deletedBranch(BranchInfo deletedBranch)
Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.
- Parameters:
deletedBranch- Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deletedBranch
default DeleteBranchResponse.Builder deletedBranch(Consumer<BranchInfo.Builder> deletedBranch)
Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.
This is a convenience method that creates an instance of theBranchInfo.Builderavoiding the need to create one manually viaBranchInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todeletedBranch(BranchInfo).- Parameters:
deletedBranch- 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:
deletedBranch(BranchInfo)
-
-