AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename ST = Aws::String>
56 void SetS(ST&& value) { m_sHasBeenSet = true; m_s = std::forward<ST>(value); }
57 template<typename ST = Aws::String>
58 AttributeValue& WithS(ST&& value) { SetS(std::forward<ST>(value)); return *this;}
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) { m_nHasBeenSet = true; m_n = std::forward<NT>(value); }
72 template<typename NT = Aws::String>
73 AttributeValue& WithN(NT&& value) { SetN(std::forward<NT>(value)); return *this;}
75
77
81 inline const Aws::Utils::ByteBuffer& GetB() const { return m_b; }
82 inline bool BHasBeenSet() const { return m_bHasBeenSet; }
83 template<typename BT = Aws::Utils::ByteBuffer>
84 void SetB(BT&& value) { m_bHasBeenSet = true; m_b = std::forward<BT>(value); }
85 template<typename BT = Aws::Utils::ByteBuffer>
86 AttributeValue& WithB(BT&& value) { SetB(std::forward<BT>(value)); return *this;}
88
90
94 inline const Aws::Vector<Aws::String>& GetSS() const { return m_sS; }
95 inline bool SSHasBeenSet() const { return m_sSHasBeenSet; }
96 template<typename SST = Aws::Vector<Aws::String>>
97 void SetSS(SST&& value) { m_sSHasBeenSet = true; m_sS = std::forward<SST>(value); }
98 template<typename SST = Aws::Vector<Aws::String>>
99 AttributeValue& WithSS(SST&& value) { SetSS(std::forward<SST>(value)); return *this;}
100 template<typename SST = Aws::String>
101 AttributeValue& AddSS(SST&& value) { m_sSHasBeenSet = true; m_sS.emplace_back(std::forward<SST>(value)); return *this; }
103
105
112 inline const Aws::Vector<Aws::String>& GetNS() const { return m_nS; }
113 inline bool NSHasBeenSet() const { return m_nSHasBeenSet; }
114 template<typename NST = Aws::Vector<Aws::String>>
115 void SetNS(NST&& value) { m_nSHasBeenSet = true; m_nS = std::forward<NST>(value); }
116 template<typename NST = Aws::Vector<Aws::String>>
117 AttributeValue& WithNS(NST&& value) { SetNS(std::forward<NST>(value)); return *this;}
118 template<typename NST = Aws::String>
119 AttributeValue& AddNS(NST&& value) { m_nSHasBeenSet = true; m_nS.emplace_back(std::forward<NST>(value)); return *this; }
121
123
127 inline const Aws::Vector<Aws::Utils::ByteBuffer>& GetBS() const { return m_bS; }
128 inline bool BSHasBeenSet() const { return m_bSHasBeenSet; }
129 template<typename BST = Aws::Vector<Aws::Utils::ByteBuffer>>
130 void SetBS(BST&& value) { m_bSHasBeenSet = true; m_bS = std::forward<BST>(value); }
131 template<typename BST = Aws::Vector<Aws::Utils::ByteBuffer>>
132 AttributeValue& WithBS(BST&& value) { SetBS(std::forward<BST>(value)); return *this;}
133 template<typename BST = Aws::Utils::ByteBuffer>
134 AttributeValue& AddBS(BST&& value) { m_bSHasBeenSet = true; m_bS.emplace_back(std::forward<BST>(value)); return *this; }
136
138
142 inline const Aws::Map<Aws::String, AttributeValue>& GetM() const { return m_m; }
143 inline bool MHasBeenSet() const { return m_mHasBeenSet; }
144 template<typename MT = Aws::Map<Aws::String, AttributeValue>>
145 void SetM(MT&& value) { m_mHasBeenSet = true; m_m = std::forward<MT>(value); }
146 template<typename MT = Aws::Map<Aws::String, AttributeValue>>
147 AttributeValue& WithM(MT&& value) { SetM(std::forward<MT>(value)); return *this;}
148 template<typename MKeyT = Aws::String, typename MValueT = AttributeValue>
149 AttributeValue& AddM(MKeyT&& key, MValueT&& value) {
150 m_mHasBeenSet = true; m_m.emplace(std::forward<MKeyT>(key), std::forward<MValueT>(value)); return *this;
151 }
153
155
159 inline const Aws::Vector<AttributeValue>& GetL() const { return m_l; }
160 inline bool LHasBeenSet() const { return m_lHasBeenSet; }
161 template<typename LT = Aws::Vector<AttributeValue>>
162 void SetL(LT&& value) { m_lHasBeenSet = true; m_l = std::forward<LT>(value); }
163 template<typename LT = Aws::Vector<AttributeValue>>
164 AttributeValue& WithL(LT&& value) { SetL(std::forward<LT>(value)); return *this;}
165 template<typename LT = AttributeValue>
166 AttributeValue& AddL(LT&& value) { m_lHasBeenSet = true; m_l.emplace_back(std::forward<LT>(value)); return *this; }
168
170
174 inline bool GetNULL() const { return m_nULL; }
175 inline bool NULLHasBeenSet() const { return m_nULLHasBeenSet; }
176 inline void SetNULL(bool value) { m_nULLHasBeenSet = true; m_nULL = value; }
177 inline AttributeValue& WithNULL(bool value) { SetNULL(value); return *this;}
179
181
185 inline bool GetBOOL() const { return m_bOOL; }
186 inline bool BOOLHasBeenSet() const { return m_bOOLHasBeenSet; }
187 inline void SetBOOL(bool value) { m_bOOLHasBeenSet = true; m_bOOL = value; }
188 inline AttributeValue& WithBOOL(bool value) { SetBOOL(value); return *this;}
190 private:
191
192 Aws::String m_s;
193 bool m_sHasBeenSet = false;
194
195 Aws::String m_n;
196 bool m_nHasBeenSet = false;
197
199 bool m_bHasBeenSet = false;
200
202 bool m_sSHasBeenSet = false;
203
205 bool m_nSHasBeenSet = false;
206
208 bool m_bSHasBeenSet = false;
209
211 bool m_mHasBeenSet = false;
212
214 bool m_lHasBeenSet = false;
215
216 bool m_nULL{false};
217 bool m_nULLHasBeenSet = false;
218
219 bool m_bOOL{false};
220 bool m_bOOLHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace DynamoDBStreams
225} // 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
AttributeValue & WithSS(SST &&value)
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