@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricDatapoint extends Object implements Serializable, Cloneable, StructuredPojo
Describes the metric data point.
Constructor and Description |
---|
MetricDatapoint() |
Modifier and Type | Method and Description |
---|---|
MetricDatapoint |
clone() |
boolean |
equals(Object obj) |
Double |
getAverage()
The average.
|
Double |
getMaximum()
The maximum.
|
Double |
getMinimum()
The minimum.
|
Double |
getSampleCount()
The sample count.
|
Double |
getSum()
The sum.
|
Date |
getTimestamp()
The timestamp (e.g.,
1479816991.349 ). |
String |
getUnit()
The unit.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAverage(Double average)
The average.
|
void |
setMaximum(Double maximum)
The maximum.
|
void |
setMinimum(Double minimum)
The minimum.
|
void |
setSampleCount(Double sampleCount)
The sample count.
|
void |
setSum(Double sum)
The sum.
|
void |
setTimestamp(Date timestamp)
The timestamp (e.g.,
1479816991.349 ). |
void |
setUnit(MetricUnit unit)
The unit.
|
void |
setUnit(String unit)
The unit.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
MetricDatapoint |
withAverage(Double average)
The average.
|
MetricDatapoint |
withMaximum(Double maximum)
The maximum.
|
MetricDatapoint |
withMinimum(Double minimum)
The minimum.
|
MetricDatapoint |
withSampleCount(Double sampleCount)
The sample count.
|
MetricDatapoint |
withSum(Double sum)
The sum.
|
MetricDatapoint |
withTimestamp(Date timestamp)
The timestamp (e.g.,
1479816991.349 ). |
MetricDatapoint |
withUnit(MetricUnit unit)
The unit.
|
MetricDatapoint |
withUnit(String unit)
The unit.
|
public void setAverage(Double average)
The average.
average
- The average.public Double getAverage()
The average.
public MetricDatapoint withAverage(Double average)
The average.
average
- The average.public void setMaximum(Double maximum)
The maximum.
maximum
- The maximum.public Double getMaximum()
The maximum.
public MetricDatapoint withMaximum(Double maximum)
The maximum.
maximum
- The maximum.public void setMinimum(Double minimum)
The minimum.
minimum
- The minimum.public Double getMinimum()
The minimum.
public MetricDatapoint withMinimum(Double minimum)
The minimum.
minimum
- The minimum.public void setSampleCount(Double sampleCount)
The sample count.
sampleCount
- The sample count.public Double getSampleCount()
The sample count.
public MetricDatapoint withSampleCount(Double sampleCount)
The sample count.
sampleCount
- The sample count.public void setSum(Double sum)
The sum.
sum
- The sum.public Double getSum()
The sum.
public MetricDatapoint withSum(Double sum)
The sum.
sum
- The sum.public void setTimestamp(Date timestamp)
The timestamp (e.g., 1479816991.349
).
timestamp
- The timestamp (e.g., 1479816991.349
).public Date getTimestamp()
The timestamp (e.g., 1479816991.349
).
1479816991.349
).public MetricDatapoint withTimestamp(Date timestamp)
The timestamp (e.g., 1479816991.349
).
timestamp
- The timestamp (e.g., 1479816991.349
).public void setUnit(String unit)
The unit.
unit
- The unit.MetricUnit
public String getUnit()
The unit.
MetricUnit
public MetricDatapoint withUnit(String unit)
The unit.
unit
- The unit.MetricUnit
public void setUnit(MetricUnit unit)
The unit.
unit
- The unit.MetricUnit
public MetricDatapoint withUnit(MetricUnit unit)
The unit.
unit
- The unit.MetricUnit
public String toString()
toString
in class Object
Object.toString()
public MetricDatapoint clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.