@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ScalingRule extends Object implements Serializable, Cloneable, StructuredPojo
A scale-in or scale-out rule that defines scaling activity, including the CloudWatch metric alarm that triggers activity, how EC2 instances are added or removed, and the periodicity of adjustments. The automatic scaling policy for an instance group can comprise one or more automatic scaling rules.
Constructor and Description |
---|
ScalingRule() |
Modifier and Type | Method and Description |
---|---|
ScalingRule |
clone() |
boolean |
equals(Object obj) |
ScalingAction |
getAction()
The conditions that trigger an automatic scaling activity.
|
String |
getDescription()
A friendly, more verbose description of the automatic scaling rule.
|
String |
getName()
The name used to identify an automatic scaling rule.
|
ScalingTrigger |
getTrigger()
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(ScalingAction action)
The conditions that trigger an automatic scaling activity.
|
void |
setDescription(String description)
A friendly, more verbose description of the automatic scaling rule.
|
void |
setName(String name)
The name used to identify an automatic scaling rule.
|
void |
setTrigger(ScalingTrigger trigger)
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ScalingRule |
withAction(ScalingAction action)
The conditions that trigger an automatic scaling activity.
|
ScalingRule |
withDescription(String description)
A friendly, more verbose description of the automatic scaling rule.
|
ScalingRule |
withName(String name)
The name used to identify an automatic scaling rule.
|
ScalingRule |
withTrigger(ScalingTrigger trigger)
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
|
public void setName(String name)
The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.
name
- The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.public String getName()
The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.
public ScalingRule withName(String name)
The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.
name
- The name used to identify an automatic scaling rule. Rule names must be unique within a scaling policy.public void setDescription(String description)
A friendly, more verbose description of the automatic scaling rule.
description
- A friendly, more verbose description of the automatic scaling rule.public String getDescription()
A friendly, more verbose description of the automatic scaling rule.
public ScalingRule withDescription(String description)
A friendly, more verbose description of the automatic scaling rule.
description
- A friendly, more verbose description of the automatic scaling rule.public void setAction(ScalingAction action)
The conditions that trigger an automatic scaling activity.
action
- The conditions that trigger an automatic scaling activity.public ScalingAction getAction()
The conditions that trigger an automatic scaling activity.
public ScalingRule withAction(ScalingAction action)
The conditions that trigger an automatic scaling activity.
action
- The conditions that trigger an automatic scaling activity.public void setTrigger(ScalingTrigger trigger)
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
trigger
- The CloudWatch alarm definition that determines when automatic scaling activity is triggered.public ScalingTrigger getTrigger()
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
public ScalingRule withTrigger(ScalingTrigger trigger)
The CloudWatch alarm definition that determines when automatic scaling activity is triggered.
trigger
- The CloudWatch alarm definition that determines when automatic scaling activity is triggered.public String toString()
toString
in class Object
Object.toString()
public ScalingRule clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.