Interface ListGatewaysResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListGatewaysResponse.Builder,,ListGatewaysResponse> EcsResponse.Builder,SdkBuilder<ListGatewaysResponse.Builder,,ListGatewaysResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListGatewaysResponse
@Mutable
@NotThreadSafe
public static interface ListGatewaysResponse.Builder
extends EcsResponse.Builder, SdkPojo, CopyableBuilder<ListGatewaysResponse.Builder,ListGatewaysResponse>
-
Method Summary
Modifier and TypeMethodDescriptiongateways(Collection<GatewaySummary> gateways) The list of gateways that match the request.gateways(Consumer<GatewaySummary.Builder>... gateways) The list of gateways that match the request.gateways(GatewaySummary... gateways) The list of gateways that match the request.ThenextTokenvalue to include in a futureListGatewaysrequest.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ecs.model.EcsResponse.Builder
build, responseMetadata, responseMetadataMethods 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
-
gateways
The list of gateways that match the request.
- Parameters:
gateways- The list of gateways that match the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gateways
The list of gateways that match the request.
- Parameters:
gateways- The list of gateways that match the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gateways
The list of gateways that match the request.
This is a convenience method that creates an instance of theGatewaySummary.Builderavoiding the need to create one manually viaGatewaySummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed togateways(List<GatewaySummary>).- Parameters:
gateways- a consumer that will call methods onGatewaySummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The
nextTokenvalue to include in a futureListGatewaysrequest. When the results of aListGatewaysrequest exceedmaxResults, this value can be used to retrieve the next page of results. This value isnullwhen there are no more results to return.- Parameters:
nextToken- ThenextTokenvalue to include in a futureListGatewaysrequest. When the results of aListGatewaysrequest exceedmaxResults, this value can be used to retrieve the next page of results. This value isnullwhen there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-