@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
- Metric
public ExportMetric withName(Metric name)
name
- Metric
public void setAggregation(String aggregation)
aggregation
- MetricAggregation
public String getAggregation()
MetricAggregation
public ExportMetric withAggregation(String aggregation)
aggregation
- MetricAggregation
public ExportMetric withAggregation(MetricAggregation aggregation)
aggregation
- MetricAggregation
public String toString()
toString
in class Object
Object.toString()
public ExportMetric clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.