com.amazonaws.services.autoscaling.model
Class SetDesiredCapacityRequest

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

public class SetDesiredCapacityRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the SetDesiredCapacity operation.

Sets the desired size of the specified AutoScalingGroup.

See Also:
AmazonAutoScaling.setDesiredCapacity(SetDesiredCapacityRequest), Serialized Form

Constructor Summary
SetDesiredCapacityRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAutoScalingGroupName()
          The name of the Auto Scaling group.
 java.lang.Integer getDesiredCapacity()
          The new capacity setting for the Auto Scaling group.
 java.lang.Boolean getHonorCooldown()
          By default, SetDesiredCapacity overrides any cooldown period associated with the Auto Scaling group.
 int hashCode()
           
 java.lang.Boolean isHonorCooldown()
          By default, SetDesiredCapacity overrides any cooldown period associated with the Auto Scaling group.
 void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
          The name of the Auto Scaling group.
 void setDesiredCapacity(java.lang.Integer desiredCapacity)
          The new capacity setting for the Auto Scaling group.
 void setHonorCooldown(java.lang.Boolean honorCooldown)
          By default, SetDesiredCapacity overrides any cooldown period associated with the Auto Scaling group.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SetDesiredCapacityRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
          The name of the Auto Scaling group.
 SetDesiredCapacityRequest withDesiredCapacity(java.lang.Integer desiredCapacity)
          The new capacity setting for the Auto Scaling group.
 SetDesiredCapacityRequest withHonorCooldown(java.lang.Boolean honorCooldown)
          By default, SetDesiredCapacity overrides any cooldown period associated with the 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

SetDesiredCapacityRequest

public SetDesiredCapacityRequest()
Method Detail

getAutoScalingGroupName

public java.lang.String getAutoScalingGroupName()
The name of the Auto Scaling group.

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

Returns:
The name of the Auto Scaling group.

setAutoScalingGroupName

public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group.

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.

withAutoScalingGroupName

public SetDesiredCapacityRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group.

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

getDesiredCapacity

public java.lang.Integer getDesiredCapacity()
The new capacity setting for the Auto Scaling group.

Returns:
The new capacity setting for the Auto Scaling group.

setDesiredCapacity

public void setDesiredCapacity(java.lang.Integer desiredCapacity)
The new capacity setting for the Auto Scaling group.

Parameters:
desiredCapacity - The new capacity setting for the Auto Scaling group.

withDesiredCapacity

public SetDesiredCapacityRequest withDesiredCapacity(java.lang.Integer desiredCapacity)
The new capacity setting for the Auto Scaling group.

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

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

isHonorCooldown

public java.lang.Boolean isHonorCooldown()
By default, SetDesiredCapacity overrides any cooldown period associated with the Auto Scaling group. Set to True if you want Auto Scaling to wait for the cooldown period associated with the Auto Scaling group to complete before initiating a scaling activity to set your Auto Scaling group to the new capacity setting.

Returns:
By default, SetDesiredCapacity overrides any cooldown period associated with the Auto Scaling group. Set to True if you want Auto Scaling to wait for the cooldown period associated with the Auto Scaling group to complete before initiating a scaling activity to set your Auto Scaling group to the new capacity setting.

setHonorCooldown

public void setHonorCooldown(java.lang.Boolean honorCooldown)
By default, SetDesiredCapacity overrides any cooldown period associated with the Auto Scaling group. Set to True if you want Auto Scaling to wait for the cooldown period associated with the Auto Scaling group to complete before initiating a scaling activity to set your Auto Scaling group to the new capacity setting.

Parameters:
honorCooldown - By default, SetDesiredCapacity overrides any cooldown period associated with the Auto Scaling group. Set to True if you want Auto Scaling to wait for the cooldown period associated with the Auto Scaling group to complete before initiating a scaling activity to set your Auto Scaling group to the new capacity setting.

withHonorCooldown

public SetDesiredCapacityRequest withHonorCooldown(java.lang.Boolean honorCooldown)
By default, SetDesiredCapacity overrides any cooldown period associated with the Auto Scaling group. Set to True if you want Auto Scaling to wait for the cooldown period associated with the Auto Scaling group to complete before initiating a scaling activity to set your Auto Scaling group to the new capacity setting.

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

Parameters:
honorCooldown - By default, SetDesiredCapacity overrides any cooldown period associated with the Auto Scaling group. Set to True if you want Auto Scaling to wait for the cooldown period associated with the Auto Scaling group to complete before initiating a scaling activity to set your Auto Scaling group to the new capacity setting.
Returns:
A reference to this updated object so that method calls can be chained together.

getHonorCooldown

public java.lang.Boolean getHonorCooldown()
By default, SetDesiredCapacity overrides any cooldown period associated with the Auto Scaling group. Set to True if you want Auto Scaling to wait for the cooldown period associated with the Auto Scaling group to complete before initiating a scaling activity to set your Auto Scaling group to the new capacity setting.

Returns:
By default, SetDesiredCapacity overrides any cooldown period associated with the Auto Scaling group. Set to True if you want Auto Scaling to wait for the cooldown period associated with the Auto Scaling group to complete before initiating a scaling activity to set your Auto Scaling group to the new capacity setting.

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.