AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricValue.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 IoT
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOT_API MetricValue();
40
41
43
47 inline long long GetCount() const{ return m_count; }
48 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
49 inline void SetCount(long long value) { m_countHasBeenSet = true; m_count = value; }
50 inline MetricValue& WithCount(long long value) { SetCount(value); return *this;}
52
54
58 inline const Aws::Vector<Aws::String>& GetCidrs() const{ return m_cidrs; }
59 inline bool CidrsHasBeenSet() const { return m_cidrsHasBeenSet; }
60 inline void SetCidrs(const Aws::Vector<Aws::String>& value) { m_cidrsHasBeenSet = true; m_cidrs = value; }
61 inline void SetCidrs(Aws::Vector<Aws::String>&& value) { m_cidrsHasBeenSet = true; m_cidrs = std::move(value); }
62 inline MetricValue& WithCidrs(const Aws::Vector<Aws::String>& value) { SetCidrs(value); return *this;}
63 inline MetricValue& WithCidrs(Aws::Vector<Aws::String>&& value) { SetCidrs(std::move(value)); return *this;}
64 inline MetricValue& AddCidrs(const Aws::String& value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(value); return *this; }
65 inline MetricValue& AddCidrs(Aws::String&& value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(std::move(value)); return *this; }
66 inline MetricValue& AddCidrs(const char* value) { m_cidrsHasBeenSet = true; m_cidrs.push_back(value); return *this; }
68
70
74 inline const Aws::Vector<int>& GetPorts() const{ return m_ports; }
75 inline bool PortsHasBeenSet() const { return m_portsHasBeenSet; }
76 inline void SetPorts(const Aws::Vector<int>& value) { m_portsHasBeenSet = true; m_ports = value; }
77 inline void SetPorts(Aws::Vector<int>&& value) { m_portsHasBeenSet = true; m_ports = std::move(value); }
78 inline MetricValue& WithPorts(const Aws::Vector<int>& value) { SetPorts(value); return *this;}
79 inline MetricValue& WithPorts(Aws::Vector<int>&& value) { SetPorts(std::move(value)); return *this;}
80 inline MetricValue& AddPorts(int value) { m_portsHasBeenSet = true; m_ports.push_back(value); return *this; }
82
84
87 inline double GetNumber() const{ return m_number; }
88 inline bool NumberHasBeenSet() const { return m_numberHasBeenSet; }
89 inline void SetNumber(double value) { m_numberHasBeenSet = true; m_number = value; }
90 inline MetricValue& WithNumber(double value) { SetNumber(value); return *this;}
92
94
97 inline const Aws::Vector<double>& GetNumbers() const{ return m_numbers; }
98 inline bool NumbersHasBeenSet() const { return m_numbersHasBeenSet; }
99 inline void SetNumbers(const Aws::Vector<double>& value) { m_numbersHasBeenSet = true; m_numbers = value; }
100 inline void SetNumbers(Aws::Vector<double>&& value) { m_numbersHasBeenSet = true; m_numbers = std::move(value); }
101 inline MetricValue& WithNumbers(const Aws::Vector<double>& value) { SetNumbers(value); return *this;}
102 inline MetricValue& WithNumbers(Aws::Vector<double>&& value) { SetNumbers(std::move(value)); return *this;}
103 inline MetricValue& AddNumbers(double value) { m_numbersHasBeenSet = true; m_numbers.push_back(value); return *this; }
105
107
110 inline const Aws::Vector<Aws::String>& GetStrings() const{ return m_strings; }
111 inline bool StringsHasBeenSet() const { return m_stringsHasBeenSet; }
112 inline void SetStrings(const Aws::Vector<Aws::String>& value) { m_stringsHasBeenSet = true; m_strings = value; }
113 inline void SetStrings(Aws::Vector<Aws::String>&& value) { m_stringsHasBeenSet = true; m_strings = std::move(value); }
114 inline MetricValue& WithStrings(const Aws::Vector<Aws::String>& value) { SetStrings(value); return *this;}
115 inline MetricValue& WithStrings(Aws::Vector<Aws::String>&& value) { SetStrings(std::move(value)); return *this;}
116 inline MetricValue& AddStrings(const Aws::String& value) { m_stringsHasBeenSet = true; m_strings.push_back(value); return *this; }
117 inline MetricValue& AddStrings(Aws::String&& value) { m_stringsHasBeenSet = true; m_strings.push_back(std::move(value)); return *this; }
118 inline MetricValue& AddStrings(const char* value) { m_stringsHasBeenSet = true; m_strings.push_back(value); return *this; }
120 private:
121
122 long long m_count;
123 bool m_countHasBeenSet = false;
124
126 bool m_cidrsHasBeenSet = false;
127
128 Aws::Vector<int> m_ports;
129 bool m_portsHasBeenSet = false;
130
131 double m_number;
132 bool m_numberHasBeenSet = false;
133
134 Aws::Vector<double> m_numbers;
135 bool m_numbersHasBeenSet = false;
136
137 Aws::Vector<Aws::String> m_strings;
138 bool m_stringsHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace IoT
143} // namespace Aws
MetricValue & WithCidrs(Aws::Vector< Aws::String > &&value)
Definition MetricValue.h:63
MetricValue & AddStrings(const Aws::String &value)
void SetStrings(Aws::Vector< Aws::String > &&value)
MetricValue & WithCount(long long value)
Definition MetricValue.h:50
void SetCount(long long value)
Definition MetricValue.h:49
MetricValue & WithNumbers(const Aws::Vector< double > &value)
MetricValue & WithNumber(double value)
Definition MetricValue.h:90
MetricValue & AddCidrs(Aws::String &&value)
Definition MetricValue.h:65
void SetPorts(Aws::Vector< int > &&value)
Definition MetricValue.h:77
MetricValue & WithStrings(const Aws::Vector< Aws::String > &value)
void SetCidrs(Aws::Vector< Aws::String > &&value)
Definition MetricValue.h:61
MetricValue & AddPorts(int value)
Definition MetricValue.h:80
MetricValue & WithCidrs(const Aws::Vector< Aws::String > &value)
Definition MetricValue.h:62
MetricValue & WithStrings(Aws::Vector< Aws::String > &&value)
const Aws::Vector< double > & GetNumbers() const
Definition MetricValue.h:97
MetricValue & AddNumbers(double value)
void SetStrings(const Aws::Vector< Aws::String > &value)
void SetNumbers(Aws::Vector< double > &&value)
const Aws::Vector< int > & GetPorts() const
Definition MetricValue.h:74
MetricValue & AddStrings(const char *value)
long long GetCount() const
Definition MetricValue.h:47
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API MetricValue & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricValue & AddCidrs(const char *value)
Definition MetricValue.h:66
void SetPorts(const Aws::Vector< int > &value)
Definition MetricValue.h:76
const Aws::Vector< Aws::String > & GetStrings() const
MetricValue & AddCidrs(const Aws::String &value)
Definition MetricValue.h:64
void SetNumber(double value)
Definition MetricValue.h:89
void SetNumbers(const Aws::Vector< double > &value)
Definition MetricValue.h:99
MetricValue & WithPorts(const Aws::Vector< int > &value)
Definition MetricValue.h:78
void SetCidrs(const Aws::Vector< Aws::String > &value)
Definition MetricValue.h:60
MetricValue & WithPorts(Aws::Vector< int > &&value)
Definition MetricValue.h:79
AWS_IOT_API MetricValue(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetCidrs() const
Definition MetricValue.h:58
MetricValue & AddStrings(Aws::String &&value)
MetricValue & WithNumbers(Aws::Vector< double > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue