|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.autoscaling.model.SetDesiredCapacityRequest
public class SetDesiredCapacityRequest
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.
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 |
---|
public SetDesiredCapacityRequest()
Method Detail |
---|
public String getAutoScalingGroupName()
Constraints:
Length: 1 - 100
Pattern: [ -??-??-?\r\n\t]*
public void setAutoScalingGroupName(String autoScalingGroupName)
Constraints:
Length: 1 - 100
Pattern: [ -??-??-?\r\n\t]*
autoScalingGroupName
- The name of the AutoScalingGroup.public SetDesiredCapacityRequest withAutoScalingGroupName(String autoScalingGroupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
Pattern: [ -??-??-?\r\n\t]*
autoScalingGroupName
- The name of the AutoScalingGroup.
public Integer getDesiredCapacity()
public void setDesiredCapacity(Integer desiredCapacity)
desiredCapacity
- The new capacity setting for the AutoScalingGroup.public SetDesiredCapacityRequest withDesiredCapacity(Integer desiredCapacity)
Returns a reference to this object so that method calls can be chained together.
desiredCapacity
- The new capacity setting for the AutoScalingGroup.
public String toString()
toString
in class Object
Object.toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |