Interface ListBranchesResponse.Builder

All Superinterfaces:
AmplifyResponse.Builder, AwsResponse.Builder, Buildable, CopyableBuilder<ListBranchesResponse.Builder,ListBranchesResponse>, SdkBuilder<ListBranchesResponse.Builder,ListBranchesResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
ListBranchesResponse

public static interface ListBranchesResponse.Builder extends AmplifyResponse.Builder, SdkPojo, CopyableBuilder<ListBranchesResponse.Builder,ListBranchesResponse>
  • Method Details

    • branches

      A list of branches for an Amplify app.

      Parameters:
      branches - A list of branches for an Amplify app.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • branches

      ListBranchesResponse.Builder branches(Branch... branches)

      A list of branches for an Amplify app.

      Parameters:
      branches - A list of branches for an Amplify app.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • branches

      A list of branches for an Amplify app.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to branches(List<Branch>).

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

      ListBranchesResponse.Builder nextToken(String nextToken)

      A pagination token. If a non-null pagination token is returned in a result, pass its value in another request to retrieve more entries.

      Parameters:
      nextToken - A pagination token. If a non-null pagination token is returned in a result, pass its value in another request to retrieve more entries.
      Returns:
      Returns a reference to this object so that method calls can be chained together.