@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DynamicScalingConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
An object with the recommended values for you to specify when creating an autoscaling policy.
Constructor and Description |
---|
DynamicScalingConfiguration() |
Modifier and Type | Method and Description |
---|---|
DynamicScalingConfiguration |
clone() |
boolean |
equals(Object obj) |
Integer |
getMaxCapacity()
The recommended maximum capacity to specify for your autoscaling policy.
|
Integer |
getMinCapacity()
The recommended minimum capacity to specify for your autoscaling policy.
|
Integer |
getScaleInCooldown()
The recommended scale in cooldown time for your autoscaling policy.
|
Integer |
getScaleOutCooldown()
The recommended scale out cooldown time for your autoscaling policy.
|
List<ScalingPolicy> |
getScalingPolicies()
An object of the scaling policies for each metric.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMaxCapacity(Integer maxCapacity)
The recommended maximum capacity to specify for your autoscaling policy.
|
void |
setMinCapacity(Integer minCapacity)
The recommended minimum capacity to specify for your autoscaling policy.
|
void |
setScaleInCooldown(Integer scaleInCooldown)
The recommended scale in cooldown time for your autoscaling policy.
|
void |
setScaleOutCooldown(Integer scaleOutCooldown)
The recommended scale out cooldown time for your autoscaling policy.
|
void |
setScalingPolicies(Collection<ScalingPolicy> scalingPolicies)
An object of the scaling policies for each metric.
|
String |
toString()
Returns a string representation of this object.
|
DynamicScalingConfiguration |
withMaxCapacity(Integer maxCapacity)
The recommended maximum capacity to specify for your autoscaling policy.
|
DynamicScalingConfiguration |
withMinCapacity(Integer minCapacity)
The recommended minimum capacity to specify for your autoscaling policy.
|
DynamicScalingConfiguration |
withScaleInCooldown(Integer scaleInCooldown)
The recommended scale in cooldown time for your autoscaling policy.
|
DynamicScalingConfiguration |
withScaleOutCooldown(Integer scaleOutCooldown)
The recommended scale out cooldown time for your autoscaling policy.
|
DynamicScalingConfiguration |
withScalingPolicies(Collection<ScalingPolicy> scalingPolicies)
An object of the scaling policies for each metric.
|
DynamicScalingConfiguration |
withScalingPolicies(ScalingPolicy... scalingPolicies)
An object of the scaling policies for each metric.
|
public void setMinCapacity(Integer minCapacity)
The recommended minimum capacity to specify for your autoscaling policy.
minCapacity
- The recommended minimum capacity to specify for your autoscaling policy.public Integer getMinCapacity()
The recommended minimum capacity to specify for your autoscaling policy.
public DynamicScalingConfiguration withMinCapacity(Integer minCapacity)
The recommended minimum capacity to specify for your autoscaling policy.
minCapacity
- The recommended minimum capacity to specify for your autoscaling policy.public void setMaxCapacity(Integer maxCapacity)
The recommended maximum capacity to specify for your autoscaling policy.
maxCapacity
- The recommended maximum capacity to specify for your autoscaling policy.public Integer getMaxCapacity()
The recommended maximum capacity to specify for your autoscaling policy.
public DynamicScalingConfiguration withMaxCapacity(Integer maxCapacity)
The recommended maximum capacity to specify for your autoscaling policy.
maxCapacity
- The recommended maximum capacity to specify for your autoscaling policy.public void setScaleInCooldown(Integer scaleInCooldown)
The recommended scale in cooldown time for your autoscaling policy.
scaleInCooldown
- The recommended scale in cooldown time for your autoscaling policy.public Integer getScaleInCooldown()
The recommended scale in cooldown time for your autoscaling policy.
public DynamicScalingConfiguration withScaleInCooldown(Integer scaleInCooldown)
The recommended scale in cooldown time for your autoscaling policy.
scaleInCooldown
- The recommended scale in cooldown time for your autoscaling policy.public void setScaleOutCooldown(Integer scaleOutCooldown)
The recommended scale out cooldown time for your autoscaling policy.
scaleOutCooldown
- The recommended scale out cooldown time for your autoscaling policy.public Integer getScaleOutCooldown()
The recommended scale out cooldown time for your autoscaling policy.
public DynamicScalingConfiguration withScaleOutCooldown(Integer scaleOutCooldown)
The recommended scale out cooldown time for your autoscaling policy.
scaleOutCooldown
- The recommended scale out cooldown time for your autoscaling policy.public List<ScalingPolicy> getScalingPolicies()
An object of the scaling policies for each metric.
public void setScalingPolicies(Collection<ScalingPolicy> scalingPolicies)
An object of the scaling policies for each metric.
scalingPolicies
- An object of the scaling policies for each metric.public DynamicScalingConfiguration withScalingPolicies(ScalingPolicy... scalingPolicies)
An object of the scaling policies for each metric.
NOTE: This method appends the values to the existing list (if any). Use
setScalingPolicies(java.util.Collection)
or withScalingPolicies(java.util.Collection)
if you
want to override the existing values.
scalingPolicies
- An object of the scaling policies for each metric.public DynamicScalingConfiguration withScalingPolicies(Collection<ScalingPolicy> scalingPolicies)
An object of the scaling policies for each metric.
scalingPolicies
- An object of the scaling policies for each metric.public String toString()
toString
in class Object
Object.toString()
public DynamicScalingConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.