AWS SDK for C++  1.9.104
AWS SDK for C++
MetricDatapoint.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lightsail
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline double GetAverage() const{ return m_average; }
45 
49  inline bool AverageHasBeenSet() const { return m_averageHasBeenSet; }
50 
54  inline void SetAverage(double value) { m_averageHasBeenSet = true; m_average = value; }
55 
59  inline MetricDatapoint& WithAverage(double value) { SetAverage(value); return *this;}
60 
61 
65  inline double GetMaximum() const{ return m_maximum; }
66 
70  inline bool MaximumHasBeenSet() const { return m_maximumHasBeenSet; }
71 
75  inline void SetMaximum(double value) { m_maximumHasBeenSet = true; m_maximum = value; }
76 
80  inline MetricDatapoint& WithMaximum(double value) { SetMaximum(value); return *this;}
81 
82 
86  inline double GetMinimum() const{ return m_minimum; }
87 
91  inline bool MinimumHasBeenSet() const { return m_minimumHasBeenSet; }
92 
96  inline void SetMinimum(double value) { m_minimumHasBeenSet = true; m_minimum = value; }
97 
101  inline MetricDatapoint& WithMinimum(double value) { SetMinimum(value); return *this;}
102 
103 
107  inline double GetSampleCount() const{ return m_sampleCount; }
108 
112  inline bool SampleCountHasBeenSet() const { return m_sampleCountHasBeenSet; }
113 
117  inline void SetSampleCount(double value) { m_sampleCountHasBeenSet = true; m_sampleCount = value; }
118 
122  inline MetricDatapoint& WithSampleCount(double value) { SetSampleCount(value); return *this;}
123 
124 
128  inline double GetSum() const{ return m_sum; }
129 
133  inline bool SumHasBeenSet() const { return m_sumHasBeenSet; }
134 
138  inline void SetSum(double value) { m_sumHasBeenSet = true; m_sum = value; }
139 
143  inline MetricDatapoint& WithSum(double value) { SetSum(value); return *this;}
144 
145 
149  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
150 
154  inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
155 
159  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
160 
164  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
165 
169  inline MetricDatapoint& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
170 
174  inline MetricDatapoint& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
175 
176 
180  inline const MetricUnit& GetUnit() const{ return m_unit; }
181 
185  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
186 
190  inline void SetUnit(const MetricUnit& value) { m_unitHasBeenSet = true; m_unit = value; }
191 
195  inline void SetUnit(MetricUnit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
196 
200  inline MetricDatapoint& WithUnit(const MetricUnit& value) { SetUnit(value); return *this;}
201 
205  inline MetricDatapoint& WithUnit(MetricUnit&& value) { SetUnit(std::move(value)); return *this;}
206 
207  private:
208 
209  double m_average;
210  bool m_averageHasBeenSet;
211 
212  double m_maximum;
213  bool m_maximumHasBeenSet;
214 
215  double m_minimum;
216  bool m_minimumHasBeenSet;
217 
218  double m_sampleCount;
219  bool m_sampleCountHasBeenSet;
220 
221  double m_sum;
222  bool m_sumHasBeenSet;
223 
224  Aws::Utils::DateTime m_timestamp;
225  bool m_timestampHasBeenSet;
226 
227  MetricUnit m_unit;
228  bool m_unitHasBeenSet;
229  };
230 
231 } // namespace Model
232 } // namespace Lightsail
233 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::MetricDatapoint::WithUnit
MetricDatapoint & WithUnit(const MetricUnit &value)
Definition: MetricDatapoint.h:200
Aws::Lightsail::Model::MetricDatapoint::GetMinimum
double GetMinimum() const
Definition: MetricDatapoint.h:86
Aws::Lightsail::Model::MetricDatapoint::SetTimestamp
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition: MetricDatapoint.h:159
Aws::Lightsail::Model::MetricDatapoint::SetTimestamp
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition: MetricDatapoint.h:164
Aws::Lightsail::Model::MetricDatapoint::SetUnit
void SetUnit(const MetricUnit &value)
Definition: MetricDatapoint.h:190
Aws::Lightsail::Model::MetricDatapoint::WithSampleCount
MetricDatapoint & WithSampleCount(double value)
Definition: MetricDatapoint.h:122
Aws::Lightsail::Model::MetricDatapoint::WithMinimum
MetricDatapoint & WithMinimum(double value)
Definition: MetricDatapoint.h:101
Aws::Lightsail::Model::MetricDatapoint::SetMinimum
void SetMinimum(double value)
Definition: MetricDatapoint.h:96
Aws::Lightsail::Model::MetricDatapoint
Definition: MetricDatapoint.h:33
Aws::Lightsail::Model::MetricDatapoint::GetUnit
const MetricUnit & GetUnit() const
Definition: MetricDatapoint.h:180
DateTime.h
Aws::Lightsail::Model::MetricDatapoint::SetUnit
void SetUnit(MetricUnit &&value)
Definition: MetricDatapoint.h:195
Aws::Lightsail::Model::MetricDatapoint::GetSum
double GetSum() const
Definition: MetricDatapoint.h:128
Aws::Lightsail::Model::MetricDatapoint::SampleCountHasBeenSet
bool SampleCountHasBeenSet() const
Definition: MetricDatapoint.h:112
Aws::Lightsail::Model::MetricDatapoint::WithAverage
MetricDatapoint & WithAverage(double value)
Definition: MetricDatapoint.h:59
Aws::Lightsail::Model::MetricDatapoint::SetSampleCount
void SetSampleCount(double value)
Definition: MetricDatapoint.h:117
Aws::Lightsail::Model::MetricDatapoint::TimestampHasBeenSet
bool TimestampHasBeenSet() const
Definition: MetricDatapoint.h:154
Aws::Lightsail::Model::MetricDatapoint::WithTimestamp
MetricDatapoint & WithTimestamp(const Aws::Utils::DateTime &value)
Definition: MetricDatapoint.h:169
MetricUnit.h
Aws::Lightsail::Model::MetricDatapoint::SetMaximum
void SetMaximum(double value)
Definition: MetricDatapoint.h:75
Aws::Lightsail::Model::MetricDatapoint::WithSum
MetricDatapoint & WithSum(double value)
Definition: MetricDatapoint.h:143
Aws::Lightsail::Model::MetricDatapoint::SetSum
void SetSum(double value)
Definition: MetricDatapoint.h:138
Aws::Lightsail::Model::MetricDatapoint::GetMaximum
double GetMaximum() const
Definition: MetricDatapoint.h:65
Aws::Lightsail::Model::MetricDatapoint::MetricDatapoint
MetricDatapoint()
Aws::Lightsail::Model::MetricUnit
MetricUnit
Definition: MetricUnit.h:17
Aws::Lightsail::Model::MetricDatapoint::MinimumHasBeenSet
bool MinimumHasBeenSet() const
Definition: MetricDatapoint.h:91
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Lightsail::Model::MetricDatapoint::GetAverage
double GetAverage() const
Definition: MetricDatapoint.h:44
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Lightsail::Model::MetricDatapoint::SumHasBeenSet
bool SumHasBeenSet() const
Definition: MetricDatapoint.h:133
Aws::Lightsail::Model::MetricDatapoint::GetTimestamp
const Aws::Utils::DateTime & GetTimestamp() const
Definition: MetricDatapoint.h:149
Aws::Lightsail::Model::MetricDatapoint::AverageHasBeenSet
bool AverageHasBeenSet() const
Definition: MetricDatapoint.h:49
Lightsail_EXPORTS.h
Aws::Lightsail::Model::MetricDatapoint::SetAverage
void SetAverage(double value)
Definition: MetricDatapoint.h:54
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::MetricDatapoint::GetSampleCount
double GetSampleCount() const
Definition: MetricDatapoint.h:107
Aws::Lightsail::Model::MetricDatapoint::WithUnit
MetricDatapoint & WithUnit(MetricUnit &&value)
Definition: MetricDatapoint.h:205
Aws::Lightsail::Model::MetricDatapoint::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: MetricDatapoint.h:185
Aws::Lightsail::Model::MetricDatapoint::MaximumHasBeenSet
bool MaximumHasBeenSet() const
Definition: MetricDatapoint.h:70
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::MetricDatapoint::WithTimestamp
MetricDatapoint & WithTimestamp(Aws::Utils::DateTime &&value)
Definition: MetricDatapoint.h:174
Aws::Lightsail::Model::MetricDatapoint::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::MetricDatapoint::MetricDatapoint
MetricDatapoint(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::MetricDatapoint::WithMaximum
MetricDatapoint & WithMaximum(double value)
Definition: MetricDatapoint.h:80
Aws::Lightsail::Model::MetricDatapoint::operator=
MetricDatapoint & operator=(Aws::Utils::Json::JsonView jsonValue)