@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TargetTrackingScalingConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Defines when a new instance is auto-scaled into the compute fleet.
| Constructor and Description |
|---|
TargetTrackingScalingConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
TargetTrackingScalingConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getMetricType()
The metric type to determine auto-scaling.
|
Double |
getTargetValue()
The value of
metricType when to start scaling. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setMetricType(String metricType)
The metric type to determine auto-scaling.
|
void |
setTargetValue(Double targetValue)
The value of
metricType when to start scaling. |
String |
toString()
Returns a string representation of this object.
|
TargetTrackingScalingConfiguration |
withMetricType(FleetScalingMetricType metricType)
The metric type to determine auto-scaling.
|
TargetTrackingScalingConfiguration |
withMetricType(String metricType)
The metric type to determine auto-scaling.
|
TargetTrackingScalingConfiguration |
withTargetValue(Double targetValue)
The value of
metricType when to start scaling. |
public void setMetricType(String metricType)
The metric type to determine auto-scaling.
metricType - The metric type to determine auto-scaling.FleetScalingMetricTypepublic String getMetricType()
The metric type to determine auto-scaling.
FleetScalingMetricTypepublic TargetTrackingScalingConfiguration withMetricType(String metricType)
The metric type to determine auto-scaling.
metricType - The metric type to determine auto-scaling.FleetScalingMetricTypepublic TargetTrackingScalingConfiguration withMetricType(FleetScalingMetricType metricType)
The metric type to determine auto-scaling.
metricType - The metric type to determine auto-scaling.FleetScalingMetricTypepublic void setTargetValue(Double targetValue)
The value of metricType when to start scaling.
targetValue - The value of metricType when to start scaling.public Double getTargetValue()
The value of metricType when to start scaling.
metricType when to start scaling.public TargetTrackingScalingConfiguration withTargetValue(Double targetValue)
The value of metricType when to start scaling.
targetValue - The value of metricType when to start scaling.public String toString()
toString in class ObjectObject.toString()public TargetTrackingScalingConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.