@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ExportMetric extends Object implements Serializable, Cloneable, StructuredPojo
An object that contains a mapping between a Metric and MetricAggregation.
| Constructor and Description |
|---|
ExportMetric() |
| Modifier and Type | Method and Description |
|---|---|
ExportMetric |
clone() |
boolean |
equals(Object obj) |
String |
getAggregation() |
String |
getName() |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAggregation(String aggregation) |
void |
setName(String name) |
String |
toString()
Returns a string representation of this object.
|
ExportMetric |
withAggregation(MetricAggregation aggregation) |
ExportMetric |
withAggregation(String aggregation) |
ExportMetric |
withName(Metric name) |
ExportMetric |
withName(String name) |
public ExportMetric withName(String name)
name - Metricpublic ExportMetric withName(Metric name)
name - Metricpublic void setAggregation(String aggregation)
aggregation - MetricAggregationpublic String getAggregation()
MetricAggregationpublic ExportMetric withAggregation(String aggregation)
aggregation - MetricAggregationpublic ExportMetric withAggregation(MetricAggregation aggregation)
aggregation - MetricAggregationpublic String toString()
toString in class ObjectObject.toString()public ExportMetric clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.