@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()
If the parameter is true, then scale-in will be disabled for the target tracking policy, i.e.
|
PredefinedMetricSpecification |
getPredefinedMetricSpecification()
A predefined metric.
|
Double |
getTargetValue()
The target value for the metric.
|
int |
hashCode() |
Boolean |
isDisableScaleIn()
If the parameter is true, then scale-in will be disabled for the target tracking policy, i.e.
|
void |
setCustomizedMetricSpecification(CustomizedMetricSpecification customizedMetricSpecification)
A customized metric.
|
void |
setDisableScaleIn(Boolean disableScaleIn)
If the parameter is true, then scale-in will be disabled for the target tracking policy, i.e.
|
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)
If the parameter is true, then scale-in will be disabled for the target tracking policy, i.e.
|
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)
If the parameter is true, then scale-in will be disabled for the target tracking policy, i.e. the target tracking policy will not scale in the Auto Scaling group. The default value is false.
disableScaleIn
- If the parameter is true, then scale-in will be disabled for the target tracking policy, i.e. the target
tracking policy will not scale in the Auto Scaling group. The default value is false.public Boolean getDisableScaleIn()
If the parameter is true, then scale-in will be disabled for the target tracking policy, i.e. the target tracking policy will not scale in the Auto Scaling group. The default value is false.
public TargetTrackingConfiguration withDisableScaleIn(Boolean disableScaleIn)
If the parameter is true, then scale-in will be disabled for the target tracking policy, i.e. the target tracking policy will not scale in the Auto Scaling group. The default value is false.
disableScaleIn
- If the parameter is true, then scale-in will be disabled for the target tracking policy, i.e. the target
tracking policy will not scale in the Auto Scaling group. The default value is false.public Boolean isDisableScaleIn()
If the parameter is true, then scale-in will be disabled for the target tracking policy, i.e. the target tracking policy will not scale in 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.