com.amazonaws.services.autoscaling.model
Class AttachInstancesRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.autoscaling.model.AttachInstancesRequest
All Implemented Interfaces:
java.io.Serializable

public class AttachInstancesRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the 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 .

See Also:
AmazonAutoScaling.attachInstances(AttachInstancesRequest), Serialized Form

Constructor Summary
AttachInstancesRequest()
           
 
Method Summary
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttachInstancesRequest

public AttachInstancesRequest()
Method Detail

getInstanceIds

public java.util.List<java.lang.String> getInstanceIds()
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.

Returns:
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.

setInstanceIds

public 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. You must specify at least one instance ID.

Parameters:
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.

withInstanceIds

public AttachInstancesRequest withInstanceIds(java.lang.String... 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

withInstanceIds

public 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. You must specify at least one instance ID.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getAutoScalingGroupName

public java.lang.String getAutoScalingGroupName()
The name of the Auto Scaling group to which to attach the specified instance(s).

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Returns:
The name of the Auto Scaling group to which to attach the specified instance(s).

setAutoScalingGroupName

public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group to which to attach the specified instance(s).

Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Parameters:
autoScalingGroupName - The name of the Auto Scaling group to which to attach the specified instance(s).

withAutoScalingGroupName

public AttachInstancesRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group to which to attach the specified instance(s).

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]*

Parameters:
autoScalingGroupName - The name of the Auto Scaling group to which to attach the specified instance(s).
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.