@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ScalingConstraints extends Object implements Serializable, Cloneable, StructuredPojo
The upper and lower EC2 instance limits for an automatic scaling policy. Automatic scaling activities triggered by automatic scaling rules will not cause an instance group to grow above or below these limits.
Constructor and Description |
---|
ScalingConstraints() |
Modifier and Type | Method and Description |
---|---|
ScalingConstraints |
clone() |
boolean |
equals(Object obj) |
Integer |
getMaxCapacity()
The upper boundary of EC2 instances in an instance group beyond which scaling activities are not allowed to grow.
|
Integer |
getMinCapacity()
The lower boundary of EC2 instances in an instance group below which scaling activities are not allowed to
shrink.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMaxCapacity(Integer maxCapacity)
The upper boundary of EC2 instances in an instance group beyond which scaling activities are not allowed to grow.
|
void |
setMinCapacity(Integer minCapacity)
The lower boundary of EC2 instances in an instance group below which scaling activities are not allowed to
shrink.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ScalingConstraints |
withMaxCapacity(Integer maxCapacity)
The upper boundary of EC2 instances in an instance group beyond which scaling activities are not allowed to grow.
|
ScalingConstraints |
withMinCapacity(Integer minCapacity)
The lower boundary of EC2 instances in an instance group below which scaling activities are not allowed to
shrink.
|
public void setMinCapacity(Integer minCapacity)
The lower boundary of EC2 instances in an instance group below which scaling activities are not allowed to shrink. Scale-in activities will not terminate instances below this boundary.
minCapacity
- The lower boundary of EC2 instances in an instance group below which scaling activities are not allowed to
shrink. Scale-in activities will not terminate instances below this boundary.public Integer getMinCapacity()
The lower boundary of EC2 instances in an instance group below which scaling activities are not allowed to shrink. Scale-in activities will not terminate instances below this boundary.
public ScalingConstraints withMinCapacity(Integer minCapacity)
The lower boundary of EC2 instances in an instance group below which scaling activities are not allowed to shrink. Scale-in activities will not terminate instances below this boundary.
minCapacity
- The lower boundary of EC2 instances in an instance group below which scaling activities are not allowed to
shrink. Scale-in activities will not terminate instances below this boundary.public void setMaxCapacity(Integer maxCapacity)
The upper boundary of EC2 instances in an instance group beyond which scaling activities are not allowed to grow. Scale-out activities will not add instances beyond this boundary.
maxCapacity
- The upper boundary of EC2 instances in an instance group beyond which scaling activities are not allowed
to grow. Scale-out activities will not add instances beyond this boundary.public Integer getMaxCapacity()
The upper boundary of EC2 instances in an instance group beyond which scaling activities are not allowed to grow. Scale-out activities will not add instances beyond this boundary.
public ScalingConstraints withMaxCapacity(Integer maxCapacity)
The upper boundary of EC2 instances in an instance group beyond which scaling activities are not allowed to grow. Scale-out activities will not add instances beyond this boundary.
maxCapacity
- The upper boundary of EC2 instances in an instance group beyond which scaling activities are not allowed
to grow. Scale-out activities will not add instances beyond this boundary.public String toString()
toString
in class Object
Object.toString()
public ScalingConstraints 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.