@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EntityMetricData extends Object implements Serializable, Cloneable, StructuredPojo
A set of metrics that are associated with an entity, such as a specific service or resource. Contains the entity and the list of metric data associated with it.
| Constructor and Description |
|---|
EntityMetricData() |
| Modifier and Type | Method and Description |
|---|---|
EntityMetricData |
clone() |
boolean |
equals(Object obj) |
Entity |
getEntity()
The entity associated with the metrics.
|
List<MetricDatum> |
getMetricData()
The metric data.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setEntity(Entity entity)
The entity associated with the metrics.
|
void |
setMetricData(Collection<MetricDatum> metricData)
The metric data.
|
String |
toString()
Returns a string representation of this object.
|
EntityMetricData |
withEntity(Entity entity)
The entity associated with the metrics.
|
EntityMetricData |
withMetricData(Collection<MetricDatum> metricData)
The metric data.
|
EntityMetricData |
withMetricData(MetricDatum... metricData)
The metric data.
|
public void setEntity(Entity entity)
The entity associated with the metrics.
entity - The entity associated with the metrics.public Entity getEntity()
The entity associated with the metrics.
public EntityMetricData withEntity(Entity entity)
The entity associated with the metrics.
entity - The entity associated with the metrics.public List<MetricDatum> getMetricData()
The metric data.
public void setMetricData(Collection<MetricDatum> metricData)
The metric data.
metricData - The metric data.public EntityMetricData withMetricData(MetricDatum... metricData)
The metric data.
NOTE: This method appends the values to the existing list (if any). Use
setMetricData(java.util.Collection) or withMetricData(java.util.Collection) if you want to
override the existing values.
metricData - The metric data.public EntityMetricData withMetricData(Collection<MetricDatum> metricData)
The metric data.
metricData - The metric data.public String toString()
toString in class ObjectObject.toString()public EntityMetricData clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.