|
|||||||
| 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 | |
|---|---|
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. |
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 AdjustmentType. |
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 |
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 AdjustmentType. |
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 |
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 AdjustmentType. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, 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 AdjustmentType. 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 AdjustmentType. A positive
value adds to the current capacity and a negative value removes from
the current capacity.
public String getAdjustmentType()
ChangeInCapacity, ExactCapacity, and
PercentOfCapacity.
Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*
ChangeInCapacity, ExactCapacity, and
PercentOfCapacity.public void setAdjustmentType(String adjustmentType)
ChangeInCapacity, ExactCapacity, and
PercentOfCapacity.
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
PercentOfCapacity.public ScalingPolicy withAdjustmentType(String adjustmentType)
ChangeInCapacity, ExactCapacity, and
PercentOfCapacity.
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
PercentOfCapacity.
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 String toString()
toString in class ObjectObject.toString()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||