Interface BranchSummary.Builder

  • Method Details

    • branchName

      BranchSummary.Builder branchName(String 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

      BranchSummary.Builder branchArn(String 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

      BranchSummary.Builder gitBranchName(String 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

      BranchSummary.Builder createdAt(Instant 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

      BranchSummary.Builder sourceBranch(RestoreSourceBranch 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

      default BranchSummary.Builder sourceBranch(Consumer<RestoreSourceBranch.Builder> 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 the RestoreSourceBranch.Builder avoiding the need to create one manually via RestoreSourceBranch.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to sourceBranch(RestoreSourceBranch).

      Parameters:
      sourceBranch - a consumer that will call methods on RestoreSourceBranch.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: