@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CustomizedScalingMetricSpecification extends Object implements Serializable, Cloneable, StructuredPojo
Represents a customized metric for a target tracking policy.
Constructor and Description |
---|
CustomizedScalingMetricSpecification() |
Modifier and Type | Method and Description |
---|---|
CustomizedScalingMetricSpecification |
clone() |
boolean |
equals(Object obj) |
List<MetricDimension> |
getDimensions()
The dimensions of the metric.
|
String |
getMetricName()
The name of the metric.
|
String |
getNamespace()
The namespace of the metric.
|
String |
getStatistic()
The statistic of the metric.
|
String |
getUnit()
The unit of the metric.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDimensions(Collection<MetricDimension> dimensions)
The dimensions of the metric.
|
void |
setMetricName(String metricName)
The name of the metric.
|
void |
setNamespace(String namespace)
The namespace of the metric.
|
void |
setStatistic(String statistic)
The statistic of the metric.
|
void |
setUnit(String unit)
The unit of the metric.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CustomizedScalingMetricSpecification |
withDimensions(Collection<MetricDimension> dimensions)
The dimensions of the metric.
|
CustomizedScalingMetricSpecification |
withDimensions(MetricDimension... dimensions)
The dimensions of the metric.
|
CustomizedScalingMetricSpecification |
withMetricName(String metricName)
The name of the metric.
|
CustomizedScalingMetricSpecification |
withNamespace(String namespace)
The namespace of the metric.
|
CustomizedScalingMetricSpecification |
withStatistic(MetricStatistic statistic)
The statistic of the metric.
|
CustomizedScalingMetricSpecification |
withStatistic(String statistic)
The statistic of the metric.
|
CustomizedScalingMetricSpecification |
withUnit(String unit)
The unit of the metric.
|
public CustomizedScalingMetricSpecification()
public void setMetricName(String metricName)
The name of the metric.
metricName
- The name of the metric.public String getMetricName()
The name of the metric.
public CustomizedScalingMetricSpecification withMetricName(String metricName)
The name of the metric.
metricName
- The name of the metric.public void setNamespace(String namespace)
The namespace of the metric.
namespace
- The namespace of the metric.public String getNamespace()
The namespace of the metric.
public CustomizedScalingMetricSpecification withNamespace(String namespace)
The namespace of the metric.
namespace
- The namespace of the metric.public List<MetricDimension> getDimensions()
The dimensions of the metric.
public void setDimensions(Collection<MetricDimension> dimensions)
The dimensions of the metric.
dimensions
- The dimensions of the metric.public CustomizedScalingMetricSpecification withDimensions(MetricDimension... dimensions)
The dimensions of the metric.
NOTE: This method appends the values to the existing list (if any). Use
setDimensions(java.util.Collection)
or withDimensions(java.util.Collection)
if you want to
override the existing values.
dimensions
- The dimensions of the metric.public CustomizedScalingMetricSpecification withDimensions(Collection<MetricDimension> dimensions)
The dimensions of the metric.
dimensions
- The dimensions of the metric.public void setStatistic(String statistic)
The statistic of the metric.
statistic
- The statistic of the metric.MetricStatistic
public String getStatistic()
The statistic of the metric.
MetricStatistic
public CustomizedScalingMetricSpecification withStatistic(String statistic)
The statistic of the metric.
statistic
- The statistic of the metric.MetricStatistic
public CustomizedScalingMetricSpecification withStatistic(MetricStatistic statistic)
The statistic of the metric.
statistic
- The statistic of the metric.MetricStatistic
public void setUnit(String unit)
The unit of the metric.
unit
- The unit of the metric.public String getUnit()
The unit of the metric.
public CustomizedScalingMetricSpecification withUnit(String unit)
The unit of the metric.
unit
- The unit of the metric.public String toString()
toString
in class Object
Object.toString()
public CustomizedScalingMetricSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.