public class ScalingPolicy
extends java.lang.Object
implements java.io.Serializable
The ScalingPolicy data type.
| コンストラクタと説明 |
|---|
ScalingPolicy() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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.Integer |
getMinAdjustmentStep()
Changes the
DesiredCapacity of the Auto Scaling group by
at least the specified number of instances. |
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 |
setMinAdjustmentStep(java.lang.Integer minAdjustmentStep)
Changes the
DesiredCapacity of the Auto Scaling group by
at least the specified number of instances. |
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 |
withMinAdjustmentStep(java.lang.Integer minAdjustmentStep)
Changes the
DesiredCapacity of the Auto Scaling group by
at least the specified number of instances. |
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.
|
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
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(java.lang.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(java.lang.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 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.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(java.lang.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(java.lang.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 java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object