@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) |
Boolean |
getExportMetric()
The value indicates exporting metrics related to the
MetricToRetain when it's true. |
String |
getMetric()
What is measured by the behavior.
|
MetricDimension |
getMetricDimension()
The dimension of a metric.
|
int |
hashCode() |
Boolean |
isExportMetric()
The value indicates exporting metrics related to the
MetricToRetain when it's true. |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setExportMetric(Boolean exportMetric)
The value indicates exporting metrics related to the
MetricToRetain when it's true. |
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 |
withExportMetric(Boolean exportMetric)
The value indicates exporting metrics related to the
MetricToRetain when it's true. |
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 void setExportMetric(Boolean exportMetric)
The value indicates exporting metrics related to the MetricToRetain
when it's true.
exportMetric
- The value indicates exporting metrics related to the MetricToRetain
when it's true.public Boolean getExportMetric()
The value indicates exporting metrics related to the MetricToRetain
when it's true.
MetricToRetain
when it's true.public MetricToRetain withExportMetric(Boolean exportMetric)
The value indicates exporting metrics related to the MetricToRetain
when it's true.
exportMetric
- The value indicates exporting metrics related to the MetricToRetain
when it's true.public Boolean isExportMetric()
The value indicates exporting metrics related to the MetricToRetain
when it's true.
MetricToRetain
when it's true.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.