Interface DescribeCapacityProvidersResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeCapacityProvidersResponse.Builder,
,DescribeCapacityProvidersResponse> EcsResponse.Builder
,SdkBuilder<DescribeCapacityProvidersResponse.Builder,
,DescribeCapacityProvidersResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeCapacityProvidersResponse
-
Method Summary
Modifier and TypeMethodDescriptioncapacityProviders
(Collection<CapacityProvider> capacityProviders) The list of capacity providers.capacityProviders
(Consumer<CapacityProvider.Builder>... capacityProviders) The list of capacity providers.capacityProviders
(CapacityProvider... capacityProviders) The list of capacity providers.failures
(Collection<Failure> failures) Any failures associated with the call.failures
(Consumer<Failure.Builder>... failures) Any failures associated with the call.Any failures associated with the call.ThenextToken
value to include in a futureDescribeCapacityProviders
request.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ecs.model.EcsResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
capacityProviders
DescribeCapacityProvidersResponse.Builder capacityProviders(Collection<CapacityProvider> capacityProviders) The list of capacity providers.
- Parameters:
capacityProviders
- The list of capacity providers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityProviders
The list of capacity providers.
- Parameters:
capacityProviders
- The list of capacity providers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityProviders
DescribeCapacityProvidersResponse.Builder capacityProviders(Consumer<CapacityProvider.Builder>... capacityProviders) The list of capacity providers.
This is a convenience method that creates an instance of theCapacityProvider.Builder
avoiding the need to create one manually viaCapacityProvider.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocapacityProviders(List<CapacityProvider>)
.- Parameters:
capacityProviders
- a consumer that will call methods onCapacityProvider.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
failures
Any failures associated with the call.
- Parameters:
failures
- Any failures associated with the call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failures
Any failures associated with the call.
- Parameters:
failures
- Any failures associated with the call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failures
Any failures associated with the call.
This is a convenience method that creates an instance of theFailure.Builder
avoiding the need to create one manually viaFailure.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofailures(List<Failure>)
.- Parameters:
failures
- a consumer that will call methods onFailure.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The
nextToken
value to include in a futureDescribeCapacityProviders
request. When the results of aDescribeCapacityProviders
request exceedmaxResults
, this value can be used to retrieve the next page of results. This value isnull
when there are no more results to return.- Parameters:
nextToken
- ThenextToken
value to include in a futureDescribeCapacityProviders
request. When the results of aDescribeCapacityProviders
request exceedmaxResults
, this value can be used to retrieve the next page of results. This value isnull
when there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-