com.amazonaws.services.autoscaling.model
Class SetDesiredCapacityRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.autoscaling.model.SetDesiredCapacityRequest

public class SetDesiredCapacityRequest
extends AmazonWebServiceRequest

Container for the parameters to the SetDesiredCapacity operation.

Adjusts the desired size of the AutoScalingGroup by initiating scaling activities. When reducing the size of the group, it is not possible to define which EC2 instances will be terminated. This applies to any auto-scaling decisions that might result in the termination of instances.

See Also:
AmazonAutoScaling.setDesiredCapacity(SetDesiredCapacityRequest)

Constructor Summary
SetDesiredCapacityRequest()
           
 
Method Summary
 String getAutoScalingGroupName()
          The name of the AutoScalingGroup.
 Integer getDesiredCapacity()
          The new capacity setting for the AutoScalingGroup.
 void setAutoScalingGroupName(String autoScalingGroupName)
          The name of the AutoScalingGroup.
 void setDesiredCapacity(Integer desiredCapacity)
          The new capacity setting for the AutoScalingGroup.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SetDesiredCapacityRequest withAutoScalingGroupName(String autoScalingGroupName)
          The name of the AutoScalingGroup.
 SetDesiredCapacityRequest withDesiredCapacity(Integer desiredCapacity)
          The new capacity setting for the AutoScalingGroup.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetDesiredCapacityRequest

public SetDesiredCapacityRequest()
Method Detail

getAutoScalingGroupName

public String getAutoScalingGroupName()
The name of the AutoScalingGroup.

Constraints:
Length: 1 - 100
Pattern: [ -??-??-?\r\n\t]*

Returns:
The name of the AutoScalingGroup.

setAutoScalingGroupName

public void setAutoScalingGroupName(String autoScalingGroupName)
The name of the AutoScalingGroup.

Constraints:
Length: 1 - 100
Pattern: [ -??-??-?\r\n\t]*

Parameters:
autoScalingGroupName - The name of the AutoScalingGroup.

withAutoScalingGroupName

public SetDesiredCapacityRequest withAutoScalingGroupName(String autoScalingGroupName)
The name of the AutoScalingGroup.

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

Constraints:
Length: 1 - 100
Pattern: [ -??-??-?\r\n\t]*

Parameters:
autoScalingGroupName - The name of the AutoScalingGroup.
Returns:
A reference to this updated object so that method calls can be chained together.

getDesiredCapacity

public Integer getDesiredCapacity()
The new capacity setting for the AutoScalingGroup.

Returns:
The new capacity setting for the AutoScalingGroup.

setDesiredCapacity

public void setDesiredCapacity(Integer desiredCapacity)
The new capacity setting for the AutoScalingGroup.

Parameters:
desiredCapacity - The new capacity setting for the AutoScalingGroup.

withDesiredCapacity

public SetDesiredCapacityRequest withDesiredCapacity(Integer desiredCapacity)
The new capacity setting for the AutoScalingGroup.

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

Parameters:
desiredCapacity - The new capacity setting for the AutoScalingGroup.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

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

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


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