public class AttachInstancesRequest extends AmazonWebServiceRequest implements 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(Object obj) |
String |
getAutoScalingGroupName()
The name of the Auto Scaling group to which to attach the specified
instance(s).
|
List<String> |
getInstanceIds()
One or more IDs of the Amazon EC2 instances to attach to the specified
Auto Scaling group.
|
int |
hashCode() |
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group to which to attach the specified
instance(s).
|
void |
setInstanceIds(Collection<String> instanceIds)
One or more IDs of the Amazon EC2 instances to attach to the specified
Auto Scaling group.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttachInstancesRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group to which to attach the specified
instance(s).
|
AttachInstancesRequest |
withInstanceIds(Collection<String> instanceIds)
One or more IDs of the Amazon EC2 instances to attach to the specified
Auto Scaling group.
|
AttachInstancesRequest |
withInstanceIds(String... instanceIds)
One or more IDs of the Amazon EC2 instances to attach to the specified
Auto Scaling group.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public List<String> getInstanceIds()
public void setInstanceIds(Collection<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(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(Collection<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 String getAutoScalingGroupName()
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setAutoScalingGroupName(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(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 String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.