public class AttachInstancesRequest extends AmazonWebServiceRequest implements java.io.Serializable
AttachInstances operation.
Attaches one or more Amazon EC2 instances to an existing Auto Scaling group. After the instance(s) is attached, it becomes a part of the Auto Scaling group.
For more information, see Attach Amazon EC2 Instance(s) to Your Existing Auto Scaling Group in the Auto Scaling Developer Guide .
| Constructor and Description |
|---|
AttachInstancesRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAutoScalingGroupName()
The name of the Auto Scaling group to which to attach the specified
instance(s).
|
java.util.List<java.lang.String> |
getInstanceIds()
One or more IDs of the Amazon EC2 instances to attach to the specified
Auto Scaling group.
|
int |
hashCode() |
void |
setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group to which to attach the specified
instance(s).
|
void |
setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more IDs of the Amazon EC2 instances to attach to the specified
Auto Scaling group.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttachInstancesRequest |
withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group to which to attach the specified
instance(s).
|
AttachInstancesRequest |
withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more IDs of the Amazon EC2 instances to attach to the specified
Auto Scaling group.
|
AttachInstancesRequest |
withInstanceIds(java.lang.String... instanceIds)
One or more IDs of the Amazon EC2 instances to attach to the specified
Auto Scaling group.
|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollectorpublic java.util.List<java.lang.String> getInstanceIds()
public void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
instanceIds - One or more IDs of the Amazon EC2 instances to attach to the specified
Auto Scaling group. You must specify at least one instance ID.public AttachInstancesRequest withInstanceIds(java.lang.String... instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds - One or more IDs of the Amazon EC2 instances to attach to the specified
Auto Scaling group. You must specify at least one instance ID.public AttachInstancesRequest withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
Returns a reference to this object so that method calls can be chained together.
instanceIds - One or more IDs of the Amazon EC2 instances to attach to the specified
Auto Scaling group. You must specify at least one instance ID.public java.lang.String getAutoScalingGroupName()
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName - The name of the Auto Scaling group to which to attach the specified
instance(s).public AttachInstancesRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName - The name of the Auto Scaling group to which to attach the specified
instance(s).public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object