AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Delete.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 Delete
36 {
37 public:
38 AWS_DYNAMODB_API Delete();
39 AWS_DYNAMODB_API Delete(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DYNAMODB_API Delete& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Map<Aws::String, AttributeValue>& GetKey() const{ return m_key; }
50 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
51 inline void SetKey(const Aws::Map<Aws::String, AttributeValue>& value) { m_keyHasBeenSet = true; m_key = value; }
52 inline void SetKey(Aws::Map<Aws::String, AttributeValue>&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
53 inline Delete& WithKey(const Aws::Map<Aws::String, AttributeValue>& value) { SetKey(value); return *this;}
54 inline Delete& WithKey(Aws::Map<Aws::String, AttributeValue>&& value) { SetKey(std::move(value)); return *this;}
55 inline Delete& AddKey(const Aws::String& key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key.emplace(key, value); return *this; }
56 inline Delete& AddKey(Aws::String&& key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key.emplace(std::move(key), value); return *this; }
57 inline Delete& AddKey(const Aws::String& key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key.emplace(key, std::move(value)); return *this; }
58 inline Delete& AddKey(Aws::String&& key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key.emplace(std::move(key), std::move(value)); return *this; }
59 inline Delete& AddKey(const char* key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key.emplace(key, std::move(value)); return *this; }
60 inline Delete& AddKey(const char* key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key.emplace(key, value); return *this; }
62
64
68 inline const Aws::String& GetTableName() const{ return m_tableName; }
69 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
70 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
71 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
72 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
73 inline Delete& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
74 inline Delete& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
75 inline Delete& WithTableName(const char* value) { SetTableName(value); return *this;}
77
79
83 inline const Aws::String& GetConditionExpression() const{ return m_conditionExpression; }
84 inline bool ConditionExpressionHasBeenSet() const { return m_conditionExpressionHasBeenSet; }
85 inline void SetConditionExpression(const Aws::String& value) { m_conditionExpressionHasBeenSet = true; m_conditionExpression = value; }
86 inline void SetConditionExpression(Aws::String&& value) { m_conditionExpressionHasBeenSet = true; m_conditionExpression = std::move(value); }
87 inline void SetConditionExpression(const char* value) { m_conditionExpressionHasBeenSet = true; m_conditionExpression.assign(value); }
88 inline Delete& WithConditionExpression(const Aws::String& value) { SetConditionExpression(value); return *this;}
89 inline Delete& WithConditionExpression(Aws::String&& value) { SetConditionExpression(std::move(value)); return *this;}
90 inline Delete& WithConditionExpression(const char* value) { SetConditionExpression(value); return *this;}
92
94
97 inline const Aws::Map<Aws::String, Aws::String>& GetExpressionAttributeNames() const{ return m_expressionAttributeNames; }
98 inline bool ExpressionAttributeNamesHasBeenSet() const { return m_expressionAttributeNamesHasBeenSet; }
99 inline void SetExpressionAttributeNames(const Aws::Map<Aws::String, Aws::String>& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames = value; }
100 inline void SetExpressionAttributeNames(Aws::Map<Aws::String, Aws::String>&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames = std::move(value); }
103 inline Delete& AddExpressionAttributeNames(const Aws::String& key, const Aws::String& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, value); return *this; }
104 inline Delete& AddExpressionAttributeNames(Aws::String&& key, const Aws::String& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), value); return *this; }
105 inline Delete& AddExpressionAttributeNames(const Aws::String& key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, std::move(value)); return *this; }
106 inline Delete& AddExpressionAttributeNames(Aws::String&& key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), std::move(value)); return *this; }
107 inline Delete& AddExpressionAttributeNames(const char* key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, std::move(value)); return *this; }
108 inline Delete& AddExpressionAttributeNames(Aws::String&& key, const char* value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), value); return *this; }
109 inline Delete& AddExpressionAttributeNames(const char* key, const char* value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, value); return *this; }
111
113
116 inline const Aws::Map<Aws::String, AttributeValue>& GetExpressionAttributeValues() const{ return m_expressionAttributeValues; }
117 inline bool ExpressionAttributeValuesHasBeenSet() const { return m_expressionAttributeValuesHasBeenSet; }
118 inline void SetExpressionAttributeValues(const Aws::Map<Aws::String, AttributeValue>& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues = value; }
119 inline void SetExpressionAttributeValues(Aws::Map<Aws::String, AttributeValue>&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues = std::move(value); }
122 inline Delete& AddExpressionAttributeValues(const Aws::String& key, const AttributeValue& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, value); return *this; }
123 inline Delete& AddExpressionAttributeValues(Aws::String&& key, const AttributeValue& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(std::move(key), value); return *this; }
124 inline Delete& AddExpressionAttributeValues(const Aws::String& key, AttributeValue&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, std::move(value)); return *this; }
125 inline Delete& AddExpressionAttributeValues(Aws::String&& key, AttributeValue&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(std::move(key), std::move(value)); return *this; }
126 inline Delete& AddExpressionAttributeValues(const char* key, AttributeValue&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, std::move(value)); return *this; }
127 inline Delete& AddExpressionAttributeValues(const char* key, const AttributeValue& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, value); return *this; }
129
131
137 inline const ReturnValuesOnConditionCheckFailure& GetReturnValuesOnConditionCheckFailure() const{ return m_returnValuesOnConditionCheckFailure; }
138 inline bool ReturnValuesOnConditionCheckFailureHasBeenSet() const { return m_returnValuesOnConditionCheckFailureHasBeenSet; }
139 inline void SetReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure& value) { m_returnValuesOnConditionCheckFailureHasBeenSet = true; m_returnValuesOnConditionCheckFailure = value; }
140 inline void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure&& value) { m_returnValuesOnConditionCheckFailureHasBeenSet = true; m_returnValuesOnConditionCheckFailure = std::move(value); }
144 private:
145
147 bool m_keyHasBeenSet = false;
148
149 Aws::String m_tableName;
150 bool m_tableNameHasBeenSet = false;
151
152 Aws::String m_conditionExpression;
153 bool m_conditionExpressionHasBeenSet = false;
154
155 Aws::Map<Aws::String, Aws::String> m_expressionAttributeNames;
156 bool m_expressionAttributeNamesHasBeenSet = false;
157
158 Aws::Map<Aws::String, AttributeValue> m_expressionAttributeValues;
159 bool m_expressionAttributeValuesHasBeenSet = false;
160
161 ReturnValuesOnConditionCheckFailure m_returnValuesOnConditionCheckFailure;
162 bool m_returnValuesOnConditionCheckFailureHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace DynamoDB
167} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
bool ExpressionAttributeNamesHasBeenSet() const
Definition Delete.h:98
Delete & AddExpressionAttributeNames(const char *key, const char *value)
Definition Delete.h:109
AWS_DYNAMODB_API Delete()
Delete & AddExpressionAttributeNames(Aws::String &&key, const Aws::String &value)
Definition Delete.h:104
Delete & WithTableName(const Aws::String &value)
Definition Delete.h:73
Delete & AddExpressionAttributeValues(const Aws::String &key, AttributeValue &&value)
Definition Delete.h:124
void SetTableName(const Aws::String &value)
Definition Delete.h:70
Delete & AddKey(const char *key, AttributeValue &&value)
Definition Delete.h:59
Delete & AddExpressionAttributeNames(const char *key, Aws::String &&value)
Definition Delete.h:107
void SetConditionExpression(const char *value)
Definition Delete.h:87
const ReturnValuesOnConditionCheckFailure & GetReturnValuesOnConditionCheckFailure() const
Definition Delete.h:137
void SetConditionExpression(Aws::String &&value)
Definition Delete.h:86
void SetConditionExpression(const Aws::String &value)
Definition Delete.h:85
void SetExpressionAttributeValues(const Aws::Map< Aws::String, AttributeValue > &value)
Definition Delete.h:118
void SetExpressionAttributeNames(const Aws::Map< Aws::String, Aws::String > &value)
Definition Delete.h:99
Delete & AddExpressionAttributeValues(const char *key, const AttributeValue &value)
Definition Delete.h:127
AWS_DYNAMODB_API Delete(Aws::Utils::Json::JsonView jsonValue)
Delete & AddKey(const Aws::String &key, const AttributeValue &value)
Definition Delete.h:55
Delete & AddKey(Aws::String &&key, AttributeValue &&value)
Definition Delete.h:58
void SetKey(Aws::Map< Aws::String, AttributeValue > &&value)
Definition Delete.h:52
const Aws::Map< Aws::String, AttributeValue > & GetKey() const
Definition Delete.h:49
Delete & AddExpressionAttributeValues(const char *key, AttributeValue &&value)
Definition Delete.h:126
Delete & AddExpressionAttributeValues(const Aws::String &key, const AttributeValue &value)
Definition Delete.h:122
Delete & WithExpressionAttributeNames(const Aws::Map< Aws::String, Aws::String > &value)
Definition Delete.h:101
bool ReturnValuesOnConditionCheckFailureHasBeenSet() const
Definition Delete.h:138
Delete & AddExpressionAttributeValues(Aws::String &&key, const AttributeValue &value)
Definition Delete.h:123
Delete & WithConditionExpression(const Aws::String &value)
Definition Delete.h:88
Delete & AddKey(const char *key, const AttributeValue &value)
Definition Delete.h:60
bool TableNameHasBeenSet() const
Definition Delete.h:69
bool KeyHasBeenSet() const
Definition Delete.h:50
Delete & AddExpressionAttributeNames(const Aws::String &key, Aws::String &&value)
Definition Delete.h:105
Delete & AddExpressionAttributeNames(Aws::String &&key, Aws::String &&value)
Definition Delete.h:106
Delete & WithReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure &value)
Definition Delete.h:141
void SetExpressionAttributeNames(Aws::Map< Aws::String, Aws::String > &&value)
Definition Delete.h:100
Delete & WithReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure &&value)
Definition Delete.h:142
void SetTableName(Aws::String &&value)
Definition Delete.h:71
void SetExpressionAttributeValues(Aws::Map< Aws::String, AttributeValue > &&value)
Definition Delete.h:119
void SetKey(const Aws::Map< Aws::String, AttributeValue > &value)
Definition Delete.h:51
bool ExpressionAttributeValuesHasBeenSet() const
Definition Delete.h:117
void SetTableName(const char *value)
Definition Delete.h:72
const Aws::Map< Aws::String, Aws::String > & GetExpressionAttributeNames() const
Definition Delete.h:97
Delete & WithConditionExpression(const char *value)
Definition Delete.h:90
void SetReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure &value)
Definition Delete.h:139
bool ConditionExpressionHasBeenSet() const
Definition Delete.h:84
Delete & AddExpressionAttributeNames(Aws::String &&key, const char *value)
Definition Delete.h:108
Delete & AddExpressionAttributeValues(Aws::String &&key, AttributeValue &&value)
Definition Delete.h:125
AWS_DYNAMODB_API Delete & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetConditionExpression() const
Definition Delete.h:83
const Aws::Map< Aws::String, AttributeValue > & GetExpressionAttributeValues() const
Definition Delete.h:116
Delete & WithExpressionAttributeValues(const Aws::Map< Aws::String, AttributeValue > &value)
Definition Delete.h:120
Delete & WithExpressionAttributeValues(Aws::Map< Aws::String, AttributeValue > &&value)
Definition Delete.h:121
Delete & WithKey(const Aws::Map< Aws::String, AttributeValue > &value)
Definition Delete.h:53
Delete & AddKey(const Aws::String &key, AttributeValue &&value)
Definition Delete.h:57
Delete & WithTableName(Aws::String &&value)
Definition Delete.h:74
Delete & WithExpressionAttributeNames(Aws::Map< Aws::String, Aws::String > &&value)
Definition Delete.h:102
Delete & WithTableName(const char *value)
Definition Delete.h:75
Delete & AddExpressionAttributeNames(const Aws::String &key, const Aws::String &value)
Definition Delete.h:103
Delete & WithConditionExpression(Aws::String &&value)
Definition Delete.h:89
Delete & AddKey(Aws::String &&key, const AttributeValue &value)
Definition Delete.h:56
const Aws::String & GetTableName() const
Definition Delete.h:68
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure &&value)
Definition Delete.h:140
Delete & WithKey(Aws::Map< Aws::String, AttributeValue > &&value)
Definition Delete.h:54
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