AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
AttributeValue.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/dynamodbstreams/DynamoDBStreams_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DynamoDBStreams {
23namespace Model {
24
36 public:
37 AWS_DYNAMODBSTREAMS_API AttributeValue() = default;
38 AWS_DYNAMODBSTREAMS_API AttributeValue(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DYNAMODBSTREAMS_API AttributeValue& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline const Aws::String& GetS() const { return m_s; }
48 inline bool SHasBeenSet() const { return m_sHasBeenSet; }
49 template <typename ST = Aws::String>
50 void SetS(ST&& value) {
51 m_sHasBeenSet = true;
52 m_s = std::forward<ST>(value);
53 }
54 template <typename ST = Aws::String>
55 AttributeValue& WithS(ST&& value) {
56 SetS(std::forward<ST>(value));
57 return *this;
58 }
60
62
68 inline const Aws::String& GetN() const { return m_n; }
69 inline bool NHasBeenSet() const { return m_nHasBeenSet; }
70 template <typename NT = Aws::String>
71 void SetN(NT&& value) {
72 m_nHasBeenSet = true;
73 m_n = std::forward<NT>(value);
74 }
75 template <typename NT = Aws::String>
76 AttributeValue& WithN(NT&& value) {
77 SetN(std::forward<NT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::Utils::ByteBuffer& GetB() const { return m_b; }
88 inline bool BHasBeenSet() const { return m_bHasBeenSet; }
89 template <typename BT = Aws::Utils::ByteBuffer>
90 void SetB(BT&& value) {
91 m_bHasBeenSet = true;
92 m_b = std::forward<BT>(value);
93 }
94 template <typename BT = Aws::Utils::ByteBuffer>
95 AttributeValue& WithB(BT&& value) {
96 SetB(std::forward<BT>(value));
97 return *this;
98 }
100
102
106 inline const Aws::Vector<Aws::String>& GetSS() const { return m_sS; }
107 inline bool SSHasBeenSet() const { return m_sSHasBeenSet; }
108 template <typename SST = Aws::Vector<Aws::String>>
109 void SetSS(SST&& value) {
110 m_sSHasBeenSet = true;
111 m_sS = std::forward<SST>(value);
112 }
113 template <typename SST = Aws::Vector<Aws::String>>
114 AttributeValue& WithSS(SST&& value) {
115 SetSS(std::forward<SST>(value));
116 return *this;
117 }
118 template <typename SST = Aws::String>
119 AttributeValue& AddSS(SST&& value) {
120 m_sSHasBeenSet = true;
121 m_sS.emplace_back(std::forward<SST>(value));
122 return *this;
123 }
125
127
134 inline const Aws::Vector<Aws::String>& GetNS() const { return m_nS; }
135 inline bool NSHasBeenSet() const { return m_nSHasBeenSet; }
136 template <typename NST = Aws::Vector<Aws::String>>
137 void SetNS(NST&& value) {
138 m_nSHasBeenSet = true;
139 m_nS = std::forward<NST>(value);
140 }
141 template <typename NST = Aws::Vector<Aws::String>>
142 AttributeValue& WithNS(NST&& value) {
143 SetNS(std::forward<NST>(value));
144 return *this;
145 }
146 template <typename NST = Aws::String>
147 AttributeValue& AddNS(NST&& value) {
148 m_nSHasBeenSet = true;
149 m_nS.emplace_back(std::forward<NST>(value));
150 return *this;
151 }
153
155
159 inline const Aws::Vector<Aws::Utils::ByteBuffer>& GetBS() const { return m_bS; }
160 inline bool BSHasBeenSet() const { return m_bSHasBeenSet; }
161 template <typename BST = Aws::Vector<Aws::Utils::ByteBuffer>>
162 void SetBS(BST&& value) {
163 m_bSHasBeenSet = true;
164 m_bS = std::forward<BST>(value);
165 }
166 template <typename BST = Aws::Vector<Aws::Utils::ByteBuffer>>
167 AttributeValue& WithBS(BST&& value) {
168 SetBS(std::forward<BST>(value));
169 return *this;
170 }
171 template <typename BST = Aws::Utils::ByteBuffer>
172 AttributeValue& AddBS(BST&& value) {
173 m_bSHasBeenSet = true;
174 m_bS.emplace_back(std::forward<BST>(value));
175 return *this;
176 }
178
180
184 inline const Aws::Map<Aws::String, AttributeValue>& GetM() const { return m_m; }
185 inline bool MHasBeenSet() const { return m_mHasBeenSet; }
186 template <typename MT = Aws::Map<Aws::String, AttributeValue>>
187 void SetM(MT&& value) {
188 m_mHasBeenSet = true;
189 m_m = std::forward<MT>(value);
190 }
191 template <typename MT = Aws::Map<Aws::String, AttributeValue>>
192 AttributeValue& WithM(MT&& value) {
193 SetM(std::forward<MT>(value));
194 return *this;
195 }
196 template <typename MKeyT = Aws::String, typename MValueT = AttributeValue>
197 AttributeValue& AddM(MKeyT&& key, MValueT&& value) {
198 m_mHasBeenSet = true;
199 m_m.emplace(std::forward<MKeyT>(key), std::forward<MValueT>(value));
200 return *this;
201 }
203
205
209 inline const Aws::Vector<AttributeValue>& GetL() const { return m_l; }
210 inline bool LHasBeenSet() const { return m_lHasBeenSet; }
211 template <typename LT = Aws::Vector<AttributeValue>>
212 void SetL(LT&& value) {
213 m_lHasBeenSet = true;
214 m_l = std::forward<LT>(value);
215 }
216 template <typename LT = Aws::Vector<AttributeValue>>
217 AttributeValue& WithL(LT&& value) {
218 SetL(std::forward<LT>(value));
219 return *this;
220 }
221 template <typename LT = AttributeValue>
222 AttributeValue& AddL(LT&& value) {
223 m_lHasBeenSet = true;
224 m_l.emplace_back(std::forward<LT>(value));
225 return *this;
226 }
228
230
234 inline bool GetNULL() const { return m_nULL; }
235 inline bool NULLHasBeenSet() const { return m_nULLHasBeenSet; }
236 inline void SetNULL(bool value) {
237 m_nULLHasBeenSet = true;
238 m_nULL = value;
239 }
240 inline AttributeValue& WithNULL(bool value) {
241 SetNULL(value);
242 return *this;
243 }
245
247
251 inline bool GetBOOL() const { return m_bOOL; }
252 inline bool BOOLHasBeenSet() const { return m_bOOLHasBeenSet; }
253 inline void SetBOOL(bool value) {
254 m_bOOLHasBeenSet = true;
255 m_bOOL = value;
256 }
257 inline AttributeValue& WithBOOL(bool value) {
258 SetBOOL(value);
259 return *this;
260 }
262 private:
263 Aws::String m_s;
264
265 Aws::String m_n;
266
268
270
272
274
276
278
279 bool m_nULL{false};
280
281 bool m_bOOL{false};
282 bool m_sHasBeenSet = false;
283 bool m_nHasBeenSet = false;
284 bool m_bHasBeenSet = false;
285 bool m_sSHasBeenSet = false;
286 bool m_nSHasBeenSet = false;
287 bool m_bSHasBeenSet = false;
288 bool m_mHasBeenSet = false;
289 bool m_lHasBeenSet = false;
290 bool m_nULLHasBeenSet = false;
291 bool m_bOOLHasBeenSet = false;
292};
293
294} // namespace Model
295} // namespace DynamoDBStreams
296} // namespace Aws
const Aws::Utils::ByteBuffer & GetB() const
AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< AttributeValue > & GetL() const
const Aws::Vector< Aws::String > & GetSS() const
const Aws::Map< Aws::String, AttributeValue > & GetM() const
AWS_DYNAMODBSTREAMS_API AttributeValue()=default
AttributeValue & AddM(MKeyT &&key, MValueT &&value)
AWS_DYNAMODBSTREAMS_API AttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODBSTREAMS_API AttributeValue(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::Utils::ByteBuffer > & GetBS() const
const Aws::Vector< Aws::String > & GetNS() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue