@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricResultV2 extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the metric results.
Constructor and Description |
---|
MetricResultV2() |
Modifier and Type | Method and Description |
---|---|
MetricResultV2 |
addDimensionsEntry(String key,
String value)
Add a single Dimensions entry
|
MetricResultV2 |
clearDimensionsEntries()
Removes all the entries added into Dimensions.
|
MetricResultV2 |
clone() |
boolean |
equals(Object obj) |
List<MetricDataV2> |
getCollections()
The set of metrics.
|
Map<String,String> |
getDimensions()
The dimension for the metrics.
|
MetricInterval |
getMetricInterval()
The interval period with the start and end time for the metrics.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCollections(Collection<MetricDataV2> collections)
The set of metrics.
|
void |
setDimensions(Map<String,String> dimensions)
The dimension for the metrics.
|
void |
setMetricInterval(MetricInterval metricInterval)
The interval period with the start and end time for the metrics.
|
String |
toString()
Returns a string representation of this object.
|
MetricResultV2 |
withCollections(Collection<MetricDataV2> collections)
The set of metrics.
|
MetricResultV2 |
withCollections(MetricDataV2... collections)
The set of metrics.
|
MetricResultV2 |
withDimensions(Map<String,String> dimensions)
The dimension for the metrics.
|
MetricResultV2 |
withMetricInterval(MetricInterval metricInterval)
The interval period with the start and end time for the metrics.
|
public Map<String,String> getDimensions()
The dimension for the metrics.
public void setDimensions(Map<String,String> dimensions)
The dimension for the metrics.
dimensions
- The dimension for the metrics.public MetricResultV2 withDimensions(Map<String,String> dimensions)
The dimension for the metrics.
dimensions
- The dimension for the metrics.public MetricResultV2 addDimensionsEntry(String key, String value)
public MetricResultV2 clearDimensionsEntries()
public void setMetricInterval(MetricInterval metricInterval)
The interval period with the start and end time for the metrics.
metricInterval
- The interval period with the start and end time for the metrics.public MetricInterval getMetricInterval()
The interval period with the start and end time for the metrics.
public MetricResultV2 withMetricInterval(MetricInterval metricInterval)
The interval period with the start and end time for the metrics.
metricInterval
- The interval period with the start and end time for the metrics.public List<MetricDataV2> getCollections()
The set of metrics.
public void setCollections(Collection<MetricDataV2> collections)
The set of metrics.
collections
- The set of metrics.public MetricResultV2 withCollections(MetricDataV2... collections)
The set of metrics.
NOTE: This method appends the values to the existing list (if any). Use
setCollections(java.util.Collection)
or withCollections(java.util.Collection)
if you want to
override the existing values.
collections
- The set of metrics.public MetricResultV2 withCollections(Collection<MetricDataV2> collections)
The set of metrics.
collections
- The set of metrics.public String toString()
toString
in class Object
Object.toString()
public MetricResultV2 clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.