AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttributeValue.h
1
6#pragma once
7#include <aws/dynamodbstreams/DynamoDBStreams_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DynamoDBStreams
25{
26namespace Model
27{
28
40 {
41 public:
42 AWS_DYNAMODBSTREAMS_API AttributeValue();
43 AWS_DYNAMODBSTREAMS_API AttributeValue(Aws::Utils::Json::JsonView jsonValue);
44 AWS_DYNAMODBSTREAMS_API AttributeValue& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const Aws::String& GetS() const{ return m_s; }
54 inline bool SHasBeenSet() const { return m_sHasBeenSet; }
55 inline void SetS(const Aws::String& value) { m_sHasBeenSet = true; m_s = value; }
56 inline void SetS(Aws::String&& value) { m_sHasBeenSet = true; m_s = std::move(value); }
57 inline void SetS(const char* value) { m_sHasBeenSet = true; m_s.assign(value); }
58 inline AttributeValue& WithS(const Aws::String& value) { SetS(value); return *this;}
59 inline AttributeValue& WithS(Aws::String&& value) { SetS(std::move(value)); return *this;}
60 inline AttributeValue& WithS(const char* value) { SetS(value); return *this;}
62
64
70 inline const Aws::String& GetN() const{ return m_n; }
71 inline bool NHasBeenSet() const { return m_nHasBeenSet; }
72 inline void SetN(const Aws::String& value) { m_nHasBeenSet = true; m_n = value; }
73 inline void SetN(Aws::String&& value) { m_nHasBeenSet = true; m_n = std::move(value); }
74 inline void SetN(const char* value) { m_nHasBeenSet = true; m_n.assign(value); }
75 inline AttributeValue& WithN(const Aws::String& value) { SetN(value); return *this;}
76 inline AttributeValue& WithN(Aws::String&& value) { SetN(std::move(value)); return *this;}
77 inline AttributeValue& WithN(const char* value) { SetN(value); return *this;}
79
81
85 inline const Aws::Utils::ByteBuffer& GetB() const{ return m_b; }
86 inline bool BHasBeenSet() const { return m_bHasBeenSet; }
87 inline void SetB(const Aws::Utils::ByteBuffer& value) { m_bHasBeenSet = true; m_b = value; }
88 inline void SetB(Aws::Utils::ByteBuffer&& value) { m_bHasBeenSet = true; m_b = std::move(value); }
89 inline AttributeValue& WithB(const Aws::Utils::ByteBuffer& value) { SetB(value); return *this;}
90 inline AttributeValue& WithB(Aws::Utils::ByteBuffer&& value) { SetB(std::move(value)); return *this;}
92
94
98 inline const Aws::Vector<Aws::String>& GetSS() const{ return m_sS; }
99 inline bool SSHasBeenSet() const { return m_sSHasBeenSet; }
100 inline void SetSS(const Aws::Vector<Aws::String>& value) { m_sSHasBeenSet = true; m_sS = value; }
101 inline void SetSS(Aws::Vector<Aws::String>&& value) { m_sSHasBeenSet = true; m_sS = std::move(value); }
102 inline AttributeValue& WithSS(const Aws::Vector<Aws::String>& value) { SetSS(value); return *this;}
103 inline AttributeValue& WithSS(Aws::Vector<Aws::String>&& value) { SetSS(std::move(value)); return *this;}
104 inline AttributeValue& AddSS(const Aws::String& value) { m_sSHasBeenSet = true; m_sS.push_back(value); return *this; }
105 inline AttributeValue& AddSS(Aws::String&& value) { m_sSHasBeenSet = true; m_sS.push_back(std::move(value)); return *this; }
106 inline AttributeValue& AddSS(const char* value) { m_sSHasBeenSet = true; m_sS.push_back(value); return *this; }
108
110
117 inline const Aws::Vector<Aws::String>& GetNS() const{ return m_nS; }
118 inline bool NSHasBeenSet() const { return m_nSHasBeenSet; }
119 inline void SetNS(const Aws::Vector<Aws::String>& value) { m_nSHasBeenSet = true; m_nS = value; }
120 inline void SetNS(Aws::Vector<Aws::String>&& value) { m_nSHasBeenSet = true; m_nS = std::move(value); }
121 inline AttributeValue& WithNS(const Aws::Vector<Aws::String>& value) { SetNS(value); return *this;}
122 inline AttributeValue& WithNS(Aws::Vector<Aws::String>&& value) { SetNS(std::move(value)); return *this;}
123 inline AttributeValue& AddNS(const Aws::String& value) { m_nSHasBeenSet = true; m_nS.push_back(value); return *this; }
124 inline AttributeValue& AddNS(Aws::String&& value) { m_nSHasBeenSet = true; m_nS.push_back(std::move(value)); return *this; }
125 inline AttributeValue& AddNS(const char* value) { m_nSHasBeenSet = true; m_nS.push_back(value); return *this; }
127
129
133 inline const Aws::Vector<Aws::Utils::ByteBuffer>& GetBS() const{ return m_bS; }
134 inline bool BSHasBeenSet() const { return m_bSHasBeenSet; }
135 inline void SetBS(const Aws::Vector<Aws::Utils::ByteBuffer>& value) { m_bSHasBeenSet = true; m_bS = value; }
136 inline void SetBS(Aws::Vector<Aws::Utils::ByteBuffer>&& value) { m_bSHasBeenSet = true; m_bS = std::move(value); }
137 inline AttributeValue& WithBS(const Aws::Vector<Aws::Utils::ByteBuffer>& value) { SetBS(value); return *this;}
138 inline AttributeValue& WithBS(Aws::Vector<Aws::Utils::ByteBuffer>&& value) { SetBS(std::move(value)); return *this;}
139 inline AttributeValue& AddBS(const Aws::Utils::ByteBuffer& value) { m_bSHasBeenSet = true; m_bS.push_back(value); return *this; }
140 inline AttributeValue& AddBS(Aws::Utils::ByteBuffer&& value) { m_bSHasBeenSet = true; m_bS.push_back(std::move(value)); return *this; }
142
144
148 inline const Aws::Map<Aws::String, AttributeValue>& GetM() const{ return m_m; }
149 inline bool MHasBeenSet() const { return m_mHasBeenSet; }
150 inline void SetM(const Aws::Map<Aws::String, AttributeValue>& value) { m_mHasBeenSet = true; m_m = value; }
151 inline void SetM(Aws::Map<Aws::String, AttributeValue>&& value) { m_mHasBeenSet = true; m_m = std::move(value); }
152 inline AttributeValue& WithM(const Aws::Map<Aws::String, AttributeValue>& value) { SetM(value); return *this;}
153 inline AttributeValue& WithM(Aws::Map<Aws::String, AttributeValue>&& value) { SetM(std::move(value)); return *this;}
154 inline AttributeValue& AddM(const Aws::String& key, const AttributeValue& value) { m_mHasBeenSet = true; m_m.emplace(key, value); return *this; }
155 inline AttributeValue& AddM(Aws::String&& key, const AttributeValue& value) { m_mHasBeenSet = true; m_m.emplace(std::move(key), value); return *this; }
156 inline AttributeValue& AddM(const Aws::String& key, AttributeValue&& value) { m_mHasBeenSet = true; m_m.emplace(key, std::move(value)); return *this; }
157 inline AttributeValue& AddM(Aws::String&& key, AttributeValue&& value) { m_mHasBeenSet = true; m_m.emplace(std::move(key), std::move(value)); return *this; }
158 inline AttributeValue& AddM(const char* key, AttributeValue&& value) { m_mHasBeenSet = true; m_m.emplace(key, std::move(value)); return *this; }
159 inline AttributeValue& AddM(const char* key, const AttributeValue& value) { m_mHasBeenSet = true; m_m.emplace(key, value); return *this; }
161
163
167 inline const Aws::Vector<AttributeValue>& GetL() const{ return m_l; }
168 inline bool LHasBeenSet() const { return m_lHasBeenSet; }
169 inline void SetL(const Aws::Vector<AttributeValue>& value) { m_lHasBeenSet = true; m_l = value; }
170 inline void SetL(Aws::Vector<AttributeValue>&& value) { m_lHasBeenSet = true; m_l = std::move(value); }
171 inline AttributeValue& WithL(const Aws::Vector<AttributeValue>& value) { SetL(value); return *this;}
172 inline AttributeValue& WithL(Aws::Vector<AttributeValue>&& value) { SetL(std::move(value)); return *this;}
173 inline AttributeValue& AddL(const AttributeValue& value) { m_lHasBeenSet = true; m_l.push_back(value); return *this; }
174 inline AttributeValue& AddL(AttributeValue&& value) { m_lHasBeenSet = true; m_l.push_back(std::move(value)); return *this; }
176
178
182 inline bool GetNULL() const{ return m_nULL; }
183 inline bool NULLHasBeenSet() const { return m_nULLHasBeenSet; }
184 inline void SetNULL(bool value) { m_nULLHasBeenSet = true; m_nULL = value; }
185 inline AttributeValue& WithNULL(bool value) { SetNULL(value); return *this;}
187
189
193 inline bool GetBOOL() const{ return m_bOOL; }
194 inline bool BOOLHasBeenSet() const { return m_bOOLHasBeenSet; }
195 inline void SetBOOL(bool value) { m_bOOLHasBeenSet = true; m_bOOL = value; }
196 inline AttributeValue& WithBOOL(bool value) { SetBOOL(value); return *this;}
198 private:
199
200 Aws::String m_s;
201 bool m_sHasBeenSet = false;
202
203 Aws::String m_n;
204 bool m_nHasBeenSet = false;
205
207 bool m_bHasBeenSet = false;
208
210 bool m_sSHasBeenSet = false;
211
213 bool m_nSHasBeenSet = false;
214
216 bool m_bSHasBeenSet = false;
217
219 bool m_mHasBeenSet = false;
220
222 bool m_lHasBeenSet = false;
223
224 bool m_nULL;
225 bool m_nULLHasBeenSet = false;
226
227 bool m_bOOL;
228 bool m_bOOLHasBeenSet = false;
229 };
230
231} // namespace Model
232} // namespace DynamoDBStreams
233} // namespace Aws
const Aws::Utils::ByteBuffer & GetB() const
AttributeValue & WithS(Aws::String &&value)
AttributeValue & AddSS(Aws::String &&value)
AWS_DYNAMODBSTREAMS_API Aws::Utils::Json::JsonValue Jsonize() const
AttributeValue & AddL(const AttributeValue &value)
const Aws::Vector< AttributeValue > & GetL() const
void SetBS(Aws::Vector< Aws::Utils::ByteBuffer > &&value)
AttributeValue & WithM(const Aws::Map< Aws::String, AttributeValue > &value)
AttributeValue & WithSS(const Aws::Vector< Aws::String > &value)
AttributeValue & AddM(Aws::String &&key, AttributeValue &&value)
const Aws::Vector< Aws::String > & GetSS() const
void SetN(const Aws::String &value)
AttributeValue & WithBS(const Aws::Vector< Aws::Utils::ByteBuffer > &value)
AttributeValue & WithN(const Aws::String &value)
AttributeValue & AddNS(Aws::String &&value)
AttributeValue & AddL(AttributeValue &&value)
AttributeValue & WithN(Aws::String &&value)
AttributeValue & AddSS(const char *value)
const Aws::Map< Aws::String, AttributeValue > & GetM() const
void SetB(Aws::Utils::ByteBuffer &&value)
AttributeValue & WithM(Aws::Map< Aws::String, AttributeValue > &&value)
AttributeValue & WithL(const Aws::Vector< AttributeValue > &value)
void SetM(Aws::Map< Aws::String, AttributeValue > &&value)
void SetNS(Aws::Vector< Aws::String > &&value)
AttributeValue & AddBS(Aws::Utils::ByteBuffer &&value)
AttributeValue & WithNS(const Aws::Vector< Aws::String > &value)
AttributeValue & AddNS(const Aws::String &value)
void SetB(const Aws::Utils::ByteBuffer &value)
AttributeValue & AddM(const char *key, const AttributeValue &value)
AttributeValue & WithNS(Aws::Vector< Aws::String > &&value)
AttributeValue & AddNS(const char *value)
AttributeValue & WithN(const char *value)
void SetL(const Aws::Vector< AttributeValue > &value)
AttributeValue & WithB(const Aws::Utils::ByteBuffer &value)
void SetS(const Aws::String &value)
AttributeValue & WithL(Aws::Vector< AttributeValue > &&value)
AWS_DYNAMODBSTREAMS_API AttributeValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODBSTREAMS_API AttributeValue(Aws::Utils::Json::JsonView jsonValue)
AttributeValue & AddM(const Aws::String &key, const AttributeValue &value)
void SetBS(const Aws::Vector< Aws::Utils::ByteBuffer > &value)
AttributeValue & AddM(const char *key, AttributeValue &&value)
AttributeValue & WithS(const Aws::String &value)
AttributeValue & WithS(const char *value)
AttributeValue & AddSS(const Aws::String &value)
void SetM(const Aws::Map< Aws::String, AttributeValue > &value)
void SetSS(Aws::Vector< Aws::String > &&value)
AttributeValue & WithB(Aws::Utils::ByteBuffer &&value)
AttributeValue & AddBS(const Aws::Utils::ByteBuffer &value)
AWS_DYNAMODBSTREAMS_API AttributeValue()
AttributeValue & WithBS(Aws::Vector< Aws::Utils::ByteBuffer > &&value)
void SetSS(const Aws::Vector< Aws::String > &value)
AttributeValue & AddM(Aws::String &&key, const AttributeValue &value)
void SetNS(const Aws::Vector< Aws::String > &value)
AttributeValue & WithSS(Aws::Vector< Aws::String > &&value)
void SetL(Aws::Vector< AttributeValue > &&value)
AttributeValue & AddM(const Aws::String &key, AttributeValue &&value)
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