@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TargetTrackingScalingPolicyConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
A target tracking scaling policy. Includes support for predefined or customized metrics.
When using the PutScalingPolicy
API, this parameter is required when you are creating a policy with the policy type
TargetTrackingScaling
.
Constructor and Description |
---|
TargetTrackingScalingPolicyConfiguration() |
Modifier and Type | Method and Description |
---|---|
TargetTrackingScalingPolicyConfiguration |
clone() |
boolean |
equals(Object obj) |
MetricSpecification |
getMetricSpecification()
An object containing information about a metric.
|
Double |
getTargetValue()
The recommended target value to specify for the metric when creating a scaling policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMetricSpecification(MetricSpecification metricSpecification)
An object containing information about a metric.
|
void |
setTargetValue(Double targetValue)
The recommended target value to specify for the metric when creating a scaling policy.
|
String |
toString()
Returns a string representation of this object.
|
TargetTrackingScalingPolicyConfiguration |
withMetricSpecification(MetricSpecification metricSpecification)
An object containing information about a metric.
|
TargetTrackingScalingPolicyConfiguration |
withTargetValue(Double targetValue)
The recommended target value to specify for the metric when creating a scaling policy.
|
public TargetTrackingScalingPolicyConfiguration()
public void setMetricSpecification(MetricSpecification metricSpecification)
An object containing information about a metric.
metricSpecification
- An object containing information about a metric.public MetricSpecification getMetricSpecification()
An object containing information about a metric.
public TargetTrackingScalingPolicyConfiguration withMetricSpecification(MetricSpecification metricSpecification)
An object containing information about a metric.
metricSpecification
- An object containing information about a metric.public void setTargetValue(Double targetValue)
The recommended target value to specify for the metric when creating a scaling policy.
targetValue
- The recommended target value to specify for the metric when creating a scaling policy.public Double getTargetValue()
The recommended target value to specify for the metric when creating a scaling policy.
public TargetTrackingScalingPolicyConfiguration withTargetValue(Double targetValue)
The recommended target value to specify for the metric when creating a scaling policy.
targetValue
- The recommended target value to specify for the metric when creating a scaling policy.public String toString()
toString
in class Object
Object.toString()
public TargetTrackingScalingPolicyConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.