@Generated(value="software.amazon.awssdk:codegen") public class TargetTrackingScalingPolicyConfiguration extends Object implements StructuredPojo, ToCopyableBuilder<TargetTrackingScalingPolicyConfiguration.Builder,TargetTrackingScalingPolicyConfiguration>
Represents a target tracking scaling policy configuration.
Modifier and Type | Class and Description |
---|---|
static interface |
TargetTrackingScalingPolicyConfiguration.Builder |
Modifier and Type | Method and Description |
---|---|
static TargetTrackingScalingPolicyConfiguration.Builder |
builder() |
CustomizedMetricSpecification |
customizedMetricSpecification()
Reserved for future use.
|
Boolean |
disableScaleIn()
Indicates whether scale in by the target tracking policy is disabled.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
PredefinedMetricSpecification |
predefinedMetricSpecification()
A predefined metric.
|
Integer |
scaleInCooldown()
The amount of time, in seconds, after a scale in activity completes before another scale in activity can start.
|
Integer |
scaleOutCooldown()
The amount of time, in seconds, after a scale out activity completes before another scale out activity can start.
|
static Class<? extends TargetTrackingScalingPolicyConfiguration.Builder> |
serializableBuilderClass() |
Double |
targetValue()
The target value for the metric.
|
TargetTrackingScalingPolicyConfiguration.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Double targetValue()
The target value for the metric. The range is 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2).
public PredefinedMetricSpecification predefinedMetricSpecification()
A predefined metric.
public CustomizedMetricSpecification customizedMetricSpecification()
Reserved for future use.
public Integer scaleOutCooldown()
The amount of time, in seconds, after a scale out activity completes before another scale out activity can start.
While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. The intention is to continuously (but not excessively) scale out.
While the cooldown period is in effect, the capacity that has been added by the previous scale out event that initiated the cooldown is calculated as part of the desired capacity for the next scale out. The intention is to continuously (but not excessively) scale out.
public Integer scaleInCooldown()
The amount of time, in seconds, after a scale in activity completes before another scale in activity can start.
The cooldown period is used to block subsequent scale in requests until it has expired. The intention is to scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, Application Auto Scaling scales out your scalable target immediately.
The cooldown period is used to block subsequent scale in requests until it has expired. The intention is to scale in conservatively to protect your application's availability. However, if another alarm triggers a scale out policy during the cooldown period after a scale-in, Application Auto Scaling scales out your scalable target immediately.
public Boolean disableScaleIn()
Indicates whether scale in by the target tracking policy is disabled. If the value is true
, scale in
is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in
is enabled and the target tracking policy can remove capacity from the scalable resource. The default value is
false
.
true
,
scale in is disabled and the target tracking policy won't remove capacity from the scalable resource.
Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable
resource. The default value is false
.public TargetTrackingScalingPolicyConfiguration.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<TargetTrackingScalingPolicyConfiguration.Builder,TargetTrackingScalingPolicyConfiguration>
public static TargetTrackingScalingPolicyConfiguration.Builder builder()
public static Class<? extends TargetTrackingScalingPolicyConfiguration.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.