@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricToRetain extends Object implements Serializable, Cloneable, StructuredPojo
The metric you want to retain. Dimensions are optional.
Constructor and Description |
---|
MetricToRetain() |
Modifier and Type | Method and Description |
---|---|
MetricToRetain |
clone() |
boolean |
equals(Object obj) |
String |
getMetric()
What is measured by the behavior.
|
MetricDimension |
getMetricDimension()
The dimension of a metric.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMetric(String metric)
What is measured by the behavior.
|
void |
setMetricDimension(MetricDimension metricDimension)
The dimension of a metric.
|
String |
toString()
Returns a string representation of this object.
|
MetricToRetain |
withMetric(String metric)
What is measured by the behavior.
|
MetricToRetain |
withMetricDimension(MetricDimension metricDimension)
The dimension of a metric.
|
public void setMetric(String metric)
What is measured by the behavior.
metric
- What is measured by the behavior.public String getMetric()
What is measured by the behavior.
public MetricToRetain withMetric(String metric)
What is measured by the behavior.
metric
- What is measured by the behavior.public void setMetricDimension(MetricDimension metricDimension)
The dimension of a metric. This can't be used with custom metrics.
metricDimension
- The dimension of a metric. This can't be used with custom metrics.public MetricDimension getMetricDimension()
The dimension of a metric. This can't be used with custom metrics.
public MetricToRetain withMetricDimension(MetricDimension metricDimension)
The dimension of a metric. This can't be used with custom metrics.
metricDimension
- The dimension of a metric. This can't be used with custom metrics.public String toString()
toString
in class Object
Object.toString()
public MetricToRetain clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.