@Generated(value="com.amazonaws:awsjavasdkcodegenerator") public class SimpleScalingPolicyConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
An automatic scaling configuration, which describes how the policy adds or removes instances, the cooldown period, and the number of EC2 instances that will be added each time the CloudWatch metric alarm condition is satisfied.
Constructor and Description 

SimpleScalingPolicyConfiguration() 
Modifier and Type  Method and Description 

SimpleScalingPolicyConfiguration 
clone() 
boolean 
equals(Object obj) 
String 
getAdjustmentType()
The way in which EC2 instances are added (if
ScalingAdjustment is a positive number) or terminated
(if ScalingAdjustment is a negative number) each time the scaling activity is triggered. 
Integer 
getCoolDown()
The amount of time, in seconds, after a scaling activity completes before any further triggerrelated scaling
activities can start.

Integer 
getScalingAdjustment()
The amount by which to scale in or scale out, based on the specified
AdjustmentType . 
int 
hashCode() 
void 
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . 
void 
setAdjustmentType(AdjustmentType adjustmentType)
The way in which EC2 instances are added (if
ScalingAdjustment is a positive number) or terminated
(if ScalingAdjustment is a negative number) each time the scaling activity is triggered. 
void 
setAdjustmentType(String adjustmentType)
The way in which EC2 instances are added (if
ScalingAdjustment is a positive number) or terminated
(if ScalingAdjustment is a negative number) each time the scaling activity is triggered. 
void 
setCoolDown(Integer coolDown)
The amount of time, in seconds, after a scaling activity completes before any further triggerrelated scaling
activities can start.

void 
setScalingAdjustment(Integer scalingAdjustment)
The amount by which to scale in or scale out, based on the specified
AdjustmentType . 
String 
toString()
Returns a string representation of this object; useful for testing and debugging.

SimpleScalingPolicyConfiguration 
withAdjustmentType(AdjustmentType adjustmentType)
The way in which EC2 instances are added (if
ScalingAdjustment is a positive number) or terminated
(if ScalingAdjustment is a negative number) each time the scaling activity is triggered. 
SimpleScalingPolicyConfiguration 
withAdjustmentType(String adjustmentType)
The way in which EC2 instances are added (if
ScalingAdjustment is a positive number) or terminated
(if ScalingAdjustment is a negative number) each time the scaling activity is triggered. 
SimpleScalingPolicyConfiguration 
withCoolDown(Integer coolDown)
The amount of time, in seconds, after a scaling activity completes before any further triggerrelated scaling
activities can start.

