AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttributeValue.h
1
6#pragma once
7
8#include <aws/dynamodb/DynamoDB_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/Array.h>
12#include <aws/core/utils/json/JsonSerializer.h>
13
14namespace Aws
15{
16namespace DynamoDB
17{
18namespace Model
19{
20class AttributeValueValue;
21
23
25class AWS_DYNAMODB_API AttributeValue
26{
27public:
29 explicit AttributeValue(const Aws::String& s) { SetS(s); }
30 explicit AttributeValue(const Aws::Vector<Aws::String>& ss) { SetSS(ss); }
31 AttributeValue(Aws::Utils::Json::JsonView jsonValue) { *this = jsonValue; }
32
34 const Aws::String GetS() const;
41 AttributeValue& SetS(const char* n) { return SetS(Aws::String(n)); }
42
44 const Aws::String GetN() const;
52 AttributeValue& SetN(const char* n) { return SetN(Aws::String(n)); }
56 AttributeValue& SetN(const int nItem) { return SetN(Aws::String(std::to_string(nItem).c_str())); }
60 AttributeValue& SetN(const float nItem) { return SetN(Aws::String(std::to_string(nItem).c_str())); }
64 AttributeValue& SetN(const double nItem) { return SetN(Aws::String(std::to_string(nItem).c_str())); }
65
72
86 AttributeValue& AddSItem(const char* sItem) { return AddSItem(Aws::String(sItem)); }
87
101 AttributeValue& AddNItem(const char* nItem) { return AddNItem(Aws::String(nItem)); }
102
116 AttributeValue& AddBItem(const unsigned char* bItem, size_t size);
117
123 AttributeValue& SetM(const Aws::Map<Aws::String, const std::shared_ptr<AttributeValue>>& map);
127 AttributeValue& AddMEntry(const Aws::String& key, const std::shared_ptr<AttributeValue>& value);
131 AttributeValue& AddMEntry(const char* key, const std::shared_ptr<AttributeValue>& value) { return AddMEntry(Aws::String(key), value); }
132
138 AttributeValue& SetL(const Aws::Vector<std::shared_ptr<AttributeValue>>& list);
142 AttributeValue& AddLItem(const std::shared_ptr<AttributeValue>& listItem);
143
145 bool GetBool() const;
150
152 bool GetNull() const;
157
159
160 bool operator == (const AttributeValue& other) const;
161 inline bool operator != (const AttributeValue& other) const { return !(*this == other); }
162
166
167private:
168 std::shared_ptr<AttributeValueValue> m_value;
169};
170
171} // namespace Model
172} // namespace DynamoDB
173} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
const Aws::Vector< Aws::String > GetNS() const
returns the Number Vector if the value is specialized to this type, otherwise an empty Vector
AttributeValue(Aws::Utils::Json::JsonView jsonValue)
AttributeValue & SetBool(bool value)
AttributeValue & SetN(const char *n)
AttributeValue & SetNull(bool value)
Aws::String SerializeAttribute() const
AttributeValue & SetN(const Aws::String &n)
const Aws::String GetS() const
returns the String value if the value is specialized to this type, otherwise an empty String
AttributeValue & AddSItem(const char *sItem)
AttributeValue & SetN(const double nItem)
AttributeValue(const Aws::Vector< Aws::String > &ss)
AttributeValue & AddBItem(const unsigned char *bItem, size_t size)
AttributeValue & SetB(const Aws::Utils::ByteBuffer &b)
AttributeValue & SetS(const char *n)
AttributeValue & AddBItem(const Aws::Utils::ByteBuffer &bItem)
const Aws::Map< Aws::String, const std::shared_ptr< AttributeValue > > GetM() const
returns the Attribute Map if the value is specialized to this type, otherwise an empty Map
AttributeValue & AddLItem(const std::shared_ptr< AttributeValue > &listItem)
AttributeValue & SetN(const float nItem)
AttributeValue & AddNItem(const Aws::String &nItem)
const Aws::Utils::ByteBuffer GetB() const
returns the ByteBuffer if the value is specialized to this type, otherwise an empty Buffer
AttributeValue & AddMEntry(const char *key, const std::shared_ptr< AttributeValue > &value)
AttributeValue & AddMEntry(const Aws::String &key, const std::shared_ptr< AttributeValue > &value)
AttributeValue & AddNItem(const char *nItem)
const Aws::String GetN() const
returns the Number value if the value is specialized to this type, otherwise an empty String
AttributeValue & AddSItem(const Aws::String &sItem)
bool GetBool() const
returns the boolean if the value is specialized to this type, otherwise false
AttributeValue & SetSS(const Aws::Vector< Aws::String > &ss)
AttributeValue & SetM(const Aws::Map< Aws::String, const std::shared_ptr< AttributeValue > > &map)
AttributeValue & SetS(const Aws::String &s)
AttributeValue & SetN(const int nItem)
Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< std::shared_ptr< AttributeValue > > GetL() const
returns the Attribute List if the value is specialized to this type, otherwise an empty Vector
const Aws::Vector< Aws::String > GetSS() const
returns the String Vector if the value is specialized to this type, otherwise an empty Vector
AttributeValue & SetNS(const Aws::Vector< Aws::String > &ns)
const Aws::Vector< Aws::Utils::ByteBuffer > GetBS() const
returns the ByteBuffer Vector if the value is specialized to this type, otherwise an empty Vector
AttributeValue & SetL(const Aws::Vector< std::shared_ptr< AttributeValue > > &list)
bool GetNull() const
returns Null-Set-Value if the value is specialized to this type, otherwise false
AttributeValue & SetBS(const Aws::Vector< Aws::Utils::ByteBuffer > &bs)
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