@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 scaling 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 scaling policy.
|
void |
setPolicyARN(String policyARN)
The Amazon Resource Name (ARN) of the policy.
|
String |
toString()
Returns a string representation of this object.
|
PutScalingPolicyResult |
withAlarms(Alarm... alarms)
The CloudWatch alarms created for the target tracking scaling policy.
|
PutScalingPolicyResult |
withAlarms(Collection<Alarm> alarms)
The CloudWatch alarms created for the target tracking scaling 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 scaling policy.
public void setAlarms(Collection<Alarm> alarms)
The CloudWatch alarms created for the target tracking scaling policy.
alarms
- The CloudWatch alarms created for the target tracking scaling policy.public PutScalingPolicyResult withAlarms(Alarm... alarms)
The CloudWatch alarms created for the target tracking scaling 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 scaling policy.public PutScalingPolicyResult withAlarms(Collection<Alarm> alarms)
The CloudWatch alarms created for the target tracking scaling policy.
alarms
- The CloudWatch alarms created for the target tracking scaling policy.public String toString()
toString
in class Object
Object.toString()
public PutScalingPolicyResult clone()