AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KeysAndAttributes.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/dynamodb/model/AttributeValue.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 DynamoDB
25{
26namespace Model
27{
28
40 {
41 public:
42 AWS_DYNAMODB_API KeysAndAttributes();
43 AWS_DYNAMODB_API KeysAndAttributes(Aws::Utils::Json::JsonView jsonValue);
45 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const Aws::Vector<Aws::Map<Aws::String, AttributeValue>>& GetKeys() const{ return m_keys; }
54 inline bool KeysHasBeenSet() const { return m_keysHasBeenSet; }
55 inline void SetKeys(const Aws::Vector<Aws::Map<Aws::String, AttributeValue>>& value) { m_keysHasBeenSet = true; m_keys = value; }
56 inline void SetKeys(Aws::Vector<Aws::Map<Aws::String, AttributeValue>>&& value) { m_keysHasBeenSet = true; m_keys = std::move(value); }
58 inline KeysAndAttributes& WithKeys(Aws::Vector<Aws::Map<Aws::String, AttributeValue>>&& value) { SetKeys(std::move(value)); return *this;}
59 inline KeysAndAttributes& AddKeys(const Aws::Map<Aws::String, AttributeValue>& value) { m_keysHasBeenSet = true; m_keys.push_back(value); return *this; }
60 inline KeysAndAttributes& AddKeys(Aws::Map<Aws::String, AttributeValue>&& value) { m_keysHasBeenSet = true; m_keys.push_back(std::move(value)); return *this; }
62
64
70 inline const Aws::Vector<Aws::String>& GetAttributesToGet() const{ return m_attributesToGet; }
71 inline bool AttributesToGetHasBeenSet() const { return m_attributesToGetHasBeenSet; }
72 inline void SetAttributesToGet(const Aws::Vector<Aws::String>& value) { m_attributesToGetHasBeenSet = true; m_attributesToGet = value; }
73 inline void SetAttributesToGet(Aws::Vector<Aws::String>&& value) { m_attributesToGetHasBeenSet = true; m_attributesToGet = std::move(value); }
75 inline KeysAndAttributes& WithAttributesToGet(Aws::Vector<Aws::String>&& value) { SetAttributesToGet(std::move(value)); return *this;}
76 inline KeysAndAttributes& AddAttributesToGet(const Aws::String& value) { m_attributesToGetHasBeenSet = true; m_attributesToGet.push_back(value); return *this; }
77 inline KeysAndAttributes& AddAttributesToGet(Aws::String&& value) { m_attributesToGetHasBeenSet = true; m_attributesToGet.push_back(std::move(value)); return *this; }
78 inline KeysAndAttributes& AddAttributesToGet(const char* value) { m_attributesToGetHasBeenSet = true; m_attributesToGet.push_back(value); return *this; }
80
82
87 inline bool GetConsistentRead() const{ return m_consistentRead; }
88 inline bool ConsistentReadHasBeenSet() const { return m_consistentReadHasBeenSet; }
89 inline void SetConsistentRead(bool value) { m_consistentReadHasBeenSet = true; m_consistentRead = value; }
90 inline KeysAndAttributes& WithConsistentRead(bool value) { SetConsistentRead(value); return *this;}
92
94
104 inline const Aws::String& GetProjectionExpression() const{ return m_projectionExpression; }
105 inline bool ProjectionExpressionHasBeenSet() const { return m_projectionExpressionHasBeenSet; }
106 inline void SetProjectionExpression(const Aws::String& value) { m_projectionExpressionHasBeenSet = true; m_projectionExpression = value; }
107 inline void SetProjectionExpression(Aws::String&& value) { m_projectionExpressionHasBeenSet = true; m_projectionExpression = std::move(value); }
108 inline void SetProjectionExpression(const char* value) { m_projectionExpressionHasBeenSet = true; m_projectionExpression.assign(value); }
110 inline KeysAndAttributes& WithProjectionExpression(Aws::String&& value) { SetProjectionExpression(std::move(value)); return *this;}
111 inline KeysAndAttributes& WithProjectionExpression(const char* value) { SetProjectionExpression(value); return *this;}
113
115
140 inline const Aws::Map<Aws::String, Aws::String>& GetExpressionAttributeNames() const{ return m_expressionAttributeNames; }
141 inline bool ExpressionAttributeNamesHasBeenSet() const { return m_expressionAttributeNamesHasBeenSet; }
142 inline void SetExpressionAttributeNames(const Aws::Map<Aws::String, Aws::String>& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames = value; }
143 inline void SetExpressionAttributeNames(Aws::Map<Aws::String, Aws::String>&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames = std::move(value); }
146 inline KeysAndAttributes& AddExpressionAttributeNames(const Aws::String& key, const Aws::String& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, value); return *this; }
147 inline KeysAndAttributes& AddExpressionAttributeNames(Aws::String&& key, const Aws::String& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), value); return *this; }
148 inline KeysAndAttributes& AddExpressionAttributeNames(const Aws::String& key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, std::move(value)); return *this; }
149 inline KeysAndAttributes& AddExpressionAttributeNames(Aws::String&& key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), std::move(value)); return *this; }
150 inline KeysAndAttributes& AddExpressionAttributeNames(const char* key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, std::move(value)); return *this; }
151 inline KeysAndAttributes& AddExpressionAttributeNames(Aws::String&& key, const char* value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), value); return *this; }
152 inline KeysAndAttributes& AddExpressionAttributeNames(const char* key, const char* value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, value); return *this; }
154 private:
155
157 bool m_keysHasBeenSet = false;
158
159 Aws::Vector<Aws::String> m_attributesToGet;
160 bool m_attributesToGetHasBeenSet = false;
161
162 bool m_consistentRead;
163 bool m_consistentReadHasBeenSet = false;
164
165 Aws::String m_projectionExpression;
166 bool m_projectionExpressionHasBeenSet = false;
167
168 Aws::Map<Aws::String, Aws::String> m_expressionAttributeNames;
169 bool m_expressionAttributeNamesHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace DynamoDB
174} // namespace Aws
AWS_DYNAMODB_API KeysAndAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
KeysAndAttributes & WithKeys(const Aws::Vector< Aws::Map< Aws::String, AttributeValue > > &value)
const Aws::Map< Aws::String, Aws::String > & GetExpressionAttributeNames() const
AWS_DYNAMODB_API KeysAndAttributes(Aws::Utils::Json::JsonView jsonValue)
KeysAndAttributes & WithExpressionAttributeNames(Aws::Map< Aws::String, Aws::String > &&value)
void SetKeys(const Aws::Vector< Aws::Map< Aws::String, AttributeValue > > &value)
KeysAndAttributes & AddAttributesToGet(Aws::String &&value)
KeysAndAttributes & WithExpressionAttributeNames(const Aws::Map< Aws::String, Aws::String > &value)
KeysAndAttributes & WithConsistentRead(bool value)
void SetKeys(Aws::Vector< Aws::Map< Aws::String, AttributeValue > > &&value)
const Aws::Vector< Aws::Map< Aws::String, AttributeValue > > & GetKeys() const
KeysAndAttributes & AddExpressionAttributeNames(const Aws::String &key, const Aws::String &value)
const Aws::Vector< Aws::String > & GetAttributesToGet() const
KeysAndAttributes & WithKeys(Aws::Vector< Aws::Map< Aws::String, AttributeValue > > &&value)
void SetExpressionAttributeNames(const Aws::Map< Aws::String, Aws::String > &value)
KeysAndAttributes & WithAttributesToGet(Aws::Vector< Aws::String > &&value)
KeysAndAttributes & AddAttributesToGet(const Aws::String &value)
KeysAndAttributes & WithProjectionExpression(const Aws::String &value)
KeysAndAttributes & WithProjectionExpression(Aws::String &&value)
void SetAttributesToGet(Aws::Vector< Aws::String > &&value)
void SetProjectionExpression(const Aws::String &value)
KeysAndAttributes & AddExpressionAttributeNames(Aws::String &&key, const char *value)
KeysAndAttributes & AddExpressionAttributeNames(const char *key, const char *value)
KeysAndAttributes & AddExpressionAttributeNames(const Aws::String &key, Aws::String &&value)
KeysAndAttributes & AddKeys(const Aws::Map< Aws::String, AttributeValue > &value)
KeysAndAttributes & AddAttributesToGet(const char *value)
KeysAndAttributes & AddExpressionAttributeNames(const char *key, Aws::String &&value)
KeysAndAttributes & AddExpressionAttributeNames(Aws::String &&key, Aws::String &&value)
void SetProjectionExpression(const char *value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
KeysAndAttributes & AddExpressionAttributeNames(Aws::String &&key, const Aws::String &value)
KeysAndAttributes & WithProjectionExpression(const char *value)
KeysAndAttributes & AddKeys(Aws::Map< Aws::String, AttributeValue > &&value)
KeysAndAttributes & WithAttributesToGet(const Aws::Vector< Aws::String > &value)
const Aws::String & GetProjectionExpression() const
void SetProjectionExpression(Aws::String &&value)
void SetAttributesToGet(const Aws::Vector< Aws::String > &value)
void SetExpressionAttributeNames(Aws::Map< Aws::String, Aws::String > &&value)
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