|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.autoscaling.model.PutScalingPolicyRequest
public class PutScalingPolicyRequest
Container for the parameters to the PutScalingPolicy operation
.
Creates or updates a policy for an Auto Scaling group. To update an existing policy, use the existing policy name and set the parameter(s) you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.
AmazonAutoScaling.putScalingPolicy(PutScalingPolicyRequest)
Constructor Summary | |
---|---|
PutScalingPolicyRequest()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAdjustmentType()
Specifies whether the ScalingAdjustment is an absolute
number or a percentage of the current capacity. |
String |
getAutoScalingGroupName()
The name or ARN of the Auto Scaling group. |
Integer |
getCooldown()
The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. |
Integer |
getMinAdjustmentStep()
Used with AdjustmentType with the value
PercentChangeInCapacity , the scaling policy changes the
DesiredCapacity of the Auto Scaling group by at least the
number of instances specified in the value. |
String |
getPolicyName()
The name of the policy you want to create or update. |
Integer |
getScalingAdjustment()
The number of instances by which to scale. |
int |
hashCode()
|
void |
setAdjustmentType(String adjustmentType)
Specifies whether the ScalingAdjustment is an absolute
number or a percentage of the current capacity. |
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name or ARN of the Auto Scaling group. |
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)
Used with AdjustmentType with the value
PercentChangeInCapacity , the scaling policy changes the
DesiredCapacity of the Auto Scaling group by at least the
number of instances specified in the value. |
void |
setPolicyName(String policyName)
The name of the policy you want to create or update. |
void |
setScalingAdjustment(Integer scalingAdjustment)
The number of instances by which to scale. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
PutScalingPolicyRequest |
withAdjustmentType(String adjustmentType)
Specifies whether the ScalingAdjustment is an absolute
number or a percentage of the current capacity. |
PutScalingPolicyRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name or ARN of the Auto Scaling group. |
PutScalingPolicyRequest |
withCooldown(Integer cooldown)
The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start. |
PutScalingPolicyRequest |
withMinAdjustmentStep(Integer minAdjustmentStep)
Used with AdjustmentType with the value
PercentChangeInCapacity , the scaling policy changes the
DesiredCapacity of the Auto Scaling group by at least the
number of instances specified in the value. |
PutScalingPolicyRequest |
withPolicyName(String policyName)
The name of the policy you want to create or update. |
PutScalingPolicyRequest |
withScalingAdjustment(Integer scalingAdjustment)
The number of instances by which to scale. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PutScalingPolicyRequest()
Method Detail |
---|
public String getAutoScalingGroupName()
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
public void setAutoScalingGroupName(String autoScalingGroupName)
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name or ARN of the Auto Scaling group.public PutScalingPolicyRequest withAutoScalingGroupName(String autoScalingGroupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name or ARN of the Auto Scaling group.
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 policy you want to create or update.public PutScalingPolicyRequest 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 policy you want to create or update.
public Integer getScalingAdjustment()
AdjustmentType
determines the interpretation of this number (e.g., as an absolute
number or as a percentage of the existing Auto Scaling group size). A
positive increment adds to the current capacity and a negative value
removes from the current capacity.
AdjustmentType
determines the interpretation of this number (e.g., as an absolute
number or as a percentage of the existing Auto Scaling group size). A
positive increment adds to the current capacity and a negative value
removes from the current capacity.public void setScalingAdjustment(Integer scalingAdjustment)
AdjustmentType
determines the interpretation of this number (e.g., as an absolute
number or as a percentage of the existing Auto Scaling group size). A
positive increment adds to the current capacity and a negative value
removes from the current capacity.
scalingAdjustment
- The number of instances by which to scale. AdjustmentType
determines the interpretation of this number (e.g., as an absolute
number or as a percentage of the existing Auto Scaling group size). A
positive increment adds to the current capacity and a negative value
removes from the current capacity.public PutScalingPolicyRequest withScalingAdjustment(Integer scalingAdjustment)
AdjustmentType
determines the interpretation of this number (e.g., as an absolute
number or as a percentage of the existing Auto Scaling group size). A
positive increment adds to the current capacity and a negative value
removes from the current capacity.
Returns a reference to this object so that method calls can be chained together.
scalingAdjustment
- The number of instances by which to scale. AdjustmentType
determines the interpretation of this number (e.g., as an absolute
number or as a percentage of the existing Auto Scaling group size). A
positive increment 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 PutScalingPolicyRequest 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 PutScalingPolicyRequest 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 Integer getMinAdjustmentStep()
AdjustmentType
with the value
PercentChangeInCapacity
, the scaling policy changes the
DesiredCapacity
of the Auto Scaling group by at least the
number of instances specified in the value. You will get a
ValidationError
if you use MinAdjustmentStep
on a policy with an AdjustmentType
other than
PercentChangeInCapacity
.
AdjustmentType
with the value
PercentChangeInCapacity
, the scaling policy changes the
DesiredCapacity
of the Auto Scaling group by at least the
number of instances specified in the value. You will get a
ValidationError
if you use MinAdjustmentStep
on a policy with an AdjustmentType
other than
PercentChangeInCapacity
.
public void setMinAdjustmentStep(Integer minAdjustmentStep)
AdjustmentType
with the value
PercentChangeInCapacity
, the scaling policy changes the
DesiredCapacity
of the Auto Scaling group by at least the
number of instances specified in the value. You will get a
ValidationError
if you use MinAdjustmentStep
on a policy with an AdjustmentType
other than
PercentChangeInCapacity
.
minAdjustmentStep
- Used with AdjustmentType
with the value
PercentChangeInCapacity
, the scaling policy changes the
DesiredCapacity
of the Auto Scaling group by at least the
number of instances specified in the value. You will get a
ValidationError
if you use MinAdjustmentStep
on a policy with an AdjustmentType
other than
PercentChangeInCapacity
.
public PutScalingPolicyRequest withMinAdjustmentStep(Integer minAdjustmentStep)
AdjustmentType
with the value
PercentChangeInCapacity
, the scaling policy changes the
DesiredCapacity
of the Auto Scaling group by at least the
number of instances specified in the value. You will get a
ValidationError
if you use MinAdjustmentStep
on a policy with an AdjustmentType
other than
PercentChangeInCapacity
.
Returns a reference to this object so that method calls can be chained together.
minAdjustmentStep
- Used with AdjustmentType
with the value
PercentChangeInCapacity
, the scaling policy changes the
DesiredCapacity
of the Auto Scaling group by at least the
number of instances specified in the value. You will get a
ValidationError
if you use MinAdjustmentStep
on a policy with an AdjustmentType
other than
PercentChangeInCapacity
.
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 |