|
|||||||
| 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(java.lang.Object obj)
|
java.lang.String |
getAdjustmentType()
Specifies whether the ScalingAdjustment is an absolute
number or a percentage of the current capacity. |
java.util.List<Alarm> |
getAlarms()
A list of CloudWatch Alarms related to the policy. |
java.lang.String |
getAutoScalingGroupName()
The name of the Auto Scaling group associated with this scaling policy. |
java.lang.Integer |
getCooldown()
The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. |
java.lang.String |
getPolicyARN()
The Amazon Resource Name (ARN) of the policy. |
java.lang.String |
getPolicyName()
The name of the scaling policy. |
java.lang.Integer |
getScalingAdjustment()
The number associated with the specified adjustment type. |
int |
hashCode()
|
void |
setAdjustmentType(java.lang.String adjustmentType)
Specifies whether the ScalingAdjustment is an absolute
number or a percentage of the current capacity. |
void |
setAlarms(java.util.Collection<Alarm> alarms)
A list of CloudWatch Alarms related to the policy. |
void |
setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group associated with this scaling policy. |
void |
setCooldown(java.lang.Integer cooldown)
The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. |
void |
setPolicyARN(java.lang.String policyARN)
The Amazon Resource Name (ARN) of the policy. |
void |
setPolicyName(java.lang.String policyName)
The name of the scaling policy. |
void |
setScalingAdjustment(java.lang.Integer scalingAdjustment)
The number associated with the specified adjustment type. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
ScalingPolicy |
withAdjustmentType(java.lang.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(java.util.Collection<Alarm> alarms)
A list of CloudWatch Alarms related to the policy. |
ScalingPolicy |
withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group associated with this scaling policy. |
ScalingPolicy |
withCooldown(java.lang.Integer cooldown)
The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. |
ScalingPolicy |
withPolicyARN(java.lang.String policyARN)
The Amazon Resource Name (ARN) of the policy. |
ScalingPolicy |
withPolicyName(java.lang.String policyName)
The name of the scaling policy. |
ScalingPolicy |
withScalingAdjustment(java.lang.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 java.lang.String getAutoScalingGroupName()
Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*
public void setAutoScalingGroupName(java.lang.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(java.lang.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 java.lang.String getPolicyName()
Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*
public void setPolicyName(java.lang.String policyName)
Constraints:
Length: 1 - 255
Pattern: [ -??-??-?\r\n\t]*
policyName - The name of the scaling policy.public ScalingPolicy withPolicyName(java.lang.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 java.lang.Integer getScalingAdjustment()
public void setScalingAdjustment(java.lang.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(java.lang.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 java.lang.String getAdjustmentType()
ScalingAdjustment is an absolute
number or a percentage of the current capacity. Valid values are
ChangeInCapacity, ExactCapacity, and
PercentOfCapacity.
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
PercentOfCapacity.public void setAdjustmentType(java.lang.String adjustmentType)
ScalingAdjustment is an absolute
number or a percentage of the current capacity. Valid values are
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(java.lang.String adjustmentType)
ScalingAdjustment is an absolute
number or a percentage of the current capacity. Valid values are
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 java.lang.Integer getCooldown()
public void setCooldown(java.lang.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(java.lang.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 java.lang.String getPolicyARN()
Constraints:
Length: 1 - 1600
Pattern: [ -??-??-?\r\n\t]*
public void setPolicyARN(java.lang.String policyARN)
Constraints:
Length: 1 - 1600
Pattern: [ -??-??-?\r\n\t]*
policyARN - The Amazon Resource Name (ARN) of the policy.public ScalingPolicy withPolicyARN(java.lang.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 java.util.List<Alarm> getAlarms()
public void setAlarms(java.util.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(java.util.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 java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||