Interface GetBranchResponse.Builder

  • Method Details

    • appName

      The name of the app.

      Parameters:
      appName - The name of the app.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • environmentName

      GetBranchResponse.Builder environmentName(String environmentName)

      The name of the environment.

      Parameters:
      environmentName - The name of the environment.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • branchName

      GetBranchResponse.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

      GetBranchResponse.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

      GetBranchResponse.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

      GetBranchResponse.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.
    • backend

      The backend of the branch. If Amplify can't read the state of the backend, the request fails.

      Parameters:
      backend - The backend of the branch. If Amplify can't read the state of the backend, the request fails.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • backend

      The backend of the branch. If Amplify can't read the state of the backend, the request fails.

      This is a convenience method that creates an instance of the BranchBackend.Builder avoiding the need to create one manually via BranchBackend.builder().

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

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

      GetBranchResponse.Builder sourceBranch(RestoreSourceBranch sourceBranch)

      The branch that this branch was restored from, and the point in time it was restored to. Present only for a branch that was created by RestoreBranch.

      Parameters:
      sourceBranch - The branch that this branch was restored from, and the point in time it was restored to. 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 GetBranchResponse.Builder sourceBranch(Consumer<RestoreSourceBranch.Builder> sourceBranch)

      The branch that this branch was restored from, and the point in time it was restored to. 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: