AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ParameterValue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
30 public:
31 AWS_SECURITYHUB_API ParameterValue() = default;
32 AWS_SECURITYHUB_API ParameterValue(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYHUB_API ParameterValue& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline int GetInteger() const { return m_integer; }
41 inline bool IntegerHasBeenSet() const { return m_integerHasBeenSet; }
42 inline void SetInteger(int value) {
43 m_integerHasBeenSet = true;
44 m_integer = value;
45 }
46 inline ParameterValue& WithInteger(int value) {
47 SetInteger(value);
48 return *this;
49 }
51
53
56 inline const Aws::Vector<int>& GetIntegerList() const { return m_integerList; }
57 inline bool IntegerListHasBeenSet() const { return m_integerListHasBeenSet; }
58 template <typename IntegerListT = Aws::Vector<int>>
59 void SetIntegerList(IntegerListT&& value) {
60 m_integerListHasBeenSet = true;
61 m_integerList = std::forward<IntegerListT>(value);
62 }
63 template <typename IntegerListT = Aws::Vector<int>>
64 ParameterValue& WithIntegerList(IntegerListT&& value) {
65 SetIntegerList(std::forward<IntegerListT>(value));
66 return *this;
67 }
68 inline ParameterValue& AddIntegerList(int value) {
69 m_integerListHasBeenSet = true;
70 m_integerList.push_back(value);
71 return *this;
72 }
74
76
79 inline double GetDouble() const { return m_double; }
80 inline bool DoubleHasBeenSet() const { return m_doubleHasBeenSet; }
81 inline void SetDouble(double value) {
82 m_doubleHasBeenSet = true;
83 m_double = value;
84 }
85 inline ParameterValue& WithDouble(double value) {
86 SetDouble(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetString() const { return m_string; }
96 inline bool StringHasBeenSet() const { return m_stringHasBeenSet; }
97 template <typename StringT = Aws::String>
98 void SetString(StringT&& value) {
99 m_stringHasBeenSet = true;
100 m_string = std::forward<StringT>(value);
101 }
102 template <typename StringT = Aws::String>
103 ParameterValue& WithString(StringT&& value) {
104 SetString(std::forward<StringT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Vector<Aws::String>& GetStringList() const { return m_stringList; }
114 inline bool StringListHasBeenSet() const { return m_stringListHasBeenSet; }
115 template <typename StringListT = Aws::Vector<Aws::String>>
116 void SetStringList(StringListT&& value) {
117 m_stringListHasBeenSet = true;
118 m_stringList = std::forward<StringListT>(value);
119 }
120 template <typename StringListT = Aws::Vector<Aws::String>>
121 ParameterValue& WithStringList(StringListT&& value) {
122 SetStringList(std::forward<StringListT>(value));
123 return *this;
124 }
125 template <typename StringListT = Aws::String>
126 ParameterValue& AddStringList(StringListT&& value) {
127 m_stringListHasBeenSet = true;
128 m_stringList.emplace_back(std::forward<StringListT>(value));
129 return *this;
130 }
132
134
137 inline bool GetBoolean() const { return m_boolean; }
138 inline bool BooleanHasBeenSet() const { return m_booleanHasBeenSet; }
139 inline void SetBoolean(bool value) {
140 m_booleanHasBeenSet = true;
141 m_boolean = value;
142 }
143 inline ParameterValue& WithBoolean(bool value) {
144 SetBoolean(value);
145 return *this;
146 }
148
150
153 inline const Aws::String& GetEnum() const { return m_enum; }
154 inline bool EnumHasBeenSet() const { return m_enumHasBeenSet; }
155 template <typename EnumT = Aws::String>
156 void SetEnum(EnumT&& value) {
157 m_enumHasBeenSet = true;
158 m_enum = std::forward<EnumT>(value);
159 }
160 template <typename EnumT = Aws::String>
161 ParameterValue& WithEnum(EnumT&& value) {
162 SetEnum(std::forward<EnumT>(value));
163 return *this;
164 }
166
168
171 inline const Aws::Vector<Aws::String>& GetEnumList() const { return m_enumList; }
172 inline bool EnumListHasBeenSet() const { return m_enumListHasBeenSet; }
173 template <typename EnumListT = Aws::Vector<Aws::String>>
174 void SetEnumList(EnumListT&& value) {
175 m_enumListHasBeenSet = true;
176 m_enumList = std::forward<EnumListT>(value);
177 }
178 template <typename EnumListT = Aws::Vector<Aws::String>>
179 ParameterValue& WithEnumList(EnumListT&& value) {
180 SetEnumList(std::forward<EnumListT>(value));
181 return *this;
182 }
183 template <typename EnumListT = Aws::String>
184 ParameterValue& AddEnumList(EnumListT&& value) {
185 m_enumListHasBeenSet = true;
186 m_enumList.emplace_back(std::forward<EnumListT>(value));
187 return *this;
188 }
190 private:
191 int m_integer{0};
192
193 Aws::Vector<int> m_integerList;
194
195 double m_double{0.0};
196
197 Aws::String m_string;
198
199 Aws::Vector<Aws::String> m_stringList;
200
201 bool m_boolean{false};
202
203 Aws::String m_enum;
204
205 Aws::Vector<Aws::String> m_enumList;
206 bool m_integerHasBeenSet = false;
207 bool m_integerListHasBeenSet = false;
208 bool m_doubleHasBeenSet = false;
209 bool m_stringHasBeenSet = false;
210 bool m_stringListHasBeenSet = false;
211 bool m_booleanHasBeenSet = false;
212 bool m_enumHasBeenSet = false;
213 bool m_enumListHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace SecurityHub
218} // namespace Aws
const Aws::Vector< Aws::String > & GetEnumList() const
ParameterValue & WithBoolean(bool value)
ParameterValue & WithDouble(double value)
AWS_SECURITYHUB_API ParameterValue()=default
ParameterValue & WithString(StringT &&value)
void SetStringList(StringListT &&value)
void SetIntegerList(IntegerListT &&value)
ParameterValue & AddIntegerList(int value)
const Aws::Vector< Aws::String > & GetStringList() const
const Aws::String & GetString() const
AWS_SECURITYHUB_API ParameterValue & operator=(Aws::Utils::Json::JsonView jsonValue)
ParameterValue & WithIntegerList(IntegerListT &&value)
const Aws::Vector< int > & GetIntegerList() const
ParameterValue & WithInteger(int value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
ParameterValue & WithStringList(StringListT &&value)
const Aws::String & GetEnum() const
ParameterValue & AddEnumList(EnumListT &&value)
ParameterValue & WithEnum(EnumT &&value)
AWS_SECURITYHUB_API ParameterValue(Aws::Utils::Json::JsonView jsonValue)
ParameterValue & WithEnumList(EnumListT &&value)
ParameterValue & AddStringList(StringListT &&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