Interface UpdateContainerInstancesStateRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateContainerInstancesStateRequest.Builder,
,UpdateContainerInstancesStateRequest> EcsRequest.Builder
,SdkBuilder<UpdateContainerInstancesStateRequest.Builder,
,UpdateContainerInstancesStateRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateContainerInstancesStateRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to update.containerInstances
(String... containerInstances) A list of up to 10 container instance IDs or full ARN entries.containerInstances
(Collection<String> containerInstances) A list of up to 10 container instance IDs or full ARN entries.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The container instance state to update the container instance with.status
(ContainerInstanceStatus status) The container instance state to update the container instance with.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ecs.model.EcsRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
cluster
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to update. If you do not specify a cluster, the default cluster is assumed.
- Parameters:
cluster
- The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to update. If you do not specify a cluster, the default cluster is assumed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerInstances
UpdateContainerInstancesStateRequest.Builder containerInstances(Collection<String> containerInstances) A list of up to 10 container instance IDs or full ARN entries.
- Parameters:
containerInstances
- A list of up to 10 container instance IDs or full ARN entries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerInstances
A list of up to 10 container instance IDs or full ARN entries.
- Parameters:
containerInstances
- A list of up to 10 container instance IDs or full ARN entries.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The container instance state to update the container instance with. The only valid values for this action are
ACTIVE
andDRAINING
. A container instance can only be updated toDRAINING
status once it has reached anACTIVE
state. If a container instance is inREGISTERING
,DEREGISTERING
, orREGISTRATION_FAILED
state you can describe the container instance but can't update the container instance state.- Parameters:
status
- The container instance state to update the container instance with. The only valid values for this action areACTIVE
andDRAINING
. A container instance can only be updated toDRAINING
status once it has reached anACTIVE
state. If a container instance is inREGISTERING
,DEREGISTERING
, orREGISTRATION_FAILED
state you can describe the container instance but can't update the container instance state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The container instance state to update the container instance with. The only valid values for this action are
ACTIVE
andDRAINING
. A container instance can only be updated toDRAINING
status once it has reached anACTIVE
state. If a container instance is inREGISTERING
,DEREGISTERING
, orREGISTRATION_FAILED
state you can describe the container instance but can't update the container instance state.- Parameters:
status
- The container instance state to update the container instance with. The only valid values for this action areACTIVE
andDRAINING
. A container instance can only be updated toDRAINING
status once it has reached anACTIVE
state. If a container instance is inREGISTERING
,DEREGISTERING
, orREGISTRATION_FAILED
state you can describe the container instance but can't update the container instance state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateContainerInstancesStateRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateContainerInstancesStateRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-