7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iot/IoT_EXPORTS.h>
41 inline long long GetCount()
const {
return m_count; }
44 m_countHasBeenSet =
true;
60 template <
typename C
idrsT = Aws::Vector<Aws::String>>
62 m_cidrsHasBeenSet =
true;
63 m_cidrs = std::forward<CidrsT>(value);
65 template <
typename C
idrsT = Aws::Vector<Aws::String>>
67 SetCidrs(std::forward<CidrsT>(value));
70 template <
typename C
idrsT = Aws::String>
72 m_cidrsHasBeenSet =
true;
73 m_cidrs.emplace_back(std::forward<CidrsT>(value));
85 template <
typename PortsT = Aws::Vector<
int>>
87 m_portsHasBeenSet =
true;
88 m_ports = std::forward<PortsT>(value);
90 template <
typename PortsT = Aws::Vector<
int>>
92 SetPorts(std::forward<PortsT>(value));
96 m_portsHasBeenSet =
true;
97 m_ports.push_back(value);
109 m_numberHasBeenSet =
true;
124 template <
typename NumbersT = Aws::Vector<
double>>
126 m_numbersHasBeenSet =
true;
127 m_numbers = std::forward<NumbersT>(value);
129 template <
typename NumbersT = Aws::Vector<
double>>
135 m_numbersHasBeenSet =
true;
136 m_numbers.push_back(value);
147 template <
typename StringsT = Aws::Vector<Aws::String>>
149 m_stringsHasBeenSet =
true;
150 m_strings = std::forward<StringsT>(value);
152 template <
typename StringsT = Aws::Vector<Aws::String>>
157 template <
typename StringsT = Aws::String>
159 m_stringsHasBeenSet =
true;
160 m_strings.emplace_back(std::forward<StringsT>(value));
165 long long m_count{0};
171 double m_number{0.0};
176 bool m_countHasBeenSet =
false;
177 bool m_cidrsHasBeenSet =
false;
178 bool m_portsHasBeenSet =
false;
179 bool m_numberHasBeenSet =
false;
180 bool m_numbersHasBeenSet =
false;
181 bool m_stringsHasBeenSet =
false;
MetricValue & WithCount(long long value)
void SetCount(long long value)
bool CidrsHasBeenSet() const
bool CountHasBeenSet() const
MetricValue & WithNumber(double value)
void SetStrings(StringsT &&value)
MetricValue & AddPorts(int value)
void SetCidrs(CidrsT &&value)
const Aws::Vector< double > & GetNumbers() const
bool NumbersHasBeenSet() const
MetricValue & AddNumbers(double value)
const Aws::Vector< int > & GetPorts() const
bool StringsHasBeenSet() const
MetricValue & WithNumbers(NumbersT &&value)
bool NumberHasBeenSet() const
MetricValue & WithStrings(StringsT &&value)
long long GetCount() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API MetricValue & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPorts(PortsT &&value)
bool PortsHasBeenSet() const
MetricValue & AddStrings(StringsT &&value)
const Aws::Vector< Aws::String > & GetStrings() const
MetricValue & WithCidrs(CidrsT &&value)
void SetNumber(double value)
AWS_IOT_API MetricValue(Aws::Utils::Json::JsonView jsonValue)
MetricValue & AddCidrs(CidrsT &&value)
void SetNumbers(NumbersT &&value)
const Aws::Vector< Aws::String > & GetCidrs() const
MetricValue & WithPorts(PortsT &&value)
AWS_IOT_API MetricValue()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue