@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.AggregationFunction
public String getAggregationFunction()
The function with which the metric is calculated.
AggregationFunction
public Metric withAggregationFunction(String aggregationFunction)
The function with which the metric is calculated.
aggregationFunction
- The function with which the metric is calculated.AggregationFunction
public Metric withAggregationFunction(AggregationFunction aggregationFunction)
The function with which the metric is calculated.
aggregationFunction
- The function with which the metric is calculated.AggregationFunction
public 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 Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.