AWS SDK for C++  1.9.124
AWS SDK for C++
MetricDatum.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <aws/mwaa/model/Unit.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace MWAA
27 {
28 namespace Model
29 {
30 
37  {
38  public:
43 
44 
48  inline const Aws::Vector<Dimension>& GetDimensions() const{ return m_dimensions; }
49 
53  inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
54 
58  inline void SetDimensions(const Aws::Vector<Dimension>& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
59 
63  inline void SetDimensions(Aws::Vector<Dimension>&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
64 
68  inline MetricDatum& WithDimensions(const Aws::Vector<Dimension>& value) { SetDimensions(value); return *this;}
69 
73  inline MetricDatum& WithDimensions(Aws::Vector<Dimension>&& value) { SetDimensions(std::move(value)); return *this;}
74 
78  inline MetricDatum& AddDimensions(const Dimension& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(value); return *this; }
79 
83  inline MetricDatum& AddDimensions(Dimension&& value) { m_dimensionsHasBeenSet = true; m_dimensions.push_back(std::move(value)); return *this; }
84 
85 
89  inline const Aws::String& GetMetricName() const{ return m_metricName; }
90 
94  inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
95 
99  inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
100 
104  inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
105 
109  inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
110 
114  inline MetricDatum& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
115 
119  inline MetricDatum& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
120 
124  inline MetricDatum& WithMetricName(const char* value) { SetMetricName(value); return *this;}
125 
126 
130  inline const StatisticSet& GetStatisticValues() const{ return m_statisticValues; }
131 
135  inline bool StatisticValuesHasBeenSet() const { return m_statisticValuesHasBeenSet; }
136 
140  inline void SetStatisticValues(const StatisticSet& value) { m_statisticValuesHasBeenSet = true; m_statisticValues = value; }
141 
145  inline void SetStatisticValues(StatisticSet&& value) { m_statisticValuesHasBeenSet = true; m_statisticValues = std::move(value); }
146 
150  inline MetricDatum& WithStatisticValues(const StatisticSet& value) { SetStatisticValues(value); return *this;}
151 
155  inline MetricDatum& WithStatisticValues(StatisticSet&& value) { SetStatisticValues(std::move(value)); return *this;}
156 
157 
161  inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
162 
166  inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
167 
171  inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
172 
176  inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
177 
181  inline MetricDatum& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
182 
186  inline MetricDatum& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
187 
188 
189 
190  inline const Unit& GetUnit() const{ return m_unit; }
191 
192 
193  inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
194 
195 
196  inline void SetUnit(const Unit& value) { m_unitHasBeenSet = true; m_unit = value; }
197 
198 
199  inline void SetUnit(Unit&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
200 
201 
202  inline MetricDatum& WithUnit(const Unit& value) { SetUnit(value); return *this;}
203 
204 
205  inline MetricDatum& WithUnit(Unit&& value) { SetUnit(std::move(value)); return *this;}
206 
207 
211  inline double GetValue() const{ return m_value; }
212 
216  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
217 
221  inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
222 
226  inline MetricDatum& WithValue(double value) { SetValue(value); return *this;}
227 
228  private:
229 
230  Aws::Vector<Dimension> m_dimensions;
231  bool m_dimensionsHasBeenSet;
232 
233  Aws::String m_metricName;
234  bool m_metricNameHasBeenSet;
235 
236  StatisticSet m_statisticValues;
237  bool m_statisticValuesHasBeenSet;
238 
239  Aws::Utils::DateTime m_timestamp;
240  bool m_timestampHasBeenSet;
241 
242  Unit m_unit;
243  bool m_unitHasBeenSet;
244 
245  double m_value;
246  bool m_valueHasBeenSet;
247  };
248 
249 } // namespace Model
250 } // namespace MWAA
251 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::MWAA::Model::MetricDatum::StatisticValuesHasBeenSet
bool StatisticValuesHasBeenSet() const
Definition: MetricDatum.h:135
Aws::MWAA::Model::MetricDatum::WithStatisticValues
MetricDatum & WithStatisticValues(const StatisticSet &value)
Definition: MetricDatum.h:150
Aws::MWAA::Model::MetricDatum::GetDimensions
const Aws::Vector< Dimension > & GetDimensions() const
Definition: MetricDatum.h:48
Aws::MWAA::Model::MetricDatum::operator=
MetricDatum & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::MWAA::Model::Unit
Unit
Definition: Unit.h:17
Aws::MWAA::Model::MetricDatum::WithMetricName
MetricDatum & WithMetricName(Aws::String &&value)
Definition: MetricDatum.h:119
Aws::MWAA::Model::MetricDatum::WithTimestamp
MetricDatum & WithTimestamp(const Aws::Utils::DateTime &value)
Definition: MetricDatum.h:181
Aws::MWAA::Model::MetricDatum::WithMetricName
MetricDatum & WithMetricName(const char *value)
Definition: MetricDatum.h:124
DateTime.h
Aws::MWAA::Model::MetricDatum::GetUnit
const Unit & GetUnit() const
Definition: MetricDatum.h:190
Aws::MWAA::Model::MetricDatum::TimestampHasBeenSet
bool TimestampHasBeenSet() const
Definition: MetricDatum.h:166
Aws::MWAA::Model::Dimension
Definition: Dimension.h:32
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::MWAA::Model::MetricDatum::SetDimensions
void SetDimensions(const Aws::Vector< Dimension > &value)
Definition: MetricDatum.h:58
Aws::MWAA::Model::MetricDatum::DimensionsHasBeenSet
bool DimensionsHasBeenSet() const
Definition: MetricDatum.h:53
Aws::MWAA::Model::MetricDatum::GetStatisticValues
const StatisticSet & GetStatisticValues() const
Definition: MetricDatum.h:130
Aws::MWAA::Model::MetricDatum::WithDimensions
MetricDatum & WithDimensions(const Aws::Vector< Dimension > &value)
Definition: MetricDatum.h:68
Aws::MWAA::Model::MetricDatum::GetTimestamp
const Aws::Utils::DateTime & GetTimestamp() const
Definition: MetricDatum.h:161
Aws::MWAA::Model::MetricDatum
Definition: MetricDatum.h:37
Aws::MWAA::Model::MetricDatum::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: MetricDatum.h:216
Aws::MWAA::Model::MetricDatum::WithTimestamp
MetricDatum & WithTimestamp(Aws::Utils::DateTime &&value)
Definition: MetricDatum.h:186
Aws::MWAA::Model::MetricDatum::SetTimestamp
void SetTimestamp(const Aws::Utils::DateTime &value)
Definition: MetricDatum.h:171
Aws::MWAA::Model::MetricDatum::AddDimensions
MetricDatum & AddDimensions(const Dimension &value)
Definition: MetricDatum.h:78
Unit.h
Aws::MWAA::Model::StatisticSet
Definition: StatisticSet.h:30
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::MWAA::Model::MetricDatum::SetMetricName
void SetMetricName(const Aws::String &value)
Definition: MetricDatum.h:99
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::MWAA::Model::MetricDatum::GetMetricName
const Aws::String & GetMetricName() const
Definition: MetricDatum.h:89
Aws::MWAA::Model::MetricDatum::WithMetricName
MetricDatum & WithMetricName(const Aws::String &value)
Definition: MetricDatum.h:114
Aws::MWAA::Model::MetricDatum::SetUnit
void SetUnit(Unit &&value)
Definition: MetricDatum.h:199
Aws::MWAA::Model::MetricDatum::SetMetricName
void SetMetricName(Aws::String &&value)
Definition: MetricDatum.h:104
Aws::MWAA::Model::MetricDatum::AddDimensions
MetricDatum & AddDimensions(Dimension &&value)
Definition: MetricDatum.h:83
Aws::MWAA::Model::MetricDatum::WithValue
MetricDatum & WithValue(double value)
Definition: MetricDatum.h:226
Aws::MWAA::Model::MetricDatum::SetUnit
void SetUnit(const Unit &value)
Definition: MetricDatum.h:196
Aws::MWAA::Model::MetricDatum::WithStatisticValues
MetricDatum & WithStatisticValues(StatisticSet &&value)
Definition: MetricDatum.h:155
StatisticSet.h
Aws::MWAA::Model::MetricDatum::SetDimensions
void SetDimensions(Aws::Vector< Dimension > &&value)
Definition: MetricDatum.h:63
Aws::MWAA::Model::MetricDatum::WithUnit
MetricDatum & WithUnit(const Unit &value)
Definition: MetricDatum.h:202
AWS_MWAA_API
#define AWS_MWAA_API
Definition: MWAA_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::MWAA::Model::MetricDatum::SetValue
void SetValue(double value)
Definition: MetricDatum.h:221
Aws::MWAA::Model::MetricDatum::WithDimensions
MetricDatum & WithDimensions(Aws::Vector< Dimension > &&value)
Definition: MetricDatum.h:73
Aws::MWAA::Model::MetricDatum::MetricNameHasBeenSet
bool MetricNameHasBeenSet() const
Definition: MetricDatum.h:94
Aws::MWAA::Model::MetricDatum::GetValue
double GetValue() const
Definition: MetricDatum.h:211
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MWAA::Model::MetricDatum::MetricDatum
MetricDatum()
Aws::MWAA::Model::MetricDatum::WithUnit
MetricDatum & WithUnit(Unit &&value)
Definition: MetricDatum.h:205
Aws::MWAA::Model::MetricDatum::SetStatisticValues
void SetStatisticValues(const StatisticSet &value)
Definition: MetricDatum.h:140
Dimension.h
Aws::MWAA::Model::MetricDatum::SetStatisticValues
void SetStatisticValues(StatisticSet &&value)
Definition: MetricDatum.h:145
Aws::MWAA::Model::MetricDatum::MetricDatum
MetricDatum(Aws::Utils::Json::JsonView jsonValue)
Aws::MWAA::Model::MetricDatum::UnitHasBeenSet
bool UnitHasBeenSet() const
Definition: MetricDatum.h:193
Aws::MWAA::Model::MetricDatum::SetTimestamp
void SetTimestamp(Aws::Utils::DateTime &&value)
Definition: MetricDatum.h:176
Aws::MWAA::Model::MetricDatum::SetMetricName
void SetMetricName(const char *value)
Definition: MetricDatum.h:109
Aws::MWAA::Model::MetricDatum::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
MWAA_EXPORTS.h