7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/lightsail/model/MetricUnit.h>
47 inline void SetAverage(
double value) { m_averageHasBeenSet =
true; m_average = value; }
57 inline void SetMaximum(
double value) { m_maximumHasBeenSet =
true; m_maximum = value; }
67 inline void SetMinimum(
double value) { m_minimumHasBeenSet =
true; m_minimum = value; }
77 inline void SetSampleCount(
double value) { m_sampleCountHasBeenSet =
true; m_sampleCount = value; }
85 inline double GetSum()
const{
return m_sum; }
87 inline void SetSum(
double value) { m_sumHasBeenSet =
true; m_sum = value; }
117 bool m_averageHasBeenSet =
false;
120 bool m_maximumHasBeenSet =
false;
123 bool m_minimumHasBeenSet =
false;
125 double m_sampleCount;
126 bool m_sampleCountHasBeenSet =
false;
129 bool m_sumHasBeenSet =
false;
132 bool m_timestampHasBeenSet =
false;
135 bool m_unitHasBeenSet =
false;
void SetMinimum(double value)
MetricDatapoint & WithUnit(const MetricUnit &value)
bool TimestampHasBeenSet() const
bool UnitHasBeenSet() const
bool AverageHasBeenSet() const
bool MinimumHasBeenSet() const
bool SampleCountHasBeenSet() const
void SetSum(double value)
MetricDatapoint & WithMinimum(double value)
const Aws::Utils::DateTime & GetTimestamp() const
MetricDatapoint & WithTimestamp(Aws::Utils::DateTime &&value)
MetricDatapoint & WithSampleCount(double value)
void SetUnit(const MetricUnit &value)
MetricDatapoint & WithSum(double value)
MetricDatapoint & WithAverage(double value)
void SetMaximum(double value)
double GetSampleCount() const
void SetSampleCount(double value)
void SetUnit(MetricUnit &&value)
AWS_LIGHTSAIL_API MetricDatapoint(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimestamp(const Aws::Utils::DateTime &value)
bool MaximumHasBeenSet() const
double GetMaximum() const
AWS_LIGHTSAIL_API MetricDatapoint & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTimestamp(Aws::Utils::DateTime &&value)
bool SumHasBeenSet() const
MetricDatapoint & WithUnit(MetricUnit &&value)
double GetMinimum() const
const MetricUnit & GetUnit() const
MetricDatapoint & WithTimestamp(const Aws::Utils::DateTime &value)
void SetAverage(double value)
AWS_LIGHTSAIL_API MetricDatapoint()
MetricDatapoint & WithMaximum(double value)
double GetAverage() const
Aws::Utils::Json::JsonValue JsonValue