SimpleScalingPolicyConfiguration 
withScalingAdjustment(Integer scalingAdjustment)
The amount by which to scale in or scale out, based on the specified
AdjustmentType . 
public void setAdjustmentType(String adjustmentType)
The way in which EC2 instances are added (if ScalingAdjustment
is a positive number) or terminated
(if ScalingAdjustment
is a negative number) each time the scaling activity is triggered.
CHANGE_IN_CAPACITY
is the default. CHANGE_IN_CAPACITY
indicates that the EC2 instance
count increments or decrements by ScalingAdjustment
, which should be expressed as an integer.
PERCENT_CHANGE_IN_CAPACITY
indicates the instance count increments or decrements by the percentage
specified by ScalingAdjustment
, which should be expressed as a decimal. For example, 0.20 indicates
an increase in 20% increments of cluster capacity. EXACT_CAPACITY
indicates the scaling activity
results in an instance group with the number of EC2 instances specified by ScalingAdjustment
, which
should be expressed as a positive integer.
adjustmentType
 The way in which EC2 instances are added (if ScalingAdjustment
is a positive number) or
terminated (if ScalingAdjustment
is a negative number) each time the scaling activity is
triggered. CHANGE_IN_CAPACITY
is the default. CHANGE_IN_CAPACITY
indicates that
the EC2 instance count increments or decrements by ScalingAdjustment
, which should be
expressed as an integer. PERCENT_CHANGE_IN_CAPACITY
indicates the instance count increments
or decrements by the percentage specified by ScalingAdjustment
, which should be expressed as
a decimal. For example, 0.20 indicates an increase in 20% increments of cluster capacity.
EXACT_CAPACITY
indicates the scaling activity results in an instance group with the number of
EC2 instances specified by ScalingAdjustment
, which should be expressed as a positive
integer.AdjustmentType
public String getAdjustmentType()
The way in which EC2 instances are added (if ScalingAdjustment
is a positive number) or terminated
(if ScalingAdjustment
is a negative number) each time the scaling activity is triggered.
CHANGE_IN_CAPACITY
is the default. CHANGE_IN_CAPACITY
indicates that the EC2 instance
count increments or decrements by ScalingAdjustment
, which should be expressed as an integer.
PERCENT_CHANGE_IN_CAPACITY
indicates the instance count increments or decrements by the percentage
specified by ScalingAdjustment
, which should be expressed as a decimal. For example, 0.20 indicates
an increase in 20% increments of cluster capacity. EXACT_CAPACITY
indicates the scaling activity
results in an instance group with the number of EC2 instances specified by ScalingAdjustment
, which
should be expressed as a positive integer.
ScalingAdjustment
is a positive number) or
terminated (if ScalingAdjustment
is a negative number) each time the scaling activity is
triggered. CHANGE_IN_CAPACITY
is the default. CHANGE_IN_CAPACITY
indicates that
the EC2 instance count increments or decrements by ScalingAdjustment
, which should be
expressed as an integer. PERCENT_CHANGE_IN_CAPACITY
indicates the instance count increments
or decrements by the percentage specified by ScalingAdjustment
, which should be expressed as
a decimal. For example, 0.20 indicates an increase in 20% increments of cluster capacity.
EXACT_CAPACITY
indicates the scaling activity results in an instance group with the number
of EC2 instances specified by ScalingAdjustment
, which should be expressed as a positive
integer.AdjustmentType
public SimpleScalingPolicyConfiguration withAdjustmentType(String adjustmentType)
The way in which EC2 instances are added (if ScalingAdjustment
is a positive number) or terminated
(if ScalingAdjustment
is a negative number) each time the scaling activity is triggered.
CHANGE_IN_CAPACITY
is the default. CHANGE_IN_CAPACITY
indicates that the EC2 instance
count increments or decrements by ScalingAdjustment
, which should be expressed as an integer.
PERCENT_CHANGE_IN_CAPACITY
indicates the instance count increments or decrements by the percentage
specified by ScalingAdjustment
, which should be expressed as a decimal. For example, 0.20 indicates
an increase in 20% increments of cluster capacity. EXACT_CAPACITY
indicates the scaling activity
results in an instance group with the number of EC2 instances specified by ScalingAdjustment
, which
should be expressed as a positive integer.
adjustmentType
 The way in which EC2 instances are added (if ScalingAdjustment
is a positive number) or
terminated (if ScalingAdjustment
is a negative number) each time the scaling activity is
triggered. CHANGE_IN_CAPACITY
is the default. CHANGE_IN_CAPACITY
indicates that
the EC2 instance count increments or decrements by ScalingAdjustment
, which should be
expressed as an integer. PERCENT_CHANGE_IN_CAPACITY
indicates the instance count increments
or decrements by the percentage specified by ScalingAdjustment
, which should be expressed as
a decimal. For example, 0.20 indicates an increase in 20% increments of cluster capacity.
EXACT_CAPACITY
indicates the scaling activity results in an instance group with the number of
EC2 instances specified by ScalingAdjustment
, which should be expressed as a positive
integer.AdjustmentType
public void setAdjustmentType(AdjustmentType adjustmentType)
The way in which EC2 instances are added (if ScalingAdjustment
is a positive number) or terminated
(if ScalingAdjustment
is a negative number) each time the scaling activity is triggered.
CHANGE_IN_CAPACITY
is the default. CHANGE_IN_CAPACITY
indicates that the EC2 instance
count increments or decrements by ScalingAdjustment
, which should be expressed as an integer.
PERCENT_CHANGE_IN_CAPACITY
indicates the instance count increments or decrements by the percentage
specified by ScalingAdjustment
, which should be expressed as a decimal. For example, 0.20 indicates
an increase in 20% increments of cluster capacity. EXACT_CAPACITY
indicates the scaling activity
results in an instance group with the number of EC2 instances specified by ScalingAdjustment
, which
should be expressed as a positive integer.
adjustmentType
 The way in which EC2 instances are added (if ScalingAdjustment
is a positive number) or
terminated (if ScalingAdjustment
is a negative number) each time the scaling activity is
triggered. CHANGE_IN_CAPACITY
is the default. CHANGE_IN_CAPACITY
indicates that
the EC2 instance count increments or decrements by ScalingAdjustment
, which should be
expressed as an integer. PERCENT_CHANGE_IN_CAPACITY
indicates the instance count increments
or decrements by the percentage specified by ScalingAdjustment
, which should be expressed as
a decimal. For example, 0.20 indicates an increase in 20% increments of cluster capacity.
EXACT_CAPACITY
indicates the scaling activity results in an instance group with the number of
EC2 instances specified by ScalingAdjustment
, which should be expressed as a positive
integer.AdjustmentType
public SimpleScalingPolicyConfiguration withAdjustmentType(AdjustmentType adjustmentType)
The way in which EC2 instances are added (if ScalingAdjustment
is a positive number) or terminated
(if ScalingAdjustment
is a negative number) each time the scaling activity is triggered.
CHANGE_IN_CAPACITY
is the default. CHANGE_IN_CAPACITY
indicates that the EC2 instance
count increments or decrements by ScalingAdjustment
, which should be expressed as an integer.
PERCENT_CHANGE_IN_CAPACITY
indicates the instance count increments or decrements by the percentage
specified by ScalingAdjustment
, which should be expressed as a decimal. For example, 0.20 indicates
an increase in 20% increments of cluster capacity. EXACT_CAPACITY
indicates the scaling activity
results in an instance group with the number of EC2 instances specified by ScalingAdjustment
, which
should be expressed as a positive integer.
adjustmentType
 The way in which EC2 instances are added (if ScalingAdjustment
is a positive number) or
terminated (if ScalingAdjustment
is a negative number) each time the scaling activity is
triggered. CHANGE_IN_CAPACITY
is the default. CHANGE_IN_CAPACITY
indicates that
the EC2 instance count increments or decrements by ScalingAdjustment
, which should be
expressed as an integer. PERCENT_CHANGE_IN_CAPACITY
indicates the instance count increments
or decrements by the percentage specified by ScalingAdjustment
, which should be expressed as
a decimal. For example, 0.20 indicates an increase in 20% increments of cluster capacity.
EXACT_CAPACITY
indicates the scaling activity results in an instance group with the number of
EC2 instances specified by ScalingAdjustment
, which should be expressed as a positive
integer.AdjustmentType
public void setScalingAdjustment(Integer scalingAdjustment)
The amount by which to scale in or scale out, based on the specified AdjustmentType
. A positive
value adds to the instance group's EC2 instance count while a negative number removes instances. If
AdjustmentType
is set to EXACT_CAPACITY
, the number should only be a positive integer.
If AdjustmentType
is set to PERCENT_CHANGE_IN_CAPACITY
, the value should express the
percentage as a decimal. For example, 0.20 indicates a decrease in 20% increments of cluster capacity.
scalingAdjustment
 The amount by which to scale in or scale out, based on the specified AdjustmentType
