Interface DescribeContainerInstancesResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeContainerInstancesResponse.Builder,,DescribeContainerInstancesResponse> EcsResponse.Builder,SdkBuilder<DescribeContainerInstancesResponse.Builder,,DescribeContainerInstancesResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeContainerInstancesResponse
@Mutable
@NotThreadSafe
public static interface DescribeContainerInstancesResponse.Builder
extends EcsResponse.Builder, SdkPojo, CopyableBuilder<DescribeContainerInstancesResponse.Builder,DescribeContainerInstancesResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncontainerInstances(Collection<ContainerInstance> containerInstances) The list of container instances.containerInstances(Consumer<ContainerInstance.Builder>... containerInstances) The list of container instances.containerInstances(ContainerInstance... containerInstances) The list of container instances.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
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
-
containerInstances
DescribeContainerInstancesResponse.Builder containerInstances(Collection<ContainerInstance> containerInstances) The list of container instances.
- Parameters:
containerInstances- The list of container instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerInstances
DescribeContainerInstancesResponse.Builder containerInstances(ContainerInstance... containerInstances) The list of container instances.
- Parameters:
containerInstances- The list of container instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerInstances
DescribeContainerInstancesResponse.Builder containerInstances(Consumer<ContainerInstance.Builder>... containerInstances) The list of container instances.
This is a convenience method that creates an instance of theContainerInstance.Builderavoiding the need to create one manually viaContainerInstance.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontainerInstances(List<ContainerInstance>).- Parameters:
containerInstances- a consumer that will call methods onContainerInstance.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:
-