Interface ListBranchesResponse.Builder
- All Superinterfaces:
AmplifyGen3Response.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<ListBranchesResponse.Builder,,ListBranchesResponse> SdkBuilder<ListBranchesResponse.Builder,,ListBranchesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListBranchesResponse
@Mutable
@NotThreadSafe
public static interface ListBranchesResponse.Builder
extends AmplifyGen3Response.Builder, SdkPojo, CopyableBuilder<ListBranchesResponse.Builder,ListBranchesResponse>
-
Method Summary
Modifier and TypeMethodDescriptionbranches(Collection<BranchSummary> branches) The branches for the environment.branches(Consumer<BranchSummary.Builder>... branches) The branches for the environment.branches(BranchSummary... branches) The branches for the environment.The pagination token to use to retrieve the next page of results.Methods inherited from interface software.amazon.awssdk.services.amplifygen3.model.AmplifyGen3Response.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
branches
The branches for the environment.
- Parameters:
branches- The branches for the environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
branches
The branches for the environment.
- Parameters:
branches- The branches for the environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
branches
The branches for the environment.
This is a convenience method that creates an instance of theBranchSummary.Builderavoiding the need to create one manually viaBranchSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobranches(List<BranchSummary>).- Parameters:
branches- a consumer that will call methods onBranchSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The pagination token to use to retrieve the next page of results. This value is null when there are no more results to return.
- Parameters:
nextToken- The pagination token to use to retrieve the next page of results. This value is null when there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-