@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TargetTrackingConfiguration extends Object implements Serializable, Cloneable
Represents a target tracking policy configuration.
Constructor and Description |
---|
TargetTrackingConfiguration() |
Modifier and Type | Method and Description |
---|---|
TargetTrackingConfiguration |
clone() |
boolean |
equals(Object obj) |
CustomizedMetricSpecification |
getCustomizedMetricSpecification()
A customized metric.
|
Boolean |
getDisableScaleIn()
Indicates whether scale in by the target tracking policy is disabled.
|
PredefinedMetricSpecification |
getPredefinedMetricSpecification()
A predefined metric.
|
Double |
getTargetValue()
The target value for the metric.
|
int |
hashCode() |
Boolean |
isDisableScaleIn()
Indicates whether scale in by the target tracking policy is disabled.
|
void |
setCustomizedMetricSpecification(CustomizedMetricSpecification customizedMetricSpecification)
A customized metric.
|
void |
setDisableScaleIn(Boolean disableScaleIn)
Indicates whether scale in by the target tracking policy is disabled.
|
void |
setPredefinedMetricSpecification(PredefinedMetricSpecification predefinedMetricSpecification)
A predefined metric.
|
void |
setTargetValue(Double targetValue)
The target value for the metric.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
TargetTrackingConfiguration |
withCustomizedMetricSpecification(CustomizedMetricSpecification customizedMetricSpecification)
A customized metric.
|
TargetTrackingConfiguration |
withDisableScaleIn(Boolean disableScaleIn)
Indicates whether scale in by the target tracking policy is disabled.
|
TargetTrackingConfiguration |
withPredefinedMetricSpecification(PredefinedMetricSpecification predefinedMetricSpecification)
A predefined metric.
|
TargetTrackingConfiguration |
withTargetValue(Double targetValue)
The target value for the metric.
|
public void setPredefinedMetricSpecification(PredefinedMetricSpecification predefinedMetricSpecification)
A predefined metric. You can specify either a predefined metric or a customized metric.
predefinedMetricSpecification
- A predefined metric. You can specify either a predefined metric or a customized metric.public PredefinedMetricSpecification getPredefinedMetricSpecification()
A predefined metric. You can specify either a predefined metric or a customized metric.
public TargetTrackingConfiguration withPredefinedMetricSpecification(PredefinedMetricSpecification predefinedMetricSpecification)
A predefined metric. You can specify either a predefined metric or a customized metric.
predefinedMetricSpecification
- A predefined metric. You can specify either a predefined metric or a customized metric.public void setCustomizedMetricSpecification(CustomizedMetricSpecification customizedMetricSpecification)
A customized metric.
customizedMetricSpecification
- A customized metric.public CustomizedMetricSpecification getCustomizedMetricSpecification()
A customized metric.
public TargetTrackingConfiguration withCustomizedMetricSpecification(CustomizedMetricSpecification customizedMetricSpecification)
A customized metric.
customizedMetricSpecification
- A customized metric.public void setTargetValue(Double targetValue)
The target value for the metric.
targetValue
- The target value for the metric.public Double getTargetValue()
The target value for the metric.
public TargetTrackingConfiguration withTargetValue(Double targetValue)
The target value for the metric.
targetValue
- The target value for the metric.public void setDisableScaleIn(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 instances from the Auto Scaling group. Otherwise, scale
in is enabled and the target tracking policy can remove instances from the Auto Scaling group. The default value
is false
.
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 instances from the Auto Scaling group.
Otherwise, scale in is enabled and the target tracking policy can remove instances from the Auto Scaling
group. The default value is false
.public Boolean getDisableScaleIn()
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 instances from the Auto Scaling group. Otherwise, scale
in is enabled and the target tracking policy can remove instances from the Auto Scaling group. The default value
is false
.
true
,
scale in is disabled and the target tracking policy won't remove instances from the Auto Scaling group.
Otherwise, scale in is enabled and the target tracking policy can remove instances from the Auto Scaling
group. The default value is false
.public TargetTrackingConfiguration withDisableScaleIn(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 instances from the Auto Scaling group. Otherwise, scale
in is enabled and the target tracking policy can remove instances from the Auto Scaling group. The default value
is false
.
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 instances from the Auto Scaling group.
Otherwise, scale in is enabled and the target tracking policy can remove instances from the Auto Scaling
group. The default value is false
.public Boolean isDisableScaleIn()
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 instances from the Auto Scaling group. Otherwise, scale
in is enabled and the target tracking policy can remove instances from the Auto Scaling group. The default value
is false
.
true
,
scale in is disabled and the target tracking policy won't remove instances from the Auto Scaling group.
Otherwise, scale in is enabled and the target tracking policy can remove instances from the Auto Scaling
group. The default value is false
.public String toString()
toString
in class Object
Object.toString()
public TargetTrackingConfiguration clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.