AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricDatapoint.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/lightsail/model/MetricUnit.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_LIGHTSAIL_API MetricDatapoint();
36 AWS_LIGHTSAIL_API MetricDatapoint(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline double GetAverage() const{ return m_average; }
46 inline bool AverageHasBeenSet() const { return m_averageHasBeenSet; }
47 inline void SetAverage(double value) { m_averageHasBeenSet = true; m_average = value; }
48 inline MetricDatapoint& WithAverage(double value) { SetAverage(value); return *this;}
50
52
55 inline double GetMaximum() const{ return m_maximum; }
56 inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; }
57 inline void SetMaximum(double value) { m_maximumHasBeenSet = true; m_maximum = value; }
58 inline MetricDatapoint& WithMaximum(double value) { SetMaximum(value); return *this;}
60
62
65 inline double GetMinimum() const{ return m_minimum; }
66 inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; }
67 inline void SetMinimum(double value) { m_minimumHasBeenSet = true; m_minimum = value; }
68 inline MetricDatapoint& WithMinimum(double value) { SetMinimum(value); return *this;}
70
72
75 inline double GetSampleCount() const{ return m_sampleCount; }
76 inline bool SampleCountHasBeenSet() const { return m_sampleCountHasBeenSet; }
77 inline void SetSampleCount(double value) { m_sampleCountHasBeenSet = true; m_sampleCount = value; }
78 inline MetricDatapoint& WithSampleCount(double value) { SetSampleCount(value); return *this;}
80
82
85 inline double GetSum() const{ return m_sum; }
86 inline bool SumHasBeenSet() const { return m_sumHasBeenSet; }
87 inline void SetSum(double value) { m_sumHasBeenSet = true; m_sum = value; }
88 inline MetricDatapoint& WithSum(double value) { SetSum(value); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
96 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
97 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
98 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
99 inline MetricDatapoint& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
100 inline MetricDatapoint& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
102
104
107 inline const MetricUnit& GetUnit() const{ return m_unit; }
108 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
109 inline void SetUnit(const MetricUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
110 inline void SetUnit(MetricUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
111 inline MetricDatapoint& WithUnit(const MetricUnit& value) { SetUnit(value); return *this;}
112 inline MetricDatapoint& WithUnit(MetricUnit&& value) { SetUnit(std::move(value)); return *this;}
114 private:
115
116 double m_average;
117 bool m_averageHasBeenSet = false;
118
119 double m_maximum;
120 bool m_maximumHasBeenSet = false;
121
122 double m_minimum;
123 bool m_minimumHasBeenSet = false;
124
125 double m_sampleCount;
126 bool m_sampleCountHasBeenSet = false;
127
128 double m_sum;
129 bool m_sumHasBeenSet = false;
130
131 Aws::Utils::DateTime m_timestamp;
132 bool m_timestampHasBeenSet = false;
133
134 MetricUnit m_unit;
135 bool m_unitHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace Lightsail
140} // namespace Aws
MetricDatapoint & WithUnit(const MetricUnit &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)
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)
AWS_LIGHTSAIL_API MetricDatapoint & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTimestamp(Aws::Utils::DateTime &&value)
MetricDatapoint & WithUnit(MetricUnit &&value)
MetricDatapoint & WithTimestamp(const Aws::Utils::DateTime &value)
MetricDatapoint & WithMaximum(double value)
Aws::Utils::Json::JsonValue JsonValue