@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutScalingPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutScalingPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
PutScalingPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAdjustmentType()
Specifies whether the
ScalingAdjustment parameter is an absolute number or a percentage of the
current capacity. |
String |
getAutoScalingGroupName()
The name of the Auto Scaling group.
|
Integer |
getCooldown()
The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling activities
can start.
|
Boolean |
getEnabled()
Indicates whether the scaling policy is enabled or disabled.
|
Integer |
getEstimatedInstanceWarmup()
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
|
String |
getMetricAggregationType()
The aggregation type for the CloudWatch metrics.
|
Integer |
getMinAdjustmentMagnitude()
The minimum number of instances to scale.
|
Integer |
getMinAdjustmentStep()
Available for backward compatibility.
|
String |
getPolicyName()
The name of the policy.
|
String |
getPolicyType()
The policy type.
|
Integer |
getScalingAdjustment()
The amount by which a simple scaling policy scales the Auto Scaling group in response to an alarm breach.
|
List<StepAdjustment> |
getStepAdjustments()
A set of adjustments that enable you to scale based on the size of the alarm breach.
|
TargetTrackingConfiguration |
getTargetTrackingConfiguration()
A target tracking scaling policy.
|
int |
hashCode() |
Boolean |
isEnabled()
Indicates whether the scaling policy is enabled or disabled.
|
void |
setAdjustmentType(String adjustmentType)
Specifies whether the
ScalingAdjustment parameter is an absolute number or a percentage of the
current capacity. |
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
void |
setCooldown(Integer cooldown)
The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling activities
can start.
|
void |
setEnabled(Boolean enabled)
Indicates whether the scaling policy is enabled or disabled.
|
void |
setEstimatedInstanceWarmup(Integer estimatedInstanceWarmup)
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
|
void |
setMetricAggregationType(String metricAggregationType)
The aggregation type for the CloudWatch metrics.
|
void |
setMinAdjustmentMagnitude(Integer minAdjustmentMagnitude)
The minimum number of instances to scale.
|
void |
setMinAdjustmentStep(Integer minAdjustmentStep)
Available for backward compatibility.
|
void |
setPolicyName(String policyName)
The name of the policy.
|
void |
setPolicyType(String policyType)
The policy type.
|
void |
setScalingAdjustment(Integer scalingAdjustment)
The amount by which a simple scaling policy scales the Auto Scaling group in response to an alarm breach.
|
void |
setStepAdjustments(Collection<StepAdjustment> stepAdjustments)
A set of adjustments that enable you to scale based on the size of the alarm breach.
|
void |
setTargetTrackingConfiguration(TargetTrackingConfiguration targetTrackingConfiguration)
A target tracking scaling policy.
|
String |
toString()
Returns a string representation of this object.
|
PutScalingPolicyRequest |
withAdjustmentType(String adjustmentType)
Specifies whether the
ScalingAdjustment parameter is an absolute number or a percentage of the
current capacity. |
PutScalingPolicyRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
PutScalingPolicyRequest |
withCooldown(Integer cooldown)
The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling activities
can start.
|
PutScalingPolicyRequest |
withEnabled(Boolean enabled)
Indicates whether the scaling policy is enabled or disabled.
|
PutScalingPolicyRequest |
withEstimatedInstanceWarmup(Integer estimatedInstanceWarmup)
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
|
PutScalingPolicyRequest |
withMetricAggregationType(String metricAggregationType)
The aggregation type for the CloudWatch metrics.
|
PutScalingPolicyRequest |
withMinAdjustmentMagnitude(Integer minAdjustmentMagnitude)
The minimum number of instances to scale.
|
PutScalingPolicyRequest |
withMinAdjustmentStep(Integer minAdjustmentStep)
Available for backward compatibility.
|
PutScalingPolicyRequest |
withPolicyName(String policyName)
The name of the policy.
|
PutScalingPolicyRequest |
withPolicyType(String policyType)
The policy type.
|
PutScalingPolicyRequest |
withScalingAdjustment(Integer scalingAdjustment)
The amount by which a simple scaling policy scales the Auto Scaling group in response to an alarm breach.
|
PutScalingPolicyRequest |
withStepAdjustments(Collection<StepAdjustment> stepAdjustments)
A set of adjustments that enable you to scale based on the size of the alarm breach.
|
PutScalingPolicyRequest |
withStepAdjustments(StepAdjustment... stepAdjustments)
A set of adjustments that enable you to scale based on the size of the alarm breach.
|
PutScalingPolicyRequest |
withTargetTrackingConfiguration(TargetTrackingConfiguration targetTrackingConfiguration)
A target tracking scaling policy.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.public String getAutoScalingGroupName()
The name of the Auto Scaling group.
public PutScalingPolicyRequest withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.public void setPolicyName(String policyName)
The name of the policy.
policyName
- The name of the policy.public String getPolicyName()
The name of the policy.
public PutScalingPolicyRequest withPolicyName(String policyName)
The name of the policy.
policyName
- The name of the policy.public void setPolicyType(String policyType)
The policy type. The valid values are SimpleScaling
, StepScaling
, and
TargetTrackingScaling
. If the policy type is null, the value is treated as
SimpleScaling
.
policyType
- The policy type. The valid values are SimpleScaling
, StepScaling
, and
TargetTrackingScaling
. If the policy type is null, the value is treated as
SimpleScaling
.public String getPolicyType()
The policy type. The valid values are SimpleScaling
, StepScaling
, and
TargetTrackingScaling
. If the policy type is null, the value is treated as
SimpleScaling
.
SimpleScaling
, StepScaling
, and
TargetTrackingScaling
. If the policy type is null, the value is treated as
SimpleScaling
.public PutScalingPolicyRequest withPolicyType(String policyType)
The policy type. The valid values are SimpleScaling
, StepScaling
, and
TargetTrackingScaling
. If the policy type is null, the value is treated as
SimpleScaling
.
policyType
- The policy type. The valid values are SimpleScaling
, StepScaling
, and
TargetTrackingScaling
. If the policy type is null, the value is treated as
SimpleScaling
.public void setAdjustmentType(String adjustmentType)
Specifies whether the ScalingAdjustment
parameter is an absolute number or a percentage of the
current capacity. The valid values are ChangeInCapacity
, ExactCapacity
, and
PercentChangeInCapacity
.
Valid only if the policy type is StepScaling
or SimpleScaling
. For more information,
see Scaling Adjustment Types in the Amazon EC2 Auto Scaling User Guide.
adjustmentType
- Specifies whether the ScalingAdjustment
parameter is an absolute number or a percentage of
the current capacity. The valid values are ChangeInCapacity
, ExactCapacity
, and
PercentChangeInCapacity
.
Valid only if the policy type is StepScaling
or SimpleScaling
. For more
information, see Scaling Adjustment Types in the Amazon EC2 Auto Scaling User Guide.
public String getAdjustmentType()
Specifies whether the ScalingAdjustment
parameter is an absolute number or a percentage of the
current capacity. The valid values are ChangeInCapacity
, ExactCapacity
, and
PercentChangeInCapacity
.
Valid only if the policy type is StepScaling
or SimpleScaling
. For more information,
see Scaling Adjustment Types in the Amazon EC2 Auto Scaling User Guide.
ScalingAdjustment
parameter is an absolute number or a percentage of
the current capacity. The valid values are ChangeInCapacity
, ExactCapacity
, and
PercentChangeInCapacity
.
Valid only if the policy type is StepScaling
or SimpleScaling
. For more
information, see Scaling Adjustment Types in the Amazon EC2 Auto Scaling User Guide.
public PutScalingPolicyRequest withAdjustmentType(String adjustmentType)
Specifies whether the ScalingAdjustment
parameter is an absolute number or a percentage of the
current capacity. The valid values are ChangeInCapacity
, ExactCapacity
, and
PercentChangeInCapacity
.
Valid only if the policy type is StepScaling
or SimpleScaling
. For more information,
see Scaling Adjustment Types in the Amazon EC2 Auto Scaling User Guide.
adjustmentType
- Specifies whether the ScalingAdjustment
parameter is an absolute number or a percentage of
the current capacity. The valid values are ChangeInCapacity
, ExactCapacity
, and
PercentChangeInCapacity
.
Valid only if the policy type is StepScaling
or SimpleScaling
. For more
information, see Scaling Adjustment Types in the Amazon EC2 Auto Scaling User Guide.
public void setMinAdjustmentStep(Integer minAdjustmentStep)
Available for backward compatibility. Use MinAdjustmentMagnitude
instead.
minAdjustmentStep
- Available for backward compatibility. Use MinAdjustmentMagnitude
instead.public Integer getMinAdjustmentStep()
Available for backward compatibility. Use MinAdjustmentMagnitude
instead.
MinAdjustmentMagnitude
instead.public PutScalingPolicyRequest withMinAdjustmentStep(Integer minAdjustmentStep)
Available for backward compatibility. Use MinAdjustmentMagnitude
instead.
minAdjustmentStep
- Available for backward compatibility. Use MinAdjustmentMagnitude
instead.public void setMinAdjustmentMagnitude(Integer minAdjustmentMagnitude)
The minimum number of instances to scale. If the value of AdjustmentType
is
PercentChangeInCapacity
, the scaling policy changes the DesiredCapacity
of the Auto
Scaling group by at least this many instances. Otherwise, the error is ValidationError
.
This property replaces the MinAdjustmentStep
property. For example, suppose that you create a step
scaling policy to scale out an Auto Scaling group by 25 percent and you specify a
MinAdjustmentMagnitude
of 2. If the group has 4 instances and the scaling policy is performed, 25
percent of 4 is 1. However, because you specified a MinAdjustmentMagnitude
of 2, Amazon EC2 Auto
Scaling scales out the group by 2 instances.
Valid only if the policy type is SimpleScaling
or StepScaling
.
minAdjustmentMagnitude
- The minimum number of instances to scale. If the value of AdjustmentType
is
PercentChangeInCapacity
, the scaling policy changes the DesiredCapacity
of the
Auto Scaling group by at least this many instances. Otherwise, the error is ValidationError
.
This property replaces the MinAdjustmentStep
property. For example, suppose that you create a
step scaling policy to scale out an Auto Scaling group by 25 percent and you specify a
MinAdjustmentMagnitude
of 2. If the group has 4 instances and the scaling policy is
performed, 25 percent of 4 is 1. However, because you specified a MinAdjustmentMagnitude
of
2, Amazon EC2 Auto Scaling scales out the group by 2 instances.
Valid only if the policy type is SimpleScaling
or StepScaling
.
public Integer getMinAdjustmentMagnitude()
The minimum number of instances to scale. If the value of AdjustmentType
is
PercentChangeInCapacity
, the scaling policy changes the DesiredCapacity
of the Auto
Scaling group by at least this many instances. Otherwise, the error is ValidationError
.
This property replaces the MinAdjustmentStep
property. For example, suppose that you create a step
scaling policy to scale out an Auto Scaling group by 25 percent and you specify a
MinAdjustmentMagnitude
of 2. If the group has 4 instances and the scaling policy is performed, 25
percent of 4 is 1. However, because you specified a MinAdjustmentMagnitude
of 2, Amazon EC2 Auto
Scaling scales out the group by 2 instances.
Valid only if the policy type is SimpleScaling
or StepScaling
.
AdjustmentType
is
PercentChangeInCapacity
, the scaling policy changes the DesiredCapacity
of the
Auto Scaling group by at least this many instances. Otherwise, the error is ValidationError
.
This property replaces the MinAdjustmentStep
property. For example, suppose that you create
a step scaling policy to scale out an Auto Scaling group by 25 percent and you specify a
MinAdjustmentMagnitude
of 2. If the group has 4 instances and the scaling policy is
performed, 25 percent of 4 is 1. However, because you specified a MinAdjustmentMagnitude
of
2, Amazon EC2 Auto Scaling scales out the group by 2 instances.
Valid only if the policy type is SimpleScaling
or StepScaling
.
public PutScalingPolicyRequest withMinAdjustmentMagnitude(Integer minAdjustmentMagnitude)
The minimum number of instances to scale. If the value of AdjustmentType
is
PercentChangeInCapacity
, the scaling policy changes the DesiredCapacity
of the Auto
Scaling group by at least this many instances. Otherwise, the error is ValidationError
.
This property replaces the MinAdjustmentStep
property. For example, suppose that you create a step
scaling policy to scale out an Auto Scaling group by 25 percent and you specify a
MinAdjustmentMagnitude
of 2. If the group has 4 instances and the scaling policy is performed, 25
percent of 4 is 1. However, because you specified a MinAdjustmentMagnitude
of 2, Amazon EC2 Auto
Scaling scales out the group by 2 instances.
Valid only if the policy type is SimpleScaling
or StepScaling
.
minAdjustmentMagnitude
- The minimum number of instances to scale. If the value of AdjustmentType
is
PercentChangeInCapacity
, the scaling policy changes the DesiredCapacity
of the
Auto Scaling group by at least this many instances. Otherwise, the error is ValidationError
.
This property replaces the MinAdjustmentStep
property. For example, suppose that you create a
step scaling policy to scale out an Auto Scaling group by 25 percent and you specify a
MinAdjustmentMagnitude
of 2. If the group has 4 instances and the scaling policy is
performed, 25 percent of 4 is 1. However, because you specified a MinAdjustmentMagnitude
of
2, Amazon EC2 Auto Scaling scales out the group by 2 instances.
Valid only if the policy type is SimpleScaling
or StepScaling
.
public void setScalingAdjustment(Integer scalingAdjustment)
The amount by which a simple scaling policy scales the Auto Scaling group in response to an alarm breach. The
adjustment is based on the value that you specified in the AdjustmentType
parameter (either an
absolute number or a percentage). A positive value adds to the current capacity and a negative value subtracts
from the current capacity. For exact capacity, you must specify a positive value.
Conditional: If you specify SimpleScaling
for the policy type, you must specify this parameter. (Not
used with any other policy type.)
scalingAdjustment
- The amount by which a simple scaling policy scales the Auto Scaling group in response to an alarm breach.
The adjustment is based on the value that you specified in the AdjustmentType
parameter
(either an absolute number or a percentage). A positive value adds to the current capacity and a negative
value subtracts from the current capacity. For exact capacity, you must specify a positive value.
Conditional: If you specify SimpleScaling
for the policy type, you must specify this
parameter. (Not used with any other policy type.)
public Integer getScalingAdjustment()
The amount by which a simple scaling policy scales the Auto Scaling group in response to an alarm breach. The
adjustment is based on the value that you specified in the AdjustmentType
parameter (either an
absolute number or a percentage). A positive value adds to the current capacity and a negative value subtracts
from the current capacity. For exact capacity, you must specify a positive value.
Conditional: If you specify SimpleScaling
for the policy type, you must specify this parameter. (Not
used with any other policy type.)
AdjustmentType
parameter
(either an absolute number or a percentage). A positive value adds to the current capacity and a negative
value subtracts from the current capacity. For exact capacity, you must specify a positive value.
Conditional: If you specify SimpleScaling
for the policy type, you must specify this
parameter. (Not used with any other policy type.)
public PutScalingPolicyRequest withScalingAdjustment(Integer scalingAdjustment)
The amount by which a simple scaling policy scales the Auto Scaling group in response to an alarm breach. The
adjustment is based on the value that you specified in the AdjustmentType
parameter (either an
absolute number or a percentage). A positive value adds to the current capacity and a negative value subtracts
from the current capacity. For exact capacity, you must specify a positive value.
Conditional: If you specify SimpleScaling
for the policy type, you must specify this parameter. (Not
used with any other policy type.)
scalingAdjustment
- The amount by which a simple scaling policy scales the Auto Scaling group in response to an alarm breach.
The adjustment is based on the value that you specified in the AdjustmentType
parameter
(either an absolute number or a percentage). A positive value adds to the current capacity and a negative
value subtracts from the current capacity. For exact capacity, you must specify a positive value.
Conditional: If you specify SimpleScaling
for the policy type, you must specify this
parameter. (Not used with any other policy type.)
public void setCooldown(Integer cooldown)
The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling activities can start. If this parameter is not specified, the default cooldown period for the group applies.
Valid only if the policy type is SimpleScaling
. For more information, see Scaling Cooldowns in the Amazon
EC2 Auto Scaling User Guide.
cooldown
- The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling
activities can start. If this parameter is not specified, the default cooldown period for the group
applies.
Valid only if the policy type is SimpleScaling
. For more information, see Scaling Cooldowns in the
Amazon EC2 Auto Scaling User Guide.
public Integer getCooldown()
The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling activities can start. If this parameter is not specified, the default cooldown period for the group applies.
Valid only if the policy type is SimpleScaling
. For more information, see Scaling Cooldowns in the Amazon
EC2 Auto Scaling User Guide.
Valid only if the policy type is SimpleScaling
. For more information, see Scaling Cooldowns in the
Amazon EC2 Auto Scaling User Guide.
public PutScalingPolicyRequest withCooldown(Integer cooldown)
The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling activities can start. If this parameter is not specified, the default cooldown period for the group applies.
Valid only if the policy type is SimpleScaling
. For more information, see Scaling Cooldowns in the Amazon
EC2 Auto Scaling User Guide.
cooldown
- The amount of time, in seconds, after a scaling activity completes before any further dynamic scaling
activities can start. If this parameter is not specified, the default cooldown period for the group
applies.
Valid only if the policy type is SimpleScaling
. For more information, see Scaling Cooldowns in the
Amazon EC2 Auto Scaling User Guide.
public void setMetricAggregationType(String metricAggregationType)
The aggregation type for the CloudWatch metrics. The valid values are Minimum
, Maximum
,
and Average
. If the aggregation type is null, the value is treated as Average
.
Valid only if the policy type is StepScaling
.
metricAggregationType
- The aggregation type for the CloudWatch metrics. The valid values are Minimum
,
Maximum
, and Average
. If the aggregation type is null, the value is treated as
Average
.
Valid only if the policy type is StepScaling
.
public String getMetricAggregationType()
The aggregation type for the CloudWatch metrics. The valid values are Minimum
, Maximum
,
and Average
. If the aggregation type is null, the value is treated as Average
.
Valid only if the policy type is StepScaling
.
Minimum
,
Maximum
, and Average
. If the aggregation type is null, the value is treated as
Average
.
Valid only if the policy type is StepScaling
.
public PutScalingPolicyRequest withMetricAggregationType(String metricAggregationType)
The aggregation type for the CloudWatch metrics. The valid values are Minimum
, Maximum
,
and Average
. If the aggregation type is null, the value is treated as Average
.
Valid only if the policy type is StepScaling
.
metricAggregationType
- The aggregation type for the CloudWatch metrics. The valid values are Minimum
,
Maximum
, and Average
. If the aggregation type is null, the value is treated as
Average
.
Valid only if the policy type is StepScaling
.
public List<StepAdjustment> getStepAdjustments()
A set of adjustments that enable you to scale based on the size of the alarm breach.
Conditional: If you specify StepScaling
for the policy type, you must specify this parameter. (Not
used with any other policy type.)
Conditional: If you specify StepScaling
for the policy type, you must specify this
parameter. (Not used with any other policy type.)
public void setStepAdjustments(Collection<StepAdjustment> stepAdjustments)
A set of adjustments that enable you to scale based on the size of the alarm breach.
Conditional: If you specify StepScaling
for the policy type, you must specify this parameter. (Not
used with any other policy type.)
stepAdjustments
- A set of adjustments that enable you to scale based on the size of the alarm breach.
Conditional: If you specify StepScaling
for the policy type, you must specify this parameter.
(Not used with any other policy type.)
public PutScalingPolicyRequest withStepAdjustments(StepAdjustment... stepAdjustments)
A set of adjustments that enable you to scale based on the size of the alarm breach.
Conditional: If you specify StepScaling
for the policy type, you must specify this parameter. (Not
used with any other policy type.)
NOTE: This method appends the values to the existing list (if any). Use
setStepAdjustments(java.util.Collection)
or withStepAdjustments(java.util.Collection)
if you
want to override the existing values.
stepAdjustments
- A set of adjustments that enable you to scale based on the size of the alarm breach.
Conditional: If you specify StepScaling
for the policy type, you must specify this parameter.
(Not used with any other policy type.)
public PutScalingPolicyRequest withStepAdjustments(Collection<StepAdjustment> stepAdjustments)
A set of adjustments that enable you to scale based on the size of the alarm breach.
Conditional: If you specify StepScaling
for the policy type, you must specify this parameter. (Not
used with any other policy type.)
stepAdjustments
- A set of adjustments that enable you to scale based on the size of the alarm breach.
Conditional: If you specify StepScaling
for the policy type, you must specify this parameter.
(Not used with any other policy type.)
public void setEstimatedInstanceWarmup(Integer estimatedInstanceWarmup)
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics. The default is to use the value specified for the default cooldown period for the group.
Valid only if the policy type is StepScaling
or TargetTrackingScaling
.
estimatedInstanceWarmup
- The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
The default is to use the value specified for the default cooldown period for the group.
Valid only if the policy type is StepScaling
or TargetTrackingScaling
.
public Integer getEstimatedInstanceWarmup()
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics. The default is to use the value specified for the default cooldown period for the group.
Valid only if the policy type is StepScaling
or TargetTrackingScaling
.
Valid only if the policy type is StepScaling
or TargetTrackingScaling
.
public PutScalingPolicyRequest withEstimatedInstanceWarmup(Integer estimatedInstanceWarmup)
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics. The default is to use the value specified for the default cooldown period for the group.
Valid only if the policy type is StepScaling
or TargetTrackingScaling
.
estimatedInstanceWarmup
- The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
The default is to use the value specified for the default cooldown period for the group.
Valid only if the policy type is StepScaling
or TargetTrackingScaling
.
public void setTargetTrackingConfiguration(TargetTrackingConfiguration targetTrackingConfiguration)
A target tracking scaling policy. Includes support for predefined or customized metrics.
For more information, see TargetTrackingConfiguration in the Amazon EC2 Auto Scaling API Reference.
Conditional: If you specify TargetTrackingScaling
for the policy type, you must specify this
parameter. (Not used with any other policy type.)
targetTrackingConfiguration
- A target tracking scaling policy. Includes support for predefined or customized metrics.
For more information, see TargetTrackingConfiguration in the Amazon EC2 Auto Scaling API Reference.
Conditional: If you specify TargetTrackingScaling
for the policy type, you must specify this
parameter. (Not used with any other policy type.)
public TargetTrackingConfiguration getTargetTrackingConfiguration()
A target tracking scaling policy. Includes support for predefined or customized metrics.
For more information, see TargetTrackingConfiguration in the Amazon EC2 Auto Scaling API Reference.
Conditional: If you specify TargetTrackingScaling
for the policy type, you must specify this
parameter. (Not used with any other policy type.)
For more information, see TargetTrackingConfiguration in the Amazon EC2 Auto Scaling API Reference.
Conditional: If you specify TargetTrackingScaling
for the policy type, you must specify this
parameter. (Not used with any other policy type.)
public PutScalingPolicyRequest withTargetTrackingConfiguration(TargetTrackingConfiguration targetTrackingConfiguration)
A target tracking scaling policy. Includes support for predefined or customized metrics.
For more information, see TargetTrackingConfiguration in the Amazon EC2 Auto Scaling API Reference.
Conditional: If you specify TargetTrackingScaling
for the policy type, you must specify this
parameter. (Not used with any other policy type.)
targetTrackingConfiguration
- A target tracking scaling policy. Includes support for predefined or customized metrics.
For more information, see TargetTrackingConfiguration in the Amazon EC2 Auto Scaling API Reference.
Conditional: If you specify TargetTrackingScaling
for the policy type, you must specify this
parameter. (Not used with any other policy type.)
public void setEnabled(Boolean enabled)
Indicates whether the scaling policy is enabled or disabled. The default is enabled. For more information, see Disabling a Scaling Policy for an Auto Scaling Group in the Amazon EC2 Auto Scaling User Guide.
enabled
- Indicates whether the scaling policy is enabled or disabled. The default is enabled. For more information,
see
Disabling a Scaling Policy for an Auto Scaling Group in the Amazon EC2 Auto Scaling User Guide.public Boolean getEnabled()
Indicates whether the scaling policy is enabled or disabled. The default is enabled. For more information, see Disabling a Scaling Policy for an Auto Scaling Group in the Amazon EC2 Auto Scaling User Guide.
public PutScalingPolicyRequest withEnabled(Boolean enabled)
Indicates whether the scaling policy is enabled or disabled. The default is enabled. For more information, see Disabling a Scaling Policy for an Auto Scaling Group in the Amazon EC2 Auto Scaling User Guide.
enabled
- Indicates whether the scaling policy is enabled or disabled. The default is enabled. For more information,
see
Disabling a Scaling Policy for an Auto Scaling Group in the Amazon EC2 Auto Scaling User Guide.public Boolean isEnabled()
Indicates whether the scaling policy is enabled or disabled. The default is enabled. For more information, see Disabling a Scaling Policy for an Auto Scaling Group in the Amazon EC2 Auto Scaling User Guide.
public String toString()
toString
in class Object
Object.toString()
public PutScalingPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.