@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricDataResult extends Object implements Serializable, Cloneable, StructuredPojo
The result of a single metric data query.
Constructor and Description |
---|
MetricDataResult() |
Modifier and Type | Method and Description |
---|---|
MetricDataResult |
clone() |
boolean |
equals(Object obj) |
String |
getId()
The query identifier.
|
List<Date> |
getTimestamps()
A list of timestamps for the metric data results.
|
List<Long> |
getValues()
A list of values (cumulative / sum) for the metric data results.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setId(String id)
The query identifier.
|
void |
setTimestamps(Collection<Date> timestamps)
A list of timestamps for the metric data results.
|
void |
setValues(Collection<Long> values)
A list of values (cumulative / sum) for the metric data results.
|
String |
toString()
Returns a string representation of this object.
|
MetricDataResult |
withId(String id)
The query identifier.
|
MetricDataResult |
withTimestamps(Collection<Date> timestamps)
A list of timestamps for the metric data results.
|
MetricDataResult |
withTimestamps(Date... timestamps)
A list of timestamps for the metric data results.
|
MetricDataResult |
withValues(Collection<Long> values)
A list of values (cumulative / sum) for the metric data results.
|
MetricDataResult |
withValues(Long... values)
A list of values (cumulative / sum) for the metric data results.
|
public void setId(String id)
The query identifier.
id
- The query identifier.public String getId()
The query identifier.
public MetricDataResult withId(String id)
The query identifier.
id
- The query identifier.public List<Date> getTimestamps()
A list of timestamps for the metric data results.
public void setTimestamps(Collection<Date> timestamps)
A list of timestamps for the metric data results.
timestamps
- A list of timestamps for the metric data results.public MetricDataResult withTimestamps(Date... timestamps)
A list of timestamps for the metric data results.
NOTE: This method appends the values to the existing list (if any). Use
setTimestamps(java.util.Collection)
or withTimestamps(java.util.Collection)
if you want to
override the existing values.
timestamps
- A list of timestamps for the metric data results.public MetricDataResult withTimestamps(Collection<Date> timestamps)
A list of timestamps for the metric data results.
timestamps
- A list of timestamps for the metric data results.public List<Long> getValues()
A list of values (cumulative / sum) for the metric data results.
public void setValues(Collection<Long> values)
A list of values (cumulative / sum) for the metric data results.
values
- A list of values (cumulative / sum) for the metric data results.public MetricDataResult withValues(Long... values)
A list of values (cumulative / sum) for the metric data results.
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
or withValues(java.util.Collection)
if you want to override the
existing values.
values
- A list of values (cumulative / sum) for the metric data results.public MetricDataResult withValues(Collection<Long> values)
A list of values (cumulative / sum) for the metric data results.
values
- A list of values (cumulative / sum) for the metric data results.public String toString()
toString
in class Object
Object.toString()
public MetricDataResult clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.