|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.autoscaling.model.ScalingPolicy
public class ScalingPolicy
The ScalingPolicy
data type.
Constructor Summary | |
---|---|
ScalingPolicy()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAdjustmentType()
Specifies whether the ScalingAdjustment is an absolute
number or a percentage of the current capacity. |
List<Alarm> |
getAlarms()
A list of CloudWatch Alarms related to the policy. |
String |
getAutoScalingGroupName()
The name of the Auto Scaling group associated with this scaling policy. |
Integer |
getCooldown()
The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. |
Integer |
getMinAdjustmentStep()
Changes the DesiredCapacity of the Auto Scaling group by
at least the specified number of instances. |
String |
getPolicyARN()
The Amazon Resource Name (ARN) of the policy. |
String |
getPolicyName()
The name of the scaling policy. |
Integer |
getScalingAdjustment()
The number associated with the specified adjustment type. |
int |
hashCode()
|
void |
setAdjustmentType(String adjustmentType)
Specifies whether the ScalingAdjustment is an absolute
number or a percentage of the current capacity. |
void |
setAlarms(Collection<Alarm> alarms)
A list of CloudWatch Alarms related to the policy. |
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group associated with this scaling policy. |
void |
setCooldown(Integer cooldown)
The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. |
void |
setMinAdjustmentStep(Integer minAdjustmentStep)
Changes the DesiredCapacity of the Auto Scaling group by
at least the specified number of instances. |
void |
setPolicyARN(String policyARN)
The Amazon Resource Name (ARN) of the policy. |
void |
setPolicyName(String policyName)
The name of the scaling policy. |
void |
setScalingAdjustment(Integer scalingAdjustment)
The number associated with the specified adjustment type. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
ScalingPolicy |
withAdjustmentType(String adjustmentType)
Specifies whether the ScalingAdjustment is an absolute
number or a percentage of the current capacity. |
ScalingPolicy |
withAlarms(Alarm... alarms)
A list of CloudWatch Alarms related to the policy. |
ScalingPolicy |
withAlarms(Collection<Alarm> alarms)
A list of CloudWatch Alarms related to the policy. |
ScalingPolicy |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group associated with this scaling policy. |
ScalingPolicy |
withCooldown(Integer cooldown)
The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. |
ScalingPolicy |
withMinAdjustmentStep(Integer minAdjustmentStep)
Changes the DesiredCapacity of the Auto Scaling group by
at least the specified number of instances. |
ScalingPolicy |
withPolicyARN(String policyARN)
The Amazon Resource Name (ARN) of the policy. |
ScalingPolicy |
withPolicyName(String policyName)
The name of the scaling policy. |
ScalingPolicy |
withScalingAdjustment(Integer scalingAdjustment)
The number associated with the specified adjustment type. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ScalingPolicy()
Method Detail |
---|
public String getAutoScalingGroupName()
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
public void setAutoScalingGroupName(String autoScalingGroupName)
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the Auto Scaling group associated with this scaling
policy.public ScalingPolicy withAutoScalingGroupName(String autoScalingGroupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the Auto Scaling group associated with this scaling
policy.
public String getPolicyName()
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
public void setPolicyName(String policyName)
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
policyName
- The name of the scaling policy.public ScalingPolicy withPolicyName(String policyName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
policyName
- The name of the scaling policy.
public Integer getScalingAdjustment()
public void setScalingAdjustment(Integer scalingAdjustment)
scalingAdjustment
- The number associated with the specified adjustment type. A positive
value adds to the current capacity and a negative value removes from
the current capacity.public ScalingPolicy withScalingAdjustment(Integer scalingAdjustment)
Returns a reference to this object so that method calls can be chained together.
scalingAdjustment
- The number associated with the specified adjustment type. A positive
value adds to the current capacity and a negative value removes from
the current capacity.
public String getAdjustmentType()
ScalingAdjustment
is an absolute
number or a percentage of the current capacity. Valid values are
ChangeInCapacity
, ExactCapacity
, and
PercentChangeInCapacity
.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
ScalingAdjustment
is an absolute
number or a percentage of the current capacity. Valid values are
ChangeInCapacity
, ExactCapacity
, and
PercentChangeInCapacity
.public void setAdjustmentType(String adjustmentType)
ScalingAdjustment
is an absolute
number or a percentage of the current capacity. Valid values are
ChangeInCapacity
, ExactCapacity
, and
PercentChangeInCapacity
.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
adjustmentType
- Specifies whether the ScalingAdjustment
is an absolute
number or a percentage of the current capacity. Valid values are
ChangeInCapacity
, ExactCapacity
, and
PercentChangeInCapacity
.public ScalingPolicy withAdjustmentType(String adjustmentType)
ScalingAdjustment
is an absolute
number or a percentage of the current capacity. Valid values are
ChangeInCapacity
, ExactCapacity
, and
PercentChangeInCapacity
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
adjustmentType
- Specifies whether the ScalingAdjustment
is an absolute
number or a percentage of the current capacity. Valid values are
ChangeInCapacity
, ExactCapacity
, and
PercentChangeInCapacity
.
public Integer getCooldown()
public void setCooldown(Integer cooldown)
cooldown
- The amount of time, in seconds, after a scaling activity completes
before any further trigger-related scaling activities can start.public ScalingPolicy withCooldown(Integer cooldown)
Returns a reference to this object so that method calls can be chained together.
cooldown
- The amount of time, in seconds, after a scaling activity completes
before any further trigger-related scaling activities can start.
public String getPolicyARN()
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
public void setPolicyARN(String policyARN)
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
policyARN
- The Amazon Resource Name (ARN) of the policy.public ScalingPolicy withPolicyARN(String policyARN)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
policyARN
- The Amazon Resource Name (ARN) of the policy.
public List<Alarm> getAlarms()
public void setAlarms(Collection<Alarm> alarms)
alarms
- A list of CloudWatch Alarms related to the policy.public ScalingPolicy withAlarms(Alarm... alarms)
Returns a reference to this object so that method calls can be chained together.
alarms
- A list of CloudWatch Alarms related to the policy.
public ScalingPolicy withAlarms(Collection<Alarm> alarms)
Returns a reference to this object so that method calls can be chained together.
alarms
- A list of CloudWatch Alarms related to the policy.
public Integer getMinAdjustmentStep()
DesiredCapacity
of the Auto Scaling group by
at least the specified number of instances.
DesiredCapacity
of the Auto Scaling group by
at least the specified number of instances.public void setMinAdjustmentStep(Integer minAdjustmentStep)
DesiredCapacity
of the Auto Scaling group by
at least the specified number of instances.
minAdjustmentStep
- Changes the DesiredCapacity
of the Auto Scaling group by
at least the specified number of instances.public ScalingPolicy withMinAdjustmentStep(Integer minAdjustmentStep)
DesiredCapacity
of the Auto Scaling group by
at least the specified number of instances.
Returns a reference to this object so that method calls can be chained together.
minAdjustmentStep
- Changes the DesiredCapacity
of the Auto Scaling group by
at least the specified number of instances.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |