@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Metric extends Object implements Serializable, Cloneable, StructuredPojo
A calculation made by contrasting a measure and a dimension from your source data.
| Constructor and Description | 
|---|
| Metric() | 
| Modifier and Type | Method and Description | 
|---|---|
| Metric | clone() | 
| boolean | equals(Object obj) | 
| String | getAggregationFunction()
 The function with which the metric is calculated. | 
| String | getMetricName()
 The name of the metric. | 
| String | getNamespace()
 The namespace for the metric. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setAggregationFunction(String aggregationFunction)
 The function with which the metric is calculated. | 
| void | setMetricName(String metricName)
 The name of the metric. | 
| void | setNamespace(String namespace)
 The namespace for the metric. | 
| String | toString()Returns a string representation of this object. | 
| Metric | withAggregationFunction(AggregationFunction aggregationFunction)
 The function with which the metric is calculated. | 
| Metric | withAggregationFunction(String aggregationFunction)
 The function with which the metric is calculated. | 
| Metric | withMetricName(String metricName)
 The name of the metric. | 
| Metric | withNamespace(String namespace)
 The namespace for the metric. | 
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 Metric withMetricName(String metricName)
The name of the metric.
metricName - The name of the metric.public void setAggregationFunction(String aggregationFunction)
The function with which the metric is calculated.
aggregationFunction - The function with which the metric is calculated.AggregationFunctionpublic String getAggregationFunction()
The function with which the metric is calculated.
AggregationFunctionpublic Metric withAggregationFunction(String aggregationFunction)
The function with which the metric is calculated.
aggregationFunction - The function with which the metric is calculated.AggregationFunctionpublic Metric withAggregationFunction(AggregationFunction aggregationFunction)
The function with which the metric is calculated.
aggregationFunction - The function with which the metric is calculated.AggregationFunctionpublic void setNamespace(String namespace)
The namespace for the metric.
namespace - The namespace for the metric.public String getNamespace()
The namespace for the metric.
public Metric withNamespace(String namespace)
The namespace for the metric.
namespace - The namespace for the metric.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.