AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Put.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/dynamodb/model/ReturnValuesOnConditionCheckFailure.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
35 class Put
36 {
37 public:
38 AWS_DYNAMODB_API Put();
39 AWS_DYNAMODB_API Put(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DYNAMODB_API Put& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
53 inline const Aws::Map<Aws::String, AttributeValue>& GetItem() const{ return m_item; }
54 inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; }
55 inline void SetItem(const Aws::Map<Aws::String, AttributeValue>& value) { m_itemHasBeenSet = true; m_item = value; }
56 inline void SetItem(Aws::Map<Aws::String, AttributeValue>&& value) { m_itemHasBeenSet = true; m_item = std::move(value); }
57 inline Put& WithItem(const Aws::Map<Aws::String, AttributeValue>& value) { SetItem(value); return *this;}
58 inline Put& WithItem(Aws::Map<Aws::String, AttributeValue>&& value) { SetItem(std::move(value)); return *this;}
59 inline Put& AddItem(const Aws::String& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; }
60 inline Put& AddItem(Aws::String&& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), value); return *this; }
61 inline Put& AddItem(const Aws::String& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; }
62 inline Put& AddItem(Aws::String&& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), std::move(value)); return *this; }
63 inline Put& AddItem(const char* key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; }
64 inline Put& AddItem(const char* key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; }
66
68
72 inline const Aws::String& GetTableName() const{ return m_tableName; }
73 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
74 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
75 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
76 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
77 inline Put& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
78 inline Put& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
79 inline Put& WithTableName(const char* value) { SetTableName(value); return *this;}
81
83
87 inline const Aws::String& GetConditionExpression() const{ return m_conditionExpression; }
88 inline bool ConditionExpressionHasBeenSet() const { return m_conditionExpressionHasBeenSet; }
89 inline void SetConditionExpression(const Aws::String& value) { m_conditionExpressionHasBeenSet = true; m_conditionExpression = value; }
90 inline void SetConditionExpression(Aws::String&& value) { m_conditionExpressionHasBeenSet = true; m_conditionExpression = std::move(value); }
91 inline void SetConditionExpression(const char* value) { m_conditionExpressionHasBeenSet = true; m_conditionExpression.assign(value); }
92 inline Put& WithConditionExpression(const Aws::String& value) { SetConditionExpression(value); return *this;}
93 inline Put& WithConditionExpression(Aws::String&& value) { SetConditionExpression(std::move(value)); return *this;}
94 inline Put& WithConditionExpression(const char* value) { SetConditionExpression(value); return *this;}
96
98
101 inline const Aws::Map<Aws::String, Aws::String>& GetExpressionAttributeNames() const{ return m_expressionAttributeNames; }
102 inline bool ExpressionAttributeNamesHasBeenSet() const { return m_expressionAttributeNamesHasBeenSet; }
103 inline void SetExpressionAttributeNames(const Aws::Map<Aws::String, Aws::String>& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames = value; }
104 inline void SetExpressionAttributeNames(Aws::Map<Aws::String, Aws::String>&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames = std::move(value); }
107 inline Put& AddExpressionAttributeNames(const Aws::String& key, const Aws::String& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, value); return *this; }
108 inline Put& AddExpressionAttributeNames(Aws::String&& key, const Aws::String& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), value); return *this; }
109 inline Put& AddExpressionAttributeNames(const Aws::String& key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, std::move(value)); return *this; }
110 inline Put& AddExpressionAttributeNames(Aws::String&& key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), std::move(value)); return *this; }
111 inline Put& AddExpressionAttributeNames(const char* key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, std::move(value)); return *this; }
112 inline Put& AddExpressionAttributeNames(Aws::String&& key, const char* value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), value); return *this; }
113 inline Put& AddExpressionAttributeNames(const char* key, const char* value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, value); return *this; }
115
117
120 inline const Aws::Map<Aws::String, AttributeValue>& GetExpressionAttributeValues() const{ return m_expressionAttributeValues; }
121 inline bool ExpressionAttributeValuesHasBeenSet() const { return m_expressionAttributeValuesHasBeenSet; }
122 inline void SetExpressionAttributeValues(const Aws::Map<Aws::String, AttributeValue>& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues = value; }
123 inline void SetExpressionAttributeValues(Aws::Map<Aws::String, AttributeValue>&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues = std::move(value); }
126 inline Put& AddExpressionAttributeValues(const Aws::String& key, const AttributeValue& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, value); return *this; }
127 inline Put& AddExpressionAttributeValues(Aws::String&& key, const AttributeValue& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(std::move(key), value); return *this; }
128 inline Put& AddExpressionAttributeValues(const Aws::String& key, AttributeValue&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, std::move(value)); return *this; }
129 inline Put& AddExpressionAttributeValues(Aws::String&& key, AttributeValue&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(std::move(key), std::move(value)); return *this; }
130 inline Put& AddExpressionAttributeValues(const char* key, AttributeValue&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, std::move(value)); return *this; }
131 inline Put& AddExpressionAttributeValues(const char* key, const AttributeValue& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, value); return *this; }
133
135
141 inline const ReturnValuesOnConditionCheckFailure& GetReturnValuesOnConditionCheckFailure() const{ return m_returnValuesOnConditionCheckFailure; }
142 inline bool ReturnValuesOnConditionCheckFailureHasBeenSet() const { return m_returnValuesOnConditionCheckFailureHasBeenSet; }
143 inline void SetReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure& value) { m_returnValuesOnConditionCheckFailureHasBeenSet = true; m_returnValuesOnConditionCheckFailure = value; }
144 inline void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure&& value) { m_returnValuesOnConditionCheckFailureHasBeenSet = true; m_returnValuesOnConditionCheckFailure = std::move(value); }
148 private:
149
151 bool m_itemHasBeenSet = false;
152
153 Aws::String m_tableName;
154 bool m_tableNameHasBeenSet = false;
155
156 Aws::String m_conditionExpression;
157 bool m_conditionExpressionHasBeenSet = false;
158
159 Aws::Map<Aws::String, Aws::String> m_expressionAttributeNames;
160 bool m_expressionAttributeNamesHasBeenSet = false;
161
162 Aws::Map<Aws::String, AttributeValue> m_expressionAttributeValues;
163 bool m_expressionAttributeValuesHasBeenSet = false;
164
165 ReturnValuesOnConditionCheckFailure m_returnValuesOnConditionCheckFailure;
166 bool m_returnValuesOnConditionCheckFailureHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace DynamoDB
171} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
Put & WithReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure &value)
Definition Put.h:145
void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure &&value)
Definition Put.h:144
void SetConditionExpression(const Aws::String &value)
Definition Put.h:89
Put & AddItem(const char *key, AttributeValue &&value)
Definition Put.h:63
Put & WithExpressionAttributeValues(const Aws::Map< Aws::String, AttributeValue > &value)
Definition Put.h:124
bool ItemHasBeenSet() const
Definition Put.h:54
void SetReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure &value)
Definition Put.h:143
AWS_DYNAMODB_API Put & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TableNameHasBeenSet() const
Definition Put.h:73
void SetExpressionAttributeNames(Aws::Map< Aws::String, Aws::String > &&value)
Definition Put.h:104
const Aws::String & GetConditionExpression() const
Definition Put.h:87
void SetExpressionAttributeNames(const Aws::Map< Aws::String, Aws::String > &value)
Definition Put.h:103
Put & AddItem(Aws::String &&key, AttributeValue &&value)
Definition Put.h:62
AWS_DYNAMODB_API Put(Aws::Utils::Json::JsonView jsonValue)
Put & AddExpressionAttributeNames(Aws::String &&key, const Aws::String &value)
Definition Put.h:108
Put & AddExpressionAttributeValues(const char *key, AttributeValue &&value)
Definition Put.h:130
bool ExpressionAttributeNamesHasBeenSet() const
Definition Put.h:102
Put & AddExpressionAttributeNames(Aws::String &&key, Aws::String &&value)
Definition Put.h:110
Put & AddExpressionAttributeValues(Aws::String &&key, AttributeValue &&value)
Definition Put.h:129
void SetTableName(const Aws::String &value)
Definition Put.h:74
const Aws::Map< Aws::String, AttributeValue > & GetItem() const
Definition Put.h:53
Put & AddExpressionAttributeNames(const char *key, const char *value)
Definition Put.h:113
void SetTableName(const char *value)
Definition Put.h:76
Put & AddExpressionAttributeNames(const Aws::String &key, const Aws::String &value)
Definition Put.h:107
AWS_DYNAMODB_API Put()
Put & AddExpressionAttributeValues(const Aws::String &key, const AttributeValue &value)
Definition Put.h:126
bool ConditionExpressionHasBeenSet() const
Definition Put.h:88
const Aws::Map< Aws::String, AttributeValue > & GetExpressionAttributeValues() const
Definition Put.h:120
void SetItem(const Aws::Map< Aws::String, AttributeValue > &value)
Definition Put.h:55
void SetExpressionAttributeValues(const Aws::Map< Aws::String, AttributeValue > &value)
Definition Put.h:122
Put & WithConditionExpression(Aws::String &&value)
Definition Put.h:93
const ReturnValuesOnConditionCheckFailure & GetReturnValuesOnConditionCheckFailure() const
Definition Put.h:141
Put & WithReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure &&value)
Definition Put.h:146
Put & WithTableName(const char *value)
Definition Put.h:79
Put & WithItem(const Aws::Map< Aws::String, AttributeValue > &value)
Definition Put.h:57
Put & AddExpressionAttributeNames(const Aws::String &key, Aws::String &&value)
Definition Put.h:109
void SetConditionExpression(const char *value)
Definition Put.h:91
Put & AddItem(const Aws::String &key, AttributeValue &&value)
Definition Put.h:61
Put & AddExpressionAttributeValues(const Aws::String &key, AttributeValue &&value)
Definition Put.h:128
bool ExpressionAttributeValuesHasBeenSet() const
Definition Put.h:121
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
Put & WithConditionExpression(const char *value)
Definition Put.h:94
Put & AddExpressionAttributeValues(Aws::String &&key, const AttributeValue &value)
Definition Put.h:127
const Aws::Map< Aws::String, Aws::String > & GetExpressionAttributeNames() const
Definition Put.h:101
Put & WithExpressionAttributeNames(const Aws::Map< Aws::String, Aws::String > &value)
Definition Put.h:105
Put & AddItem(const Aws::String &key, const AttributeValue &value)
Definition Put.h:59
Put & AddExpressionAttributeValues(const char *key, const AttributeValue &value)
Definition Put.h:131
Put & AddExpressionAttributeNames(Aws::String &&key, const char *value)
Definition Put.h:112
void SetConditionExpression(Aws::String &&value)
Definition Put.h:90
Put & WithExpressionAttributeNames(Aws::Map< Aws::String, Aws::String > &&value)
Definition Put.h:106
Put & AddExpressionAttributeNames(const char *key, Aws::String &&value)
Definition Put.h:111
Put & AddItem(Aws::String &&key, const AttributeValue &value)
Definition Put.h:60
const Aws::String & GetTableName() const
Definition Put.h:72
Put & WithExpressionAttributeValues(Aws::Map< Aws::String, AttributeValue > &&value)
Definition Put.h:125
Put & AddItem(const char *key, const AttributeValue &value)
Definition Put.h:64
Put & WithTableName(Aws::String &&value)
Definition Put.h:78
void SetExpressionAttributeValues(Aws::Map< Aws::String, AttributeValue > &&value)
Definition Put.h:123
void SetItem(Aws::Map< Aws::String, AttributeValue > &&value)
Definition Put.h:56
Put & WithConditionExpression(const Aws::String &value)
Definition Put.h:92
Put & WithItem(Aws::Map< Aws::String, AttributeValue > &&value)
Definition Put.h:58
void SetTableName(Aws::String &&value)
Definition Put.h:75
Put & WithTableName(const Aws::String &value)
Definition Put.h:77
bool ReturnValuesOnConditionCheckFailureHasBeenSet() const
Definition Put.h:142
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
Aws::Utils::Json::JsonValue JsonValue