@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutScalingPolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Contains the output of PutScalingPolicy.
Constructor and Description |
---|
PutScalingPolicyResult() |
Modifier and Type | Method and Description |
---|---|
PutScalingPolicyResult |
clone() |
boolean |
equals(Object obj) |
List<Alarm> |
getAlarms()
The CloudWatch alarms created for the target tracking policy.
|
String |
getPolicyARN()
The Amazon Resource Name (ARN) of the policy.
|
int |
hashCode() |
void |
setAlarms(Collection<Alarm> alarms)
The CloudWatch alarms created for the target tracking policy.
|
void |
setPolicyARN(String policyARN)
The Amazon Resource Name (ARN) of the policy.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
PutScalingPolicyResult |
withAlarms(Alarm... alarms)
The CloudWatch alarms created for the target tracking policy.
|
PutScalingPolicyResult |
withAlarms(Collection<Alarm> alarms)
The CloudWatch alarms created for the target tracking policy.
|
PutScalingPolicyResult |
withPolicyARN(String policyARN)
The Amazon Resource Name (ARN) of the policy.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPolicyARN(String policyARN)
The Amazon Resource Name (ARN) of the policy.
policyARN
- The Amazon Resource Name (ARN) of the policy.public String getPolicyARN()
The Amazon Resource Name (ARN) of the policy.
public PutScalingPolicyResult withPolicyARN(String policyARN)
The Amazon Resource Name (ARN) of the policy.
policyARN
- The Amazon Resource Name (ARN) of the policy.public List<Alarm> getAlarms()
The CloudWatch alarms created for the target tracking policy.
public void setAlarms(Collection<Alarm> alarms)
The CloudWatch alarms created for the target tracking policy.
alarms
- The CloudWatch alarms created for the target tracking policy.public PutScalingPolicyResult withAlarms(Alarm... alarms)
The CloudWatch alarms created for the target tracking policy.
NOTE: This method appends the values to the existing list (if any). Use
setAlarms(java.util.Collection)
or withAlarms(java.util.Collection)
if you want to override the
existing values.
alarms
- The CloudWatch alarms created for the target tracking policy.public PutScalingPolicyResult withAlarms(Collection<Alarm> alarms)
The CloudWatch alarms created for the target tracking policy.
alarms
- The CloudWatch alarms created for the target tracking policy.public String toString()
toString
in class Object
Object.toString()
public PutScalingPolicyResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.