public class AttachInstancesRequest extends AmazonWebServiceRequest implements java.io.Serializable
Attaches one or more EC2 instances to the specified Auto Scaling group.
When you attach instances, Auto Scaling increases the desired capacity of the group by the number of instances being attached. If the number of instances being attached plus the desired capacity of the group exceeds the maximum size of the group, the operation fails.
For more information, see Attach EC2 Instances to Your 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 group.
|
java.util.List<java.lang.String> |
getInstanceIds()
One or more instance IDs.
|
int |
hashCode() |
void |
setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
|
void |
setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.
|
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 group.
|
AttachInstancesRequest |
withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.
|
AttachInstancesRequest |
withInstanceIds(java.lang.String... instanceIds)
One or more instance IDs.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.util.List<java.lang.String> getInstanceIds()
One or more instance IDs.
One or more instance IDs.
public void setInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.
instanceIds
- One or more instance IDs.
public AttachInstancesRequest withInstanceIds(java.lang.String... instanceIds)
One or more instance IDs.
Returns a reference to this object so that method calls can be chained together.
instanceIds
- One or more instance IDs.
public AttachInstancesRequest withInstanceIds(java.util.Collection<java.lang.String> instanceIds)
One or more instance IDs.
Returns a reference to this object so that method calls can be chained together.
instanceIds
- One or more instance IDs.
public java.lang.String getAutoScalingGroupName()
The name of the group.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
The name of the group.
public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the group.
public AttachInstancesRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the group.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.