public class ExecutePolicyRequest extends AmazonWebServiceRequest implements Serializable
ExecutePolicy operation
.
Runs the policy you create for your Auto Scaling group in PutScalingPolicy.
Constructor and Description |
---|
ExecutePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name or ARN of the Auto Scaling group.
|
Boolean |
getHonorCooldown()
Set to
True if you want Auto Scaling to reject this
request when the Auto Scaling group is in cooldown. |
String |
getPolicyName()
The name or PolicyARN of the policy you want to run.
|
int |
hashCode() |
Boolean |
isHonorCooldown()
Set to
True if you want Auto Scaling to reject this
request when the Auto Scaling group is in cooldown. |
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name or ARN of the Auto Scaling group.
|
void |
setHonorCooldown(Boolean honorCooldown)
Set to
True if you want Auto Scaling to reject this
request when the Auto Scaling group is in cooldown. |
void |
setPolicyName(String policyName)
The name or PolicyARN of the policy you want to run.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ExecutePolicyRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name or ARN of the Auto Scaling group.
|
ExecutePolicyRequest |
withHonorCooldown(Boolean honorCooldown)
Set to
True if you want Auto Scaling to reject this
request when the Auto Scaling group is in cooldown. |
ExecutePolicyRequest |
withPolicyName(String policyName)
The name or PolicyARN of the policy you want to run.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
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 ExecutePolicyRequest 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 - 1600
Pattern: [ --�𐀀-\r\n\t]*
public void setPolicyName(String policyName)
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
policyName
- The name or PolicyARN of the policy you want to run.public ExecutePolicyRequest withPolicyName(String policyName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
policyName
- The name or PolicyARN of the policy you want to run.public Boolean isHonorCooldown()
True
if you want Auto Scaling to reject this
request when the Auto Scaling group is in cooldown.True
if you want Auto Scaling to reject this
request when the Auto Scaling group is in cooldown.public void setHonorCooldown(Boolean honorCooldown)
True
if you want Auto Scaling to reject this
request when the Auto Scaling group is in cooldown.honorCooldown
- Set to True
if you want Auto Scaling to reject this
request when the Auto Scaling group is in cooldown.public ExecutePolicyRequest withHonorCooldown(Boolean honorCooldown)
True
if you want Auto Scaling to reject this
request when the Auto Scaling group is in cooldown.
Returns a reference to this object so that method calls can be chained together.
honorCooldown
- Set to True
if you want Auto Scaling to reject this
request when the Auto Scaling group is in cooldown.public Boolean getHonorCooldown()
True
if you want Auto Scaling to reject this
request when the Auto Scaling group is in cooldown.True
if you want Auto Scaling to reject this
request when the Auto Scaling group is in cooldown.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.