@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ManagedScaling extends Object implements Serializable, Cloneable, StructuredPojo
The managed scaling settings for the Auto Scaling group capacity provider.
When managed scaling is enabled, Amazon ECS manages the scale-in and scale-out actions of the Auto Scaling group.
Amazon ECS manages a target tracking scaling policy using an Amazon ECS-managed CloudWatch metric with the specified
targetCapacity
value as the target value for the metric. For more information, see Using Managed Scaling in the Amazon Elastic Container Service Developer Guide.
If managed scaling is disabled, the user must manage the scaling of the Auto Scaling group.
Constructor and Description |
---|
ManagedScaling() |
Modifier and Type | Method and Description |
---|---|
ManagedScaling |
clone() |
boolean |
equals(Object obj) |
Integer |
getInstanceWarmupPeriod()
The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics
for Auto Scaling group.
|
Integer |
getMaximumScalingStepSize()
The maximum number of container instances that Amazon ECS will scale in or scale out at one time.
|
Integer |
getMinimumScalingStepSize()
The minimum number of container instances that Amazon ECS will scale in or scale out at one time.
|
String |
getStatus()
Whether or not to enable managed scaling for the capacity provider.
|
Integer |
getTargetCapacity()
The target capacity value for the capacity provider.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setInstanceWarmupPeriod(Integer instanceWarmupPeriod)
The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics
for Auto Scaling group.
|
void |
setMaximumScalingStepSize(Integer maximumScalingStepSize)
The maximum number of container instances that Amazon ECS will scale in or scale out at one time.
|
void |
setMinimumScalingStepSize(Integer minimumScalingStepSize)
The minimum number of container instances that Amazon ECS will scale in or scale out at one time.
|
void |
setStatus(String status)
Whether or not to enable managed scaling for the capacity provider.
|
void |
setTargetCapacity(Integer targetCapacity)
The target capacity value for the capacity provider.
|
String |
toString()
Returns a string representation of this object.
|
ManagedScaling |
withInstanceWarmupPeriod(Integer instanceWarmupPeriod)
The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics
for Auto Scaling group.
|
ManagedScaling |
withMaximumScalingStepSize(Integer maximumScalingStepSize)
The maximum number of container instances that Amazon ECS will scale in or scale out at one time.
|
ManagedScaling |
withMinimumScalingStepSize(Integer minimumScalingStepSize)
The minimum number of container instances that Amazon ECS will scale in or scale out at one time.
|
ManagedScaling |
withStatus(ManagedScalingStatus status)
Whether or not to enable managed scaling for the capacity provider.
|
ManagedScaling |
withStatus(String status)
Whether or not to enable managed scaling for the capacity provider.
|
ManagedScaling |
withTargetCapacity(Integer targetCapacity)
The target capacity value for the capacity provider.
|
public void setStatus(String status)
Whether or not to enable managed scaling for the capacity provider.
status
- Whether or not to enable managed scaling for the capacity provider.ManagedScalingStatus
public String getStatus()
Whether or not to enable managed scaling for the capacity provider.
ManagedScalingStatus
public ManagedScaling withStatus(String status)
Whether or not to enable managed scaling for the capacity provider.
status
- Whether or not to enable managed scaling for the capacity provider.ManagedScalingStatus
public ManagedScaling withStatus(ManagedScalingStatus status)
Whether or not to enable managed scaling for the capacity provider.
status
- Whether or not to enable managed scaling for the capacity provider.ManagedScalingStatus
public void setTargetCapacity(Integer targetCapacity)
The target capacity value for the capacity provider. The specified value must be greater than 0
and
less than or equal to 100
. A value of 100
will result in the Amazon EC2 instances in
your Auto Scaling group being completely utilized.
targetCapacity
- The target capacity value for the capacity provider. The specified value must be greater than
0
and less than or equal to 100
. A value of 100
will result in the
Amazon EC2 instances in your Auto Scaling group being completely utilized.public Integer getTargetCapacity()
The target capacity value for the capacity provider. The specified value must be greater than 0
and
less than or equal to 100
. A value of 100
will result in the Amazon EC2 instances in
your Auto Scaling group being completely utilized.
0
and less than or equal to 100
. A value of 100
will result in the
Amazon EC2 instances in your Auto Scaling group being completely utilized.public ManagedScaling withTargetCapacity(Integer targetCapacity)
The target capacity value for the capacity provider. The specified value must be greater than 0
and
less than or equal to 100
. A value of 100
will result in the Amazon EC2 instances in
your Auto Scaling group being completely utilized.
targetCapacity
- The target capacity value for the capacity provider. The specified value must be greater than
0
and less than or equal to 100
. A value of 100
will result in the
Amazon EC2 instances in your Auto Scaling group being completely utilized.public void setMinimumScalingStepSize(Integer minimumScalingStepSize)
The minimum number of container instances that Amazon ECS will scale in or scale out at one time. If this
parameter is omitted, the default value of 1
is used.
minimumScalingStepSize
- The minimum number of container instances that Amazon ECS will scale in or scale out at one time. If this
parameter is omitted, the default value of 1
is used.public Integer getMinimumScalingStepSize()
The minimum number of container instances that Amazon ECS will scale in or scale out at one time. If this
parameter is omitted, the default value of 1
is used.
1
is used.public ManagedScaling withMinimumScalingStepSize(Integer minimumScalingStepSize)
The minimum number of container instances that Amazon ECS will scale in or scale out at one time. If this
parameter is omitted, the default value of 1
is used.
minimumScalingStepSize
- The minimum number of container instances that Amazon ECS will scale in or scale out at one time. If this
parameter is omitted, the default value of 1
is used.public void setMaximumScalingStepSize(Integer maximumScalingStepSize)
The maximum number of container instances that Amazon ECS will scale in or scale out at one time. If this
parameter is omitted, the default value of 10000
is used.
maximumScalingStepSize
- The maximum number of container instances that Amazon ECS will scale in or scale out at one time. If this
parameter is omitted, the default value of 10000
is used.public Integer getMaximumScalingStepSize()
The maximum number of container instances that Amazon ECS will scale in or scale out at one time. If this
parameter is omitted, the default value of 10000
is used.
10000
is used.public ManagedScaling withMaximumScalingStepSize(Integer maximumScalingStepSize)
The maximum number of container instances that Amazon ECS will scale in or scale out at one time. If this
parameter is omitted, the default value of 10000
is used.
maximumScalingStepSize
- The maximum number of container instances that Amazon ECS will scale in or scale out at one time. If this
parameter is omitted, the default value of 10000
is used.public void setInstanceWarmupPeriod(Integer instanceWarmupPeriod)
The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics
for Auto Scaling group. If this parameter is omitted, the default value of 300
seconds is used.
instanceWarmupPeriod
- The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch
metrics for Auto Scaling group. If this parameter is omitted, the default value of 300
seconds is used.public Integer getInstanceWarmupPeriod()
The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics
for Auto Scaling group. If this parameter is omitted, the default value of 300
seconds is used.
300
seconds is used.public ManagedScaling withInstanceWarmupPeriod(Integer instanceWarmupPeriod)
The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch metrics
for Auto Scaling group. If this parameter is omitted, the default value of 300
seconds is used.
instanceWarmupPeriod
- The period of time, in seconds, after a newly launched Amazon EC2 instance can contribute to CloudWatch
metrics for Auto Scaling group. If this parameter is omitted, the default value of 300
seconds is used.public String toString()
toString
in class Object
Object.toString()
public ManagedScaling clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.