Class Datapoint
- java.lang.Object
-
- com.amazonaws.services.cloudwatch.model.Datapoint
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Datapoint extends Object implements Serializable, Cloneable
The
Datapointdata type encapsulates the statistical data that Amazon CloudWatch computes from metric data.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Datapoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Datapointclone()booleanequals(Object obj)DoublegetAverage()The average of metric values that correspond to the datapoint.DoublegetMaximum()The maximum of the metric value used for the datapoint.DoublegetMinimum()The minimum metric value used for the datapoint.DoublegetSampleCount()The number of metric values that contributed to the aggregate value of this datapoint.DoublegetSum()The sum of metric values used for the datapoint.DategetTimestamp()The time stamp used for the datapoint.StringgetUnit()The standard unit used for the datapoint.inthashCode()voidsetAverage(Double average)The average of metric values that correspond to the datapoint.voidsetMaximum(Double maximum)The maximum of the metric value used for the datapoint.voidsetMinimum(Double minimum)The minimum metric value used for the datapoint.voidsetSampleCount(Double sampleCount)The number of metric values that contributed to the aggregate value of this datapoint.voidsetSum(Double sum)The sum of metric values used for the datapoint.voidsetTimestamp(Date timestamp)The time stamp used for the datapoint.voidsetUnit(StandardUnit unit)The standard unit used for the datapoint.voidsetUnit(String unit)The standard unit used for the datapoint.StringtoString()Returns a string representation of this object; useful for testing and debugging.DatapointwithAverage(Double average)The average of metric values that correspond to the datapoint.DatapointwithMaximum(Double maximum)The maximum of the metric value used for the datapoint.DatapointwithMinimum(Double minimum)The minimum metric value used for the datapoint.DatapointwithSampleCount(Double sampleCount)The number of metric values that contributed to the aggregate value of this datapoint.DatapointwithSum(Double sum)The sum of metric values used for the datapoint.DatapointwithTimestamp(Date timestamp)The time stamp used for the datapoint.DatapointwithUnit(StandardUnit unit)The standard unit used for the datapoint.DatapointwithUnit(String unit)The standard unit used for the datapoint.
-
-
-
Method Detail
-
setTimestamp
public void setTimestamp(Date timestamp)
The time stamp used for the datapoint.
- Parameters:
timestamp- The time stamp used for the datapoint.
-
getTimestamp
public Date getTimestamp()
The time stamp used for the datapoint.
- Returns:
- The time stamp used for the datapoint.
-
withTimestamp
public Datapoint withTimestamp(Date timestamp)
The time stamp used for the datapoint.
- Parameters:
timestamp- The time stamp used for the datapoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSampleCount
public void setSampleCount(Double sampleCount)
The number of metric values that contributed to the aggregate value of this datapoint.
- Parameters:
sampleCount- The number of metric values that contributed to the aggregate value of this datapoint.
-
getSampleCount
public Double getSampleCount()
The number of metric values that contributed to the aggregate value of this datapoint.
- Returns:
- The number of metric values that contributed to the aggregate value of this datapoint.
-
withSampleCount
public Datapoint withSampleCount(Double sampleCount)
The number of metric values that contributed to the aggregate value of this datapoint.
- Parameters:
sampleCount- The number of metric values that contributed to the aggregate value of this datapoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAverage
public void setAverage(Double average)
The average of metric values that correspond to the datapoint.
- Parameters:
average- The average of metric values that correspond to the datapoint.
-
getAverage
public Double getAverage()
The average of metric values that correspond to the datapoint.
- Returns:
- The average of metric values that correspond to the datapoint.
-
withAverage
public Datapoint withAverage(Double average)
The average of metric values that correspond to the datapoint.
- Parameters:
average- The average of metric values that correspond to the datapoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSum
public void setSum(Double sum)
The sum of metric values used for the datapoint.
- Parameters:
sum- The sum of metric values used for the datapoint.
-
getSum
public Double getSum()
The sum of metric values used for the datapoint.
- Returns:
- The sum of metric values used for the datapoint.
-
withSum
public Datapoint withSum(Double sum)
The sum of metric values used for the datapoint.
- Parameters:
sum- The sum of metric values used for the datapoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMinimum
public void setMinimum(Double minimum)
The minimum metric value used for the datapoint.
- Parameters:
minimum- The minimum metric value used for the datapoint.
-
getMinimum
public Double getMinimum()
The minimum metric value used for the datapoint.
- Returns:
- The minimum metric value used for the datapoint.
-
withMinimum
public Datapoint withMinimum(Double minimum)
The minimum metric value used for the datapoint.
- Parameters:
minimum- The minimum metric value used for the datapoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMaximum
public void setMaximum(Double maximum)
The maximum of the metric value used for the datapoint.
- Parameters:
maximum- The maximum of the metric value used for the datapoint.
-
getMaximum
public Double getMaximum()
The maximum of the metric value used for the datapoint.
- Returns:
- The maximum of the metric value used for the datapoint.
-
withMaximum
public Datapoint withMaximum(Double maximum)
The maximum of the metric value used for the datapoint.
- Parameters:
maximum- The maximum of the metric value used for the datapoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUnit
public void setUnit(String unit)
The standard unit used for the datapoint.
- Parameters:
unit- The standard unit used for the datapoint.- See Also:
StandardUnit
-
getUnit
public String getUnit()
The standard unit used for the datapoint.
- Returns:
- The standard unit used for the datapoint.
- See Also:
StandardUnit
-
withUnit
public Datapoint withUnit(String unit)
The standard unit used for the datapoint.
- Parameters:
unit- The standard unit used for the datapoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StandardUnit
-
setUnit
public void setUnit(StandardUnit unit)
The standard unit used for the datapoint.
- Parameters:
unit- The standard unit used for the datapoint.- See Also:
StandardUnit
-
withUnit
public Datapoint withUnit(StandardUnit unit)
The standard unit used for the datapoint.
- Parameters:
unit- The standard unit used for the datapoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
StandardUnit
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-