AWS SDK for C++  1.9.129
AWS SDK for C++
MetricValue.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
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 IoT
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline long long GetCount() const{ return m_count; }
47 
52  inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
53 
58  inline void SetCount(long long value) { m_countHasBeenSet = true; m_count = value; }
59 
64  inline MetricValue& WithCount(long long value) { SetCount(value); return *this;}
65 
66 
71  inline const Aws::Vector<Aws::String>& GetCidrs() const{ return m_cidrs; }
72 
77  inline bool CidrsHasBeenSet() const { return m_cidrsHasBeenSet; }
78 
83  inline void SetCidrs(const Aws::Vector<Aws::String>& value) { m_cidrsHasBeenSet = true; m_cidrs = value; }
84 
89  inline void SetCidrs(Aws::Vector<Aws::String>&& value) { m_cidrsHasBeenSet = true; m_cidrs = std::move(value); }
90 
95  inline MetricValue& WithCidrs(const Aws::Vector<Aws::String>& value) { SetCidrs(value); return *this;}
96 
101  inline MetricValue& WithCidrs(Aws::Vector<Aws::String>&& value) { SetCidrs(std::move(value)); return *this;}
102 
107  inline MetricValue& AddCidrs(const Aws::String& value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(value); return *this; }
108 
113  inline MetricValue& AddCidrs(Aws::String&& value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(std::move(value)); return *this; }
114 
119  inline MetricValue& AddCidrs(const char* value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(value); return *this; }
120 
121 
126  inline const Aws::Vector<int>& GetPorts() const{ return m_ports; }
127 
132  inline bool PortsHasBeenSet() const { return m_portsHasBeenSet; }
133 
138  inline void SetPorts(const Aws::Vector<int>& value) { m_portsHasBeenSet = true; m_ports = value; }
139 
144  inline void SetPorts(Aws::Vector<int>&& value) { m_portsHasBeenSet = true; m_ports = std::move(value); }
145 
150  inline MetricValue& WithPorts(const Aws::Vector<int>& value) { SetPorts(value); return *this;}
151 
156  inline MetricValue& WithPorts(Aws::Vector<int>&& value) { SetPorts(std::move(value)); return *this;}
157 
162  inline MetricValue& AddPorts(int value) { m_portsHasBeenSet = true; m_ports.push_back(value); return *this; }
163 
164 
168  inline double GetNumber() const{ return m_number; }
169 
173  inline bool NumberHasBeenSet() const { return m_numberHasBeenSet; }
174 
178  inline void SetNumber(double value) { m_numberHasBeenSet = true; m_number = value; }
179 
183  inline MetricValue& WithNumber(double value) { SetNumber(value); return *this;}
184 
185 
189  inline const Aws::Vector<double>& GetNumbers() const{ return m_numbers; }
190 
194  inline bool NumbersHasBeenSet() const { return m_numbersHasBeenSet; }
195 
199  inline void SetNumbers(const Aws::Vector<double>& value) { m_numbersHasBeenSet = true; m_numbers = value; }
200 
204  inline void SetNumbers(Aws::Vector<double>&& value) { m_numbersHasBeenSet = true; m_numbers = std::move(value); }
205 
209  inline MetricValue& WithNumbers(const Aws::Vector<double>& value) { SetNumbers(value); return *this;}
210 
214  inline MetricValue& WithNumbers(Aws::Vector<double>&& value) { SetNumbers(std::move(value)); return *this;}
215 
219  inline MetricValue& AddNumbers(double value) { m_numbersHasBeenSet = true; m_numbers.push_back(value); return *this; }
220 
221 
225  inline const Aws::Vector<Aws::String>& GetStrings() const{ return m_strings; }
226 
230  inline bool StringsHasBeenSet() const { return m_stringsHasBeenSet; }
231 
235  inline void SetStrings(const Aws::Vector<Aws::String>& value) { m_stringsHasBeenSet = true; m_strings = value; }
236 
240  inline void SetStrings(Aws::Vector<Aws::String>&& value) { m_stringsHasBeenSet = true; m_strings = std::move(value); }
241 
245  inline MetricValue& WithStrings(const Aws::Vector<Aws::String>& value) { SetStrings(value); return *this;}
246 
250  inline MetricValue& WithStrings(Aws::Vector<Aws::String>&& value) { SetStrings(std::move(value)); return *this;}
251 
255  inline MetricValue& AddStrings(const Aws::String& value) { m_stringsHasBeenSet = true; m_strings.push_back(value); return *this; }
256 
260  inline MetricValue& AddStrings(Aws::String&& value) { m_stringsHasBeenSet = true; m_strings.push_back(std::move(value)); return *this; }
261 
265  inline MetricValue& AddStrings(const char* value) { m_stringsHasBeenSet = true; m_strings.push_back(value); return *this; }
266 
267  private:
268 
269  long long m_count;
270  bool m_countHasBeenSet;
271 
272  Aws::Vector<Aws::String> m_cidrs;
273  bool m_cidrsHasBeenSet;
274 
275  Aws::Vector<int> m_ports;
276  bool m_portsHasBeenSet;
277 
278  double m_number;
279  bool m_numberHasBeenSet;
280 
281  Aws::Vector<double> m_numbers;
282  bool m_numbersHasBeenSet;
283 
284  Aws::Vector<Aws::String> m_strings;
285  bool m_stringsHasBeenSet;
286  };
287 
288 } // namespace Model
289 } // namespace IoT
290 } // namespace Aws
Aws::IoT::Model::MetricValue::GetCidrs
const Aws::Vector< Aws::String > & GetCidrs() const
Definition: MetricValue.h:71
Aws::IoT::Model::MetricValue::SetNumbers
void SetNumbers(const Aws::Vector< double > &value)
Definition: MetricValue.h:199
Aws::IoT::Model::MetricValue::operator=
MetricValue & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::MetricValue::GetNumber
double GetNumber() const
Definition: MetricValue.h:168
Aws::IoT::Model::MetricValue::GetCount
long long GetCount() const
Definition: MetricValue.h:46
Aws::IoT::Model::MetricValue::MetricValue
MetricValue()
Aws::IoT::Model::MetricValue::SetCidrs
void SetCidrs(Aws::Vector< Aws::String > &&value)
Definition: MetricValue.h:89
Aws::IoT::Model::MetricValue::AddStrings
MetricValue & AddStrings(const Aws::String &value)
Definition: MetricValue.h:255
Aws::IoT::Model::MetricValue::WithStrings
MetricValue & WithStrings(const Aws::Vector< Aws::String > &value)
Definition: MetricValue.h:245
Aws::IoT::Model::MetricValue::AddStrings
MetricValue & AddStrings(const char *value)
Definition: MetricValue.h:265
Aws::IoT::Model::MetricValue::AddCidrs
MetricValue & AddCidrs(const char *value)
Definition: MetricValue.h:119
Aws::IoT::Model::MetricValue
Definition: MetricValue.h:34
Aws::IoT::Model::MetricValue::SetNumbers
void SetNumbers(Aws::Vector< double > &&value)
Definition: MetricValue.h:204
Aws::IoT::Model::MetricValue::SetStrings
void SetStrings(Aws::Vector< Aws::String > &&value)
Definition: MetricValue.h:240
Aws::IoT::Model::MetricValue::SetPorts
void SetPorts(const Aws::Vector< int > &value)
Definition: MetricValue.h:138
Aws::IoT::Model::MetricValue::SetPorts
void SetPorts(Aws::Vector< int > &&value)
Definition: MetricValue.h:144
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::MetricValue::WithCidrs
MetricValue & WithCidrs(Aws::Vector< Aws::String > &&value)
Definition: MetricValue.h:101
Aws::IoT::Model::MetricValue::WithNumbers
MetricValue & WithNumbers(Aws::Vector< double > &&value)
Definition: MetricValue.h:214
Aws::IoT::Model::MetricValue::AddStrings
MetricValue & AddStrings(Aws::String &&value)
Definition: MetricValue.h:260
Aws::IoT::Model::MetricValue::WithNumber
MetricValue & WithNumber(double value)
Definition: MetricValue.h:183
AWSVector.h
Aws::IoT::Model::MetricValue::CountHasBeenSet
bool CountHasBeenSet() const
Definition: MetricValue.h:52
Aws::IoT::Model::MetricValue::SetCidrs
void SetCidrs(const Aws::Vector< Aws::String > &value)
Definition: MetricValue.h:83
Aws::IoT::Model::MetricValue::GetStrings
const Aws::Vector< Aws::String > & GetStrings() const
Definition: MetricValue.h:225
Aws::IoT::Model::MetricValue::StringsHasBeenSet
bool StringsHasBeenSet() const
Definition: MetricValue.h:230
Aws::IoT::Model::MetricValue::NumbersHasBeenSet
bool NumbersHasBeenSet() const
Definition: MetricValue.h:194
Aws::IoT::Model::MetricValue::AddCidrs
MetricValue & AddCidrs(Aws::String &&value)
Definition: MetricValue.h:113
Aws::IoT::Model::MetricValue::GetPorts
const Aws::Vector< int > & GetPorts() const
Definition: MetricValue.h:126
Aws::IoT::Model::MetricValue::AddCidrs
MetricValue & AddCidrs(const Aws::String &value)
Definition: MetricValue.h:107
Aws::IoT::Model::MetricValue::AddPorts
MetricValue & AddPorts(int value)
Definition: MetricValue.h:162
Aws::IoT::Model::MetricValue::AddNumbers
MetricValue & AddNumbers(double value)
Definition: MetricValue.h:219
Aws::IoT::Model::MetricValue::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::MetricValue::SetStrings
void SetStrings(const Aws::Vector< Aws::String > &value)
Definition: MetricValue.h:235
Aws::IoT::Model::MetricValue::NumberHasBeenSet
bool NumberHasBeenSet() const
Definition: MetricValue.h:173
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::IoT::Model::MetricValue::SetCount
void SetCount(long long value)
Definition: MetricValue.h:58
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::MetricValue::WithPorts
MetricValue & WithPorts(Aws::Vector< int > &&value)
Definition: MetricValue.h:156
Aws::IoT::Model::MetricValue::WithStrings
MetricValue & WithStrings(Aws::Vector< Aws::String > &&value)
Definition: MetricValue.h:250
Aws::IoT::Model::MetricValue::WithPorts
MetricValue & WithPorts(const Aws::Vector< int > &value)
Definition: MetricValue.h:150
Aws::IoT::Model::MetricValue::SetNumber
void SetNumber(double value)
Definition: MetricValue.h:178
Aws::IoT::Model::MetricValue::WithNumbers
MetricValue & WithNumbers(const Aws::Vector< double > &value)
Definition: MetricValue.h:209
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::MetricValue::WithCidrs
MetricValue & WithCidrs(const Aws::Vector< Aws::String > &value)
Definition: MetricValue.h:95
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::MetricValue::CidrsHasBeenSet
bool CidrsHasBeenSet() const
Definition: MetricValue.h:77
Aws::IoT::Model::MetricValue::WithCount
MetricValue & WithCount(long long value)
Definition: MetricValue.h:64
Aws::IoT::Model::MetricValue::PortsHasBeenSet
bool PortsHasBeenSet() const
Definition: MetricValue.h:132
Aws::IoT::Model::MetricValue::MetricValue
MetricValue(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::MetricValue::GetNumbers
const Aws::Vector< double > & GetNumbers() const
Definition: MetricValue.h:189
IoT_EXPORTS.h