@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricKeyDataPoints extends Object implements Serializable, Cloneable, StructuredPojo
A time-ordered series of data points, corresponding to a dimension of a Performance Insights metric.
Constructor and Description |
---|
MetricKeyDataPoints() |
Modifier and Type | Method and Description |
---|---|
MetricKeyDataPoints |
clone() |
boolean |
equals(Object obj) |
List<DataPoint> |
getDataPoints()
An array of timestamp-value pairs, representing measurements over a period of time.
|
ResponseResourceMetricKey |
getKey()
The dimension(s) to which the data points apply.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDataPoints(Collection<DataPoint> dataPoints)
An array of timestamp-value pairs, representing measurements over a period of time.
|
void |
setKey(ResponseResourceMetricKey key)
The dimension(s) to which the data points apply.
|
String |
toString()
Returns a string representation of this object.
|
MetricKeyDataPoints |
withDataPoints(Collection<DataPoint> dataPoints)
An array of timestamp-value pairs, representing measurements over a period of time.
|
MetricKeyDataPoints |
withDataPoints(DataPoint... dataPoints)
An array of timestamp-value pairs, representing measurements over a period of time.
|
MetricKeyDataPoints |
withKey(ResponseResourceMetricKey key)
The dimension(s) to which the data points apply.
|
public void setKey(ResponseResourceMetricKey key)
The dimension(s) to which the data points apply.
key
- The dimension(s) to which the data points apply.public ResponseResourceMetricKey getKey()
The dimension(s) to which the data points apply.
public MetricKeyDataPoints withKey(ResponseResourceMetricKey key)
The dimension(s) to which the data points apply.
key
- The dimension(s) to which the data points apply.public List<DataPoint> getDataPoints()
An array of timestamp-value pairs, representing measurements over a period of time.
public void setDataPoints(Collection<DataPoint> dataPoints)
An array of timestamp-value pairs, representing measurements over a period of time.
dataPoints
- An array of timestamp-value pairs, representing measurements over a period of time.public MetricKeyDataPoints withDataPoints(DataPoint... dataPoints)
An array of timestamp-value pairs, representing measurements over a period of time.
NOTE: This method appends the values to the existing list (if any). Use
setDataPoints(java.util.Collection)
or withDataPoints(java.util.Collection)
if you want to
override the existing values.
dataPoints
- An array of timestamp-value pairs, representing measurements over a period of time.public MetricKeyDataPoints withDataPoints(Collection<DataPoint> dataPoints)
An array of timestamp-value pairs, representing measurements over a period of time.
dataPoints
- An array of timestamp-value pairs, representing measurements over a period of time.public String toString()
toString
in class Object
Object.toString()
public MetricKeyDataPoints clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.