@Generated(value="software.amazon.awssdk:codegen") public final class DeregisterContainerInstanceRequest extends EcsRequest implements ToCopyableBuilder<DeregisterContainerInstanceRequest.Builder,DeregisterContainerInstanceRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
DeregisterContainerInstanceRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static DeregisterContainerInstanceRequest.Builder |
builder() |
String |
cluster()
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to deregister.
|
String |
containerInstance()
The container instance ID or full Amazon Resource Name (ARN) of the container instance to deregister.
|
boolean |
equals(Object obj) |
Boolean |
force()
Forces the deregistration of the container instance.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
static Class<? extends DeregisterContainerInstanceRequest.Builder> |
serializableBuilderClass() |
DeregisterContainerInstanceRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String cluster()
The short name or full Amazon Resource Name (ARN) of the cluster that hosts the container instance to deregister. If you do not specify a cluster, the default cluster is assumed.
public String containerInstance()
The container instance ID or full Amazon Resource Name (ARN) of the container instance to deregister. The ARN
contains the arn:aws:ecs
namespace, followed by the region of the container instance, the AWS
account ID of the container instance owner, the container-instance
namespace, and then the container
instance ID. For example,
arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID
.
arn:aws:ecs
namespace, followed by the region of the container instance,
the AWS account ID of the container instance owner, the container-instance
namespace, and
then the container instance ID. For example,
arn:aws:ecs:region:aws_account_id:container-instance/container_instance_ID
.public Boolean force()
Forces the deregistration of the container instance. If you have tasks running on the container instance when you
deregister it with the force
option, these tasks remain running until you terminate the instance or
the tasks stop through some other means, but they are orphaned (no longer monitored or accounted for by Amazon
ECS). If an orphaned task on your container instance is part of an Amazon ECS service, then the service scheduler
starts another copy of that task, on a different container instance if possible.
Any containers in orphaned service tasks that are registered with a Classic Load Balancer or an Application Load Balancer target group are deregistered, and they will begin connection draining according to the settings on the load balancer or target group.
force
option, these tasks remain running until you terminate
the instance or the tasks stop through some other means, but they are orphaned (no longer monitored or
accounted for by Amazon ECS). If an orphaned task on your container instance is part of an Amazon ECS
service, then the service scheduler starts another copy of that task, on a different container instance
if possible.
Any containers in orphaned service tasks that are registered with a Classic Load Balancer or an Application Load Balancer target group are deregistered, and they will begin connection draining according to the settings on the load balancer or target group.
public DeregisterContainerInstanceRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<DeregisterContainerInstanceRequest.Builder,DeregisterContainerInstanceRequest>
toBuilder
in class EcsRequest
public static DeregisterContainerInstanceRequest.Builder builder()
public static Class<? extends DeregisterContainerInstanceRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.