/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Encapsulates the statistical data that CloudWatch computes from metric
* data.See Also:
AWS
* API Reference
The time stamp used for the data point.
*/ inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; } inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; } inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); } inline Datapoint& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;} inline Datapoint& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;} ///@} ///@{ /** *The number of metric values that contributed to the aggregate value of this * data point.
*/ inline double GetSampleCount() const{ return m_sampleCount; } inline bool SampleCountHasBeenSet() const { return m_sampleCountHasBeenSet; } inline void SetSampleCount(double value) { m_sampleCountHasBeenSet = true; m_sampleCount = value; } inline Datapoint& WithSampleCount(double value) { SetSampleCount(value); return *this;} ///@} ///@{ /** *The average of the metric values that correspond to the data point.
*/ inline double GetAverage() const{ return m_average; } inline bool AverageHasBeenSet() const { return m_averageHasBeenSet; } inline void SetAverage(double value) { m_averageHasBeenSet = true; m_average = value; } inline Datapoint& WithAverage(double value) { SetAverage(value); return *this;} ///@} ///@{ /** *The sum of the metric values for the data point.
*/ inline double GetSum() const{ return m_sum; } inline bool SumHasBeenSet() const { return m_sumHasBeenSet; } inline void SetSum(double value) { m_sumHasBeenSet = true; m_sum = value; } inline Datapoint& WithSum(double value) { SetSum(value); return *this;} ///@} ///@{ /** *The minimum metric value for the data point.
*/ inline double GetMinimum() const{ return m_minimum; } inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; } inline void SetMinimum(double value) { m_minimumHasBeenSet = true; m_minimum = value; } inline Datapoint& WithMinimum(double value) { SetMinimum(value); return *this;} ///@} ///@{ /** *The maximum metric value for the data point.
*/ inline double GetMaximum() const{ return m_maximum; } inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; } inline void SetMaximum(double value) { m_maximumHasBeenSet = true; m_maximum = value; } inline Datapoint& WithMaximum(double value) { SetMaximum(value); return *this;} ///@} ///@{ /** *The standard unit for the data point.
*/ inline const StandardUnit& GetUnit() const{ return m_unit; } inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; } inline void SetUnit(const StandardUnit& value) { m_unitHasBeenSet = true; m_unit = value; } inline void SetUnit(StandardUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); } inline Datapoint& WithUnit(const StandardUnit& value) { SetUnit(value); return *this;} inline Datapoint& WithUnit(StandardUnit&& value) { SetUnit(std::move(value)); return *this;} ///@} ///@{ /** *The percentile statistic for the data point.
*/ inline const Aws::Map