public class RegisterContainerInstanceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
RegisterContainerInstance operation
.
NOTE: This action is only used by the Amazon EC2 Container Service agent, and it is not intended for use outside of the agent.
Registers an Amazon EC2 instance into the specified cluster. This instance will become available to place containers on.
NOOP
Constructor and Description |
---|
RegisterContainerInstanceRequest() |
Modifier and Type | Method and Description |
---|---|
RegisterContainerInstanceRequest |
clone() |
boolean |
equals(Object obj) |
String |
getCluster()
The short name or full Amazon Resource Name (ARN) of the cluster that
you want to register your container instance with.
|
String |
getInstanceIdentityDocument()
The instance identity document for the Amazon EC2 instance to
register.
|
String |
getInstanceIdentityDocumentSignature()
The instance identity document signature for the Amazon EC2 instance
to register.
|
List<Resource> |
getTotalResources()
The resources available on the instance.
|
VersionInfo |
getVersionInfo()
The version information for the Amazon ECS container agent and Docker
daemon running on the container instance.
|
int |
hashCode() |
void |
setCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that
you want to register your container instance with.
|
void |
setInstanceIdentityDocument(String instanceIdentityDocument)
The instance identity document for the Amazon EC2 instance to
register.
|
void |
setInstanceIdentityDocumentSignature(String instanceIdentityDocumentSignature)
The instance identity document signature for the Amazon EC2 instance
to register.
|
void |
setTotalResources(Collection<Resource> totalResources)
The resources available on the instance.
|
void |
setVersionInfo(VersionInfo versionInfo)
The version information for the Amazon ECS container agent and Docker
daemon running on the container instance.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RegisterContainerInstanceRequest |
withCluster(String cluster)
The short name or full Amazon Resource Name (ARN) of the cluster that
you want to register your container instance with.
|
RegisterContainerInstanceRequest |
withInstanceIdentityDocument(String instanceIdentityDocument)
The instance identity document for the Amazon EC2 instance to
register.
|
RegisterContainerInstanceRequest |
withInstanceIdentityDocumentSignature(String instanceIdentityDocumentSignature)
The instance identity document signature for the Amazon EC2 instance
to register.
|
RegisterContainerInstanceRequest |
withTotalResources(Collection<Resource> totalResources)
The resources available on the instance.
|
RegisterContainerInstanceRequest |
withTotalResources(Resource... totalResources)
The resources available on the instance.
|
RegisterContainerInstanceRequest |
withVersionInfo(VersionInfo versionInfo)
The version information for the Amazon ECS container agent and Docker
daemon running on the container instance.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, 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
you want to register your container instance with. If you do not
specify a cluster, the default cluster is assumed..public RegisterContainerInstanceRequest 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
you want to register your container instance with. If you do not
specify a cluster, the default cluster is assumed..public String getInstanceIdentityDocument()
curl
http://169.254.169.254/latest/dynamic/instance-identity/document/
curl
http://169.254.169.254/latest/dynamic/instance-identity/document/
public void setInstanceIdentityDocument(String instanceIdentityDocument)
curl
http://169.254.169.254/latest/dynamic/instance-identity/document/
instanceIdentityDocument
- The instance identity document for the Amazon EC2 instance to
register. This document can be found by running the following command
from the instance: curl
http://169.254.169.254/latest/dynamic/instance-identity/document/
public RegisterContainerInstanceRequest withInstanceIdentityDocument(String instanceIdentityDocument)
curl
http://169.254.169.254/latest/dynamic/instance-identity/document/
Returns a reference to this object so that method calls can be chained together.
instanceIdentityDocument
- The instance identity document for the Amazon EC2 instance to
register. This document can be found by running the following command
from the instance: curl
http://169.254.169.254/latest/dynamic/instance-identity/document/
public String getInstanceIdentityDocumentSignature()
curl
http://169.254.169.254/latest/dynamic/instance-identity/signature/
curl
http://169.254.169.254/latest/dynamic/instance-identity/signature/
public void setInstanceIdentityDocumentSignature(String instanceIdentityDocumentSignature)
curl
http://169.254.169.254/latest/dynamic/instance-identity/signature/
instanceIdentityDocumentSignature
- The instance identity document signature for the Amazon EC2 instance
to register. This signature can be found by running the following
command from the instance: curl
http://169.254.169.254/latest/dynamic/instance-identity/signature/
public RegisterContainerInstanceRequest withInstanceIdentityDocumentSignature(String instanceIdentityDocumentSignature)
curl
http://169.254.169.254/latest/dynamic/instance-identity/signature/
Returns a reference to this object so that method calls can be chained together.
instanceIdentityDocumentSignature
- The instance identity document signature for the Amazon EC2 instance
to register. This signature can be found by running the following
command from the instance: curl
http://169.254.169.254/latest/dynamic/instance-identity/signature/
public List<Resource> getTotalResources()
public void setTotalResources(Collection<Resource> totalResources)
totalResources
- The resources available on the instance.public RegisterContainerInstanceRequest withTotalResources(Resource... totalResources)
NOTE: This method appends the values to the existing list (if
any). Use setTotalResources(java.util.Collection)
or withTotalResources(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
totalResources
- The resources available on the instance.public RegisterContainerInstanceRequest withTotalResources(Collection<Resource> totalResources)
Returns a reference to this object so that method calls can be chained together.
totalResources
- The resources available on the instance.public VersionInfo getVersionInfo()
public void setVersionInfo(VersionInfo versionInfo)
versionInfo
- The version information for the Amazon ECS container agent and Docker
daemon running on the container instance.public RegisterContainerInstanceRequest withVersionInfo(VersionInfo versionInfo)
Returns a reference to this object so that method calls can be chained together.
versionInfo
- The version information for the Amazon ECS container agent and Docker
daemon running on the container instance.public String toString()
toString
in class Object
Object.toString()
public RegisterContainerInstanceRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2015. All rights reserved.