public class UpdateContainerAgentRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
UpdateContainerAgent operation
.
Updates the Amazon ECS container agent on a specified container instance. Updating the Amazon ECS container agent does not interrupt running tasks or services on the container instance. The process for updating the agent differs depending on whether your container instance was launched with the Amazon ECS-optimized AMI or another operating system.
UpdateContainerAgent
requires the Amazon ECS-optimized
AMI or Amazon Linux with the ecs-init
service installed
and running. For help updating the Amazon ECS container agent on other
operating systems, see
Manually Updating the Amazon ECS Container Agent
in the Amazon EC2 Container Service Developer Guide .
NOOP
Constructor and Description |
---|
UpdateContainerAgentRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateContainerAgentRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getCluster()
The short name or full Amazon Resource Name (ARN) of the cluster that
your container instance is running on.
|
String |
getContainerInstance()
The container instance UUID or full Amazon Resource Name (ARN) entries
for the container instance on which you would like to update the
Amazon ECS container agent.
|
int |
hashCode() |
void |
setCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that
your container instance is running on.
|
void |
setContainerInstance(String containerInstance)
The container instance UUID or full Amazon Resource Name (ARN) entries
for the container instance on which you would like to update the
Amazon ECS container agent.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateContainerAgentRequest |
withCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that
your container instance is running on.
|
UpdateContainerAgentRequest |
withContainerInstance(String containerInstance)
The container instance UUID or full Amazon Resource Name (ARN) entries
for the container instance on which you would like to update the
Amazon ECS container agent.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getCluster()
public void setCluster(String cluster)
cluster
- The short name or full Amazon Resource Name (ARN) of the cluster that
your container instance is running on. If you do not specify a
cluster, the default cluster is assumed.public UpdateContainerAgentRequest withCluster(String cluster)
Returns a reference to this object so that method calls can be chained together.
cluster
- The short name or full Amazon Resource Name (ARN) of the cluster that
your container instance is running on. If you do not specify a
cluster, the default cluster is assumed.public String getContainerInstance()
public void setContainerInstance(String containerInstance)
containerInstance
- The container instance UUID or full Amazon Resource Name (ARN) entries
for the container instance on which you would like to update the
Amazon ECS container agent.public UpdateContainerAgentRequest withContainerInstance(String containerInstance)
Returns a reference to this object so that method calls can be chained together.
containerInstance
- The container instance UUID or full Amazon Resource Name (ARN) entries
for the container instance on which you would like to update the
Amazon ECS container agent.public String toString()
toString
in class Object
Object.toString()
public UpdateContainerAgentRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.