com.amazonaws.services.autoscaling.model
Class ExecutePolicyRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.autoscaling.model.ExecutePolicyRequest

public class ExecutePolicyRequest
extends AmazonWebServiceRequest

Container for the parameters to the ExecutePolicy operation.

Runs the policy you create for your Auto Scaling group in PutScalingPolicy.

See Also:
AmazonAutoScaling.executePolicy(ExecutePolicyRequest)

Constructor Summary
ExecutePolicyRequest()
           
 
Method Summary
 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.
 
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

ExecutePolicyRequest

public ExecutePolicyRequest()
Method Detail

getAutoScalingGroupName

public String getAutoScalingGroupName()
The name or ARN of the Auto Scaling group.

Constraints:
Length: 1 - 1600
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The name or ARN of the Auto Scaling group.

setAutoScalingGroupName

public void setAutoScalingGroupName(String autoScalingGroupName)
The name or ARN of the Auto Scaling group.

Constraints:
Length: 1 - 1600
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
autoScalingGroupName - The name or ARN of the Auto Scaling group.

withAutoScalingGroupName

public ExecutePolicyRequest withAutoScalingGroupName(String autoScalingGroupName)
The name or ARN of the Auto Scaling group.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 1600
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
autoScalingGroupName - The name or ARN of the Auto Scaling group.
Returns:
A reference to this updated object so that method calls can be chained together.

getPolicyName

public String getPolicyName()
The name or PolicyARN of the policy you want to run.

Constraints:
Length: 1 - 1600
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Returns:
The name or PolicyARN of the policy you want to run.

setPolicyName

public void setPolicyName(String policyName)
The name or PolicyARN of the policy you want to run.

Constraints:
Length: 1 - 1600
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
policyName - The name or PolicyARN of the policy you want to run.

withPolicyName

public ExecutePolicyRequest withPolicyName(String policyName)
The name or PolicyARN of the policy you want to run.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 1600
Pattern: [ -퟿-�𐀀-􏿿\r\n\t]*

Parameters:
policyName - The name or PolicyARN of the policy you want to run.
Returns:
A reference to this updated object so that method calls can be chained together.

isHonorCooldown

public Boolean isHonorCooldown()
Set to True if you want Auto Scaling to reject this request when the Auto Scaling group is in cooldown.

Returns:
Set to True if you want Auto Scaling to reject this request when the Auto Scaling group is in cooldown.

setHonorCooldown

public void setHonorCooldown(Boolean honorCooldown)
Set to True if you want Auto Scaling to reject this request when the Auto Scaling group is in cooldown.

Parameters:
honorCooldown - Set to True if you want Auto Scaling to reject this request when the Auto Scaling group is in cooldown.

withHonorCooldown

public ExecutePolicyRequest withHonorCooldown(Boolean honorCooldown)
Set to 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.

Parameters:
honorCooldown - Set to True if you want Auto Scaling to reject this request when the Auto Scaling group is in cooldown.
Returns:
A reference to this updated object so that method calls can be chained together.

getHonorCooldown

public Boolean getHonorCooldown()
Set to True if you want Auto Scaling to reject this request when the Auto Scaling group is in cooldown.

Returns:
Set to True if you want Auto Scaling to reject this request when the Auto Scaling group is in cooldown.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.