Interface BranchSummary.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<BranchSummary.Builder,,BranchSummary> SdkBuilder<BranchSummary.Builder,,BranchSummary> SdkPojo
- Enclosing class:
BranchSummary
@Mutable
@NotThreadSafe
public static interface BranchSummary.Builder
extends SdkPojo, CopyableBuilder<BranchSummary.Builder,BranchSummary>
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the branch.branchName(String branchName) The name of the branch.The time at which the branch was created.gitBranchName(String gitBranchName) The name of the Git branch that the branch was created for.default BranchSummary.BuildersourceBranch(Consumer<RestoreSourceBranch.Builder> sourceBranch) The branch that this branch was restored from.sourceBranch(RestoreSourceBranch sourceBranch) The branch that this branch was restored from.Methods 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, sdkFields
-
Method Details
-
branchName
The name of the branch.
- Parameters:
branchName- The name of the branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
branchArn
The Amazon Resource Name (ARN) of the branch.
- Parameters:
branchArn- The Amazon Resource Name (ARN) of the branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gitBranchName
The name of the Git branch that the branch was created for. Present only for a branch that was created for a Git branch.
- Parameters:
gitBranchName- The name of the Git branch that the branch was created for. Present only for a branch that was created for a Git branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The time at which the branch was created. The value is in ISO-8601 format.
- Parameters:
createdAt- The time at which the branch was created. The value is in ISO-8601 format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceBranch
The branch that this branch was restored from. Present only for a branch that was created by RestoreBranch.
- Parameters:
sourceBranch- The branch that this branch was restored from. Present only for a branch that was created by RestoreBranch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceBranch
The branch that this branch was restored from. Present only for a branch that was created by RestoreBranch.
This is a convenience method that creates an instance of theRestoreSourceBranch.Builderavoiding the need to create one manually viaRestoreSourceBranch.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosourceBranch(RestoreSourceBranch).- Parameters:
sourceBranch- a consumer that will call methods onRestoreSourceBranch.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-