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.ThenextTokenvalue to include in a futureDescribeCapacityProvidersrequest.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
- 
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.Builderavoiding the need to create one manually viaCapacityProvider.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaFailure.builder().When the
Consumercompletes,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
nextTokenvalue to include in a futureDescribeCapacityProvidersrequest. When the results of aDescribeCapacityProvidersrequest 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 futureDescribeCapacityProvidersrequest. When the results of aDescribeCapacityProvidersrequest 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.
 
 
 -