Interface DescribeClustersResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeClustersResponse.Builder,
,DescribeClustersResponse> EcsResponse.Builder
,SdkBuilder<DescribeClustersResponse.Builder,
,DescribeClustersResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeClustersResponse
@Mutable
@NotThreadSafe
public static interface DescribeClustersResponse.Builder
extends EcsResponse.Builder, SdkPojo, CopyableBuilder<DescribeClustersResponse.Builder,DescribeClustersResponse>
-
Method Summary
Modifier and TypeMethodDescriptionclusters
(Collection<Cluster> clusters) The list of clusters.clusters
(Consumer<Cluster.Builder>... clusters) The list of clusters.The list of clusters.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.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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
clusters
The list of clusters.
- Parameters:
clusters
- The list of clusters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusters
The list of clusters.
- Parameters:
clusters
- The list of clusters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clusters
The list of clusters.
This is a convenience method that creates an instance of theCluster.Builder
avoiding the need to create one manually viaCluster.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toclusters(List<Cluster>)
.- Parameters:
clusters
- a consumer that will call methods onCluster.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:
-