AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DeleteItemRequest.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/dynamodb/DynamoDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/dynamodb/model/ConditionalOperator.h>
12#include <aws/dynamodb/model/ReturnValue.h>
13#include <aws/dynamodb/model/ReturnConsumedCapacity.h>
14#include <aws/dynamodb/model/ReturnItemCollectionMetrics.h>
15#include <aws/dynamodb/model/ReturnValuesOnConditionCheckFailure.h>
16#include <aws/dynamodb/model/AttributeValue.h>
17#include <aws/dynamodb/model/ExpectedAttributeValue.h>
18#include <utility>
19
20namespace Aws
21{
22namespace DynamoDB
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DYNAMODB_API DeleteItemRequest();
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "DeleteItem"; }
43
44 AWS_DYNAMODB_API Aws::String SerializePayload() const override;
45
47
48
50
54 inline const Aws::String& GetTableName() const{ return m_tableName; }
55 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
56 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
57 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
58 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
59 inline DeleteItemRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
60 inline DeleteItemRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
61 inline DeleteItemRequest& WithTableName(const char* value) { SetTableName(value); return *this;}
63
65
72 inline const Aws::Map<Aws::String, AttributeValue>& GetKey() const{ return m_key; }
73 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
74 inline void SetKey(const Aws::Map<Aws::String, AttributeValue>& value) { m_keyHasBeenSet = true; m_key = value; }
75 inline void SetKey(Aws::Map<Aws::String, AttributeValue>&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
76 inline DeleteItemRequest& WithKey(const Aws::Map<Aws::String, AttributeValue>& value) { SetKey(value); return *this;}
77 inline DeleteItemRequest& WithKey(Aws::Map<Aws::String, AttributeValue>&& value) { SetKey(std::move(value)); return *this;}
78 inline DeleteItemRequest& AddKey(const Aws::String& key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key.emplace(key, value); return *this; }
79 inline DeleteItemRequest& AddKey(Aws::String&& key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key.emplace(std::move(key), value); return *this; }
80 inline DeleteItemRequest& AddKey(const Aws::String& key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key.emplace(key, std::move(value)); return *this; }
81 inline DeleteItemRequest& AddKey(Aws::String&& key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key.emplace(std::move(key), std::move(value)); return *this; }
82 inline DeleteItemRequest& AddKey(const char* key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key.emplace(key, std::move(value)); return *this; }
83 inline DeleteItemRequest& AddKey(const char* key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key.emplace(key, value); return *this; }
85
87
93 inline const Aws::Map<Aws::String, ExpectedAttributeValue>& GetExpected() const{ return m_expected; }
94 inline bool ExpectedHasBeenSet() const { return m_expectedHasBeenSet; }
95 inline void SetExpected(const Aws::Map<Aws::String, ExpectedAttributeValue>& value) { m_expectedHasBeenSet = true; m_expected = value; }
96 inline void SetExpected(Aws::Map<Aws::String, ExpectedAttributeValue>&& value) { m_expectedHasBeenSet = true; m_expected = std::move(value); }
99 inline DeleteItemRequest& AddExpected(const Aws::String& key, const ExpectedAttributeValue& value) { m_expectedHasBeenSet = true; m_expected.emplace(key, value); return *this; }
100 inline DeleteItemRequest& AddExpected(Aws::String&& key, const ExpectedAttributeValue& value) { m_expectedHasBeenSet = true; m_expected.emplace(std::move(key), value); return *this; }
101 inline DeleteItemRequest& AddExpected(const Aws::String& key, ExpectedAttributeValue&& value) { m_expectedHasBeenSet = true; m_expected.emplace(key, std::move(value)); return *this; }
102 inline DeleteItemRequest& AddExpected(Aws::String&& key, ExpectedAttributeValue&& value) { m_expectedHasBeenSet = true; m_expected.emplace(std::move(key), std::move(value)); return *this; }
103 inline DeleteItemRequest& AddExpected(const char* key, ExpectedAttributeValue&& value) { m_expectedHasBeenSet = true; m_expected.emplace(key, std::move(value)); return *this; }
104 inline DeleteItemRequest& AddExpected(const char* key, const ExpectedAttributeValue& value) { m_expectedHasBeenSet = true; m_expected.emplace(key, value); return *this; }
106
108
114 inline const ConditionalOperator& GetConditionalOperator() const{ return m_conditionalOperator; }
115 inline bool ConditionalOperatorHasBeenSet() const { return m_conditionalOperatorHasBeenSet; }
116 inline void SetConditionalOperator(const ConditionalOperator& value) { m_conditionalOperatorHasBeenSet = true; m_conditionalOperator = value; }
117 inline void SetConditionalOperator(ConditionalOperator&& value) { m_conditionalOperatorHasBeenSet = true; m_conditionalOperator = std::move(value); }
119 inline DeleteItemRequest& WithConditionalOperator(ConditionalOperator&& value) { SetConditionalOperator(std::move(value)); return *this;}
121
123
137 inline const ReturnValue& GetReturnValues() const{ return m_returnValues; }
138 inline bool ReturnValuesHasBeenSet() const { return m_returnValuesHasBeenSet; }
139 inline void SetReturnValues(const ReturnValue& value) { m_returnValuesHasBeenSet = true; m_returnValues = value; }
140 inline void SetReturnValues(ReturnValue&& value) { m_returnValuesHasBeenSet = true; m_returnValues = std::move(value); }
141 inline DeleteItemRequest& WithReturnValues(const ReturnValue& value) { SetReturnValues(value); return *this;}
142 inline DeleteItemRequest& WithReturnValues(ReturnValue&& value) { SetReturnValues(std::move(value)); return *this;}
144
146
147 inline const ReturnConsumedCapacity& GetReturnConsumedCapacity() const{ return m_returnConsumedCapacity; }
148 inline bool ReturnConsumedCapacityHasBeenSet() const { return m_returnConsumedCapacityHasBeenSet; }
149 inline void SetReturnConsumedCapacity(const ReturnConsumedCapacity& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = value; }
150 inline void SetReturnConsumedCapacity(ReturnConsumedCapacity&& value) { m_returnConsumedCapacityHasBeenSet = true; m_returnConsumedCapacity = std::move(value); }
154
156
162 inline const ReturnItemCollectionMetrics& GetReturnItemCollectionMetrics() const{ return m_returnItemCollectionMetrics; }
163 inline bool ReturnItemCollectionMetricsHasBeenSet() const { return m_returnItemCollectionMetricsHasBeenSet; }
164 inline void SetReturnItemCollectionMetrics(const ReturnItemCollectionMetrics& value) { m_returnItemCollectionMetricsHasBeenSet = true; m_returnItemCollectionMetrics = value; }
165 inline void SetReturnItemCollectionMetrics(ReturnItemCollectionMetrics&& value) { m_returnItemCollectionMetricsHasBeenSet = true; m_returnItemCollectionMetrics = std::move(value); }
169
171
183 inline const Aws::String& GetConditionExpression() const{ return m_conditionExpression; }
184 inline bool ConditionExpressionHasBeenSet() const { return m_conditionExpressionHasBeenSet; }
185 inline void SetConditionExpression(const Aws::String& value) { m_conditionExpressionHasBeenSet = true; m_conditionExpression = value; }
186 inline void SetConditionExpression(Aws::String&& value) { m_conditionExpressionHasBeenSet = true; m_conditionExpression = std::move(value); }
187 inline void SetConditionExpression(const char* value) { m_conditionExpressionHasBeenSet = true; m_conditionExpression.assign(value); }
189 inline DeleteItemRequest& WithConditionExpression(Aws::String&& value) { SetConditionExpression(std::move(value)); return *this;}
190 inline DeleteItemRequest& WithConditionExpression(const char* value) { SetConditionExpression(value); return *this;}
192
194
219 inline const Aws::Map<Aws::String, Aws::String>& GetExpressionAttributeNames() const{ return m_expressionAttributeNames; }
220 inline bool ExpressionAttributeNamesHasBeenSet() const { return m_expressionAttributeNamesHasBeenSet; }
221 inline void SetExpressionAttributeNames(const Aws::Map<Aws::String, Aws::String>& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames = value; }
222 inline void SetExpressionAttributeNames(Aws::Map<Aws::String, Aws::String>&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames = std::move(value); }
225 inline DeleteItemRequest& AddExpressionAttributeNames(const Aws::String& key, const Aws::String& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, value); return *this; }
226 inline DeleteItemRequest& AddExpressionAttributeNames(Aws::String&& key, const Aws::String& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), value); return *this; }
227 inline DeleteItemRequest& AddExpressionAttributeNames(const Aws::String& key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, std::move(value)); return *this; }
228 inline DeleteItemRequest& AddExpressionAttributeNames(Aws::String&& key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), std::move(value)); return *this; }
229 inline DeleteItemRequest& AddExpressionAttributeNames(const char* key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, std::move(value)); return *this; }
230 inline DeleteItemRequest& AddExpressionAttributeNames(Aws::String&& key, const char* value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), value); return *this; }
231 inline DeleteItemRequest& AddExpressionAttributeNames(const char* key, const char* value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, value); return *this; }
233
235
250 inline const Aws::Map<Aws::String, AttributeValue>& GetExpressionAttributeValues() const{ return m_expressionAttributeValues; }
251 inline bool ExpressionAttributeValuesHasBeenSet() const { return m_expressionAttributeValuesHasBeenSet; }
252 inline void SetExpressionAttributeValues(const Aws::Map<Aws::String, AttributeValue>& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues = value; }
253 inline void SetExpressionAttributeValues(Aws::Map<Aws::String, AttributeValue>&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues = std::move(value); }
256 inline DeleteItemRequest& AddExpressionAttributeValues(const Aws::String& key, const AttributeValue& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, value); return *this; }
257 inline DeleteItemRequest& AddExpressionAttributeValues(Aws::String&& key, const AttributeValue& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(std::move(key), value); return *this; }
258 inline DeleteItemRequest& AddExpressionAttributeValues(const Aws::String& key, AttributeValue&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, std::move(value)); return *this; }
259 inline DeleteItemRequest& AddExpressionAttributeValues(Aws::String&& key, AttributeValue&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(std::move(key), std::move(value)); return *this; }
260 inline DeleteItemRequest& AddExpressionAttributeValues(const char* key, AttributeValue&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, std::move(value)); return *this; }
261 inline DeleteItemRequest& AddExpressionAttributeValues(const char* key, const AttributeValue& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, value); return *this; }
263
265
272 inline const ReturnValuesOnConditionCheckFailure& GetReturnValuesOnConditionCheckFailure() const{ return m_returnValuesOnConditionCheckFailure; }
273 inline bool ReturnValuesOnConditionCheckFailureHasBeenSet() const { return m_returnValuesOnConditionCheckFailureHasBeenSet; }
274 inline void SetReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure& value) { m_returnValuesOnConditionCheckFailureHasBeenSet = true; m_returnValuesOnConditionCheckFailure = value; }
275 inline void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure&& value) { m_returnValuesOnConditionCheckFailureHasBeenSet = true; m_returnValuesOnConditionCheckFailure = std::move(value); }
279 private:
280
281 Aws::String m_tableName;
282 bool m_tableNameHasBeenSet = false;
283
285 bool m_keyHasBeenSet = false;
286
288 bool m_expectedHasBeenSet = false;
289
290 ConditionalOperator m_conditionalOperator;
291 bool m_conditionalOperatorHasBeenSet = false;
292
293 ReturnValue m_returnValues;
294 bool m_returnValuesHasBeenSet = false;
295
296 ReturnConsumedCapacity m_returnConsumedCapacity;
297 bool m_returnConsumedCapacityHasBeenSet = false;
298
299 ReturnItemCollectionMetrics m_returnItemCollectionMetrics;
300 bool m_returnItemCollectionMetricsHasBeenSet = false;
301
302 Aws::String m_conditionExpression;
303 bool m_conditionExpressionHasBeenSet = false;
304
305 Aws::Map<Aws::String, Aws::String> m_expressionAttributeNames;
306 bool m_expressionAttributeNamesHasBeenSet = false;
307
308 Aws::Map<Aws::String, AttributeValue> m_expressionAttributeValues;
309 bool m_expressionAttributeValuesHasBeenSet = false;
310
311 ReturnValuesOnConditionCheckFailure m_returnValuesOnConditionCheckFailure;
312 bool m_returnValuesOnConditionCheckFailureHasBeenSet = false;
313 };
314
315} // namespace Model
316} // namespace DynamoDB
317} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
void SetReturnItemCollectionMetrics(ReturnItemCollectionMetrics &&value)
DeleteItemRequest & WithReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure &&value)
DeleteItemRequest & AddExpressionAttributeValues(const char *key, AttributeValue &&value)
const Aws::Map< Aws::String, AttributeValue > & GetKey() const
void SetReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure &value)
DeleteItemRequest & AddExpected(const char *key, ExpectedAttributeValue &&value)
void SetExpected(Aws::Map< Aws::String, ExpectedAttributeValue > &&value)
void SetReturnConsumedCapacity(const ReturnConsumedCapacity &value)
const Aws::Map< Aws::String, ExpectedAttributeValue > & GetExpected() const
const ReturnValuesOnConditionCheckFailure & GetReturnValuesOnConditionCheckFailure() const
void SetExpressionAttributeValues(const Aws::Map< Aws::String, AttributeValue > &value)
virtual const char * GetServiceRequestName() const override
const ConditionalOperator & GetConditionalOperator() const
DeleteItemRequest & AddExpressionAttributeNames(Aws::String &&key, const char *value)
DeleteItemRequest & AddExpressionAttributeNames(const char *key, const char *value)
DeleteItemRequest & AddKey(Aws::String &&key, AttributeValue &&value)
DeleteItemRequest & WithReturnConsumedCapacity(const ReturnConsumedCapacity &value)
void SetExpressionAttributeValues(Aws::Map< Aws::String, AttributeValue > &&value)
DeleteItemRequest & WithReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure &value)
void SetExpressionAttributeNames(Aws::Map< Aws::String, Aws::String > &&value)
DeleteItemRequest & AddKey(const char *key, AttributeValue &&value)
AWS_DYNAMODB_API Aws::String SerializePayload() const override
void SetReturnValues(const ReturnValue &value)
DeleteItemRequest & AddKey(const Aws::String &key, AttributeValue &&value)
DeleteItemRequest & WithReturnValues(ReturnValue &&value)
DeleteItemRequest & AddExpected(Aws::String &&key, ExpectedAttributeValue &&value)
DeleteItemRequest & WithConditionExpression(const char *value)
DeleteItemRequest & WithTableName(const Aws::String &value)
DeleteItemRequest & AddKey(Aws::String &&key, const AttributeValue &value)
DeleteItemRequest & AddExpected(const Aws::String &key, const ExpectedAttributeValue &value)
void SetConditionalOperator(ConditionalOperator &&value)
DeleteItemRequest & WithConditionExpression(Aws::String &&value)
void SetKey(const Aws::Map< Aws::String, AttributeValue > &value)
DeleteItemRequest & WithKey(Aws::Map< Aws::String, AttributeValue > &&value)
DeleteItemRequest & AddExpressionAttributeValues(const Aws::String &key, const AttributeValue &value)
void SetConditionalOperator(const ConditionalOperator &value)
DeleteItemRequest & AddKey(const Aws::String &key, const AttributeValue &value)
void SetReturnConsumedCapacity(ReturnConsumedCapacity &&value)
DeleteItemRequest & WithKey(const Aws::Map< Aws::String, AttributeValue > &value)
DeleteItemRequest & WithReturnItemCollectionMetrics(const ReturnItemCollectionMetrics &value)
const ReturnValue & GetReturnValues() const
DeleteItemRequest & AddExpressionAttributeValues(Aws::String &&key, AttributeValue &&value)
const Aws::String & GetTableName() const
void SetConditionExpression(Aws::String &&value)
DeleteItemRequest & WithExpressionAttributeValues(const Aws::Map< Aws::String, AttributeValue > &value)
DeleteItemRequest & AddExpected(const Aws::String &key, ExpectedAttributeValue &&value)
DeleteItemRequest & WithExpressionAttributeNames(Aws::Map< Aws::String, Aws::String > &&value)
DeleteItemRequest & AddExpressionAttributeNames(const char *key, Aws::String &&value)
DeleteItemRequest & WithReturnValues(const ReturnValue &value)
DeleteItemRequest & WithExpressionAttributeValues(Aws::Map< Aws::String, AttributeValue > &&value)
const Aws::String & GetConditionExpression() const
DeleteItemRequest & WithExpected(Aws::Map< Aws::String, ExpectedAttributeValue > &&value)
void SetConditionExpression(const Aws::String &value)
DeleteItemRequest & WithConditionExpression(const Aws::String &value)
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetReturnItemCollectionMetrics(const ReturnItemCollectionMetrics &value)
void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure &&value)
DeleteItemRequest & AddExpressionAttributeNames(const Aws::String &key, Aws::String &&value)
void SetKey(Aws::Map< Aws::String, AttributeValue > &&value)
DeleteItemRequest & AddExpected(Aws::String &&key, const ExpectedAttributeValue &value)
DeleteItemRequest & WithConditionalOperator(ConditionalOperator &&value)
DeleteItemRequest & AddExpressionAttributeValues(Aws::String &&key, const AttributeValue &value)
const Aws::Map< Aws::String, Aws::String > & GetExpressionAttributeNames() const
DeleteItemRequest & AddExpressionAttributeValues(const char *key, const AttributeValue &value)
DeleteItemRequest & AddKey(const char *key, const AttributeValue &value)
DeleteItemRequest & AddExpressionAttributeNames(Aws::String &&key, const Aws::String &value)
DeleteItemRequest & WithExpressionAttributeNames(const Aws::Map< Aws::String, Aws::String > &value)
void SetExpressionAttributeNames(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, AttributeValue > & GetExpressionAttributeValues() const
void SetExpected(const Aws::Map< Aws::String, ExpectedAttributeValue > &value)
DeleteItemRequest & WithReturnItemCollectionMetrics(ReturnItemCollectionMetrics &&value)
DeleteItemRequest & WithConditionalOperator(const ConditionalOperator &value)
const ReturnConsumedCapacity & GetReturnConsumedCapacity() const
void SetTableName(const Aws::String &value)
DeleteItemRequest & AddExpressionAttributeNames(const Aws::String &key, const Aws::String &value)
DeleteItemRequest & WithTableName(Aws::String &&value)
DeleteItemRequest & WithReturnConsumedCapacity(ReturnConsumedCapacity &&value)
DeleteItemRequest & WithTableName(const char *value)
DeleteItemRequest & AddExpected(const char *key, const ExpectedAttributeValue &value)
DeleteItemRequest & AddExpressionAttributeValues(const Aws::String &key, AttributeValue &&value)
DeleteItemRequest & AddExpressionAttributeNames(Aws::String &&key, Aws::String &&value)
const ReturnItemCollectionMetrics & GetReturnItemCollectionMetrics() const
DeleteItemRequest & WithExpected(const Aws::Map< Aws::String, ExpectedAttributeValue > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
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