. A
positive value adds to the instance group's EC2 instance count while a negative number removes instances.
If AdjustmentType
is set to EXACT_CAPACITY
, the number should only be a positive
integer. If AdjustmentType
is set to PERCENT_CHANGE_IN_CAPACITY
, the value
should express the percentage as a decimal. For example, 0.20 indicates a decrease in 20% increments of
cluster capacity.public Integer getScalingAdjustment()
The amount by which to scale in or scale out, based on the specified AdjustmentType
. A positive
value adds to the instance group's EC2 instance count while a negative number removes instances. If
AdjustmentType
is set to EXACT_CAPACITY
, the number should only be a positive integer.
If AdjustmentType
is set to PERCENT_CHANGE_IN_CAPACITY
, the value should express the
percentage as a decimal. For example, 0.20 indicates a decrease in 20% increments of cluster capacity.
AdjustmentType
. A
positive value adds to the instance group's EC2 instance count while a negative number removes instances.
If AdjustmentType
is set to EXACT_CAPACITY
, the number should only be a
positive integer. If AdjustmentType
is set to PERCENT_CHANGE_IN_CAPACITY
, the
value should express the percentage as a decimal. For example, 0.20 indicates a decrease in 20%
increments of cluster capacity.public SimpleScalingPolicyConfiguration withScalingAdjustment(Integer scalingAdjustment)
The amount by which to scale in or scale out, based on the specified AdjustmentType
. A positive
value adds to the instance group's EC2 instance count while a negative number removes instances. If
AdjustmentType
is set to EXACT_CAPACITY
, the number should only be a positive integer.
If AdjustmentType
is set to PERCENT_CHANGE_IN_CAPACITY
, the value should express the
percentage as a decimal. For example, 0.20 indicates a decrease in 20% increments of cluster capacity.
scalingAdjustment
 The amount by which to scale in or scale out, based on the specified AdjustmentType
. A
positive value adds to the instance group's EC2 instance count while a negative number removes instances.
If AdjustmentType
is set to EXACT_CAPACITY
, the number should only be a positive
integer. If AdjustmentType
is set to PERCENT_CHANGE_IN_CAPACITY
, the value
should express the percentage as a decimal. For example, 0.20 indicates a decrease in 20% increments of
cluster capacity.public void setCoolDown(Integer coolDown)
The amount of time, in seconds, after a scaling activity completes before any further triggerrelated scaling activities can start. The default value is 0.
coolDown
 The amount of time, in seconds, after a scaling activity completes before any further triggerrelated
scaling activities can start. The default value is 0.public Integer getCoolDown()
The amount of time, in seconds, after a scaling activity completes before any further triggerrelated scaling activities can start. The default value is 0.
public SimpleScalingPolicyConfiguration withCoolDown(Integer coolDown)
The amount of time, in seconds, after a scaling activity completes before any further triggerrelated scaling activities can start. The default value is 0.
coolDown
 The amount of time, in seconds, after a scaling activity completes before any further triggerrelated
scaling activities can start. The default value is 0.public String toString()
toString
in class Object
Object.toString()
public SimpleScalingPolicyConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
 Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.