AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConditionCheck.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
36 {
37 public:
38 AWS_DYNAMODB_API ConditionCheck();
39 AWS_DYNAMODB_API ConditionCheck(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 ConditionCheck& WithKey(const Aws::Map<Aws::String, AttributeValue>& value) { SetKey(value); return *this;}
54 inline ConditionCheck& WithKey(Aws::Map<Aws::String, AttributeValue>&& value) { SetKey(std::move(value)); return *this;}
55 inline ConditionCheck& AddKey(const Aws::String& key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key.emplace(key, value); return *this; }
56 inline ConditionCheck& AddKey(Aws::String&& key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key.emplace(std::move(key), value); return *this; }
57 inline ConditionCheck& AddKey(const Aws::String& key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key.emplace(key, std::move(value)); return *this; }
58 inline ConditionCheck& AddKey(Aws::String&& key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key.emplace(std::move(key), std::move(value)); return *this; }
59 inline ConditionCheck& AddKey(const char* key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key.emplace(key, std::move(value)); return *this; }
60 inline ConditionCheck& 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 ConditionCheck& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
74 inline ConditionCheck& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
75 inline ConditionCheck& WithTableName(const char* value) { SetTableName(value); return *this;}
77
79
85 inline const Aws::String& GetConditionExpression() const{ return m_conditionExpression; }
86 inline bool ConditionExpressionHasBeenSet() const { return m_conditionExpressionHasBeenSet; }
87 inline void SetConditionExpression(const Aws::String& value) { m_conditionExpressionHasBeenSet = true; m_conditionExpression = value; }
88 inline void SetConditionExpression(Aws::String&& value) { m_conditionExpressionHasBeenSet = true; m_conditionExpression = std::move(value); }
89 inline void SetConditionExpression(const char* value) { m_conditionExpressionHasBeenSet = true; m_conditionExpression.assign(value); }
90 inline ConditionCheck& WithConditionExpression(const Aws::String& value) { SetConditionExpression(value); return *this;}
91 inline ConditionCheck& WithConditionExpression(Aws::String&& value) { SetConditionExpression(std::move(value)); return *this;}
92 inline ConditionCheck& WithConditionExpression(const char* value) { SetConditionExpression(value); return *this;}
94
96
102 inline const Aws::Map<Aws::String, Aws::String>& GetExpressionAttributeNames() const{ return m_expressionAttributeNames; }
103 inline bool ExpressionAttributeNamesHasBeenSet() const { return m_expressionAttributeNamesHasBeenSet; }
104 inline void SetExpressionAttributeNames(const Aws::Map<Aws::String, Aws::String>& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames = value; }
105 inline void SetExpressionAttributeNames(Aws::Map<Aws::String, Aws::String>&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames = std::move(value); }
108 inline ConditionCheck& AddExpressionAttributeNames(const Aws::String& key, const Aws::String& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, value); return *this; }
109 inline ConditionCheck& AddExpressionAttributeNames(Aws::String&& key, const Aws::String& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), value); return *this; }
110 inline ConditionCheck& AddExpressionAttributeNames(const Aws::String& key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, std::move(value)); return *this; }
111 inline ConditionCheck& AddExpressionAttributeNames(Aws::String&& key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), std::move(value)); return *this; }
112 inline ConditionCheck& AddExpressionAttributeNames(const char* key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, std::move(value)); return *this; }
113 inline ConditionCheck& AddExpressionAttributeNames(Aws::String&& key, const char* value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), value); return *this; }
114 inline ConditionCheck& AddExpressionAttributeNames(const char* key, const char* value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, value); return *this; }
116
118
124 inline const Aws::Map<Aws::String, AttributeValue>& GetExpressionAttributeValues() const{ return m_expressionAttributeValues; }
125 inline bool ExpressionAttributeValuesHasBeenSet() const { return m_expressionAttributeValuesHasBeenSet; }
126 inline void SetExpressionAttributeValues(const Aws::Map<Aws::String, AttributeValue>& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues = value; }
127 inline void SetExpressionAttributeValues(Aws::Map<Aws::String, AttributeValue>&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues = std::move(value); }
130 inline ConditionCheck& AddExpressionAttributeValues(const Aws::String& key, const AttributeValue& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, value); return *this; }
131 inline ConditionCheck& AddExpressionAttributeValues(Aws::String&& key, const AttributeValue& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(std::move(key), value); return *this; }
132 inline ConditionCheck& AddExpressionAttributeValues(const Aws::String& key, AttributeValue&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, std::move(value)); return *this; }
133 inline ConditionCheck& AddExpressionAttributeValues(Aws::String&& key, AttributeValue&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(std::move(key), std::move(value)); return *this; }
134 inline ConditionCheck& AddExpressionAttributeValues(const char* key, AttributeValue&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, std::move(value)); return *this; }
135 inline ConditionCheck& AddExpressionAttributeValues(const char* key, const AttributeValue& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, value); return *this; }
137
139
145 inline const ReturnValuesOnConditionCheckFailure& GetReturnValuesOnConditionCheckFailure() const{ return m_returnValuesOnConditionCheckFailure; }
146 inline bool ReturnValuesOnConditionCheckFailureHasBeenSet() const { return m_returnValuesOnConditionCheckFailureHasBeenSet; }
147 inline void SetReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure& value) { m_returnValuesOnConditionCheckFailureHasBeenSet = true; m_returnValuesOnConditionCheckFailure = value; }
148 inline void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure&& value) { m_returnValuesOnConditionCheckFailureHasBeenSet = true; m_returnValuesOnConditionCheckFailure = std::move(value); }
152 private:
153
155 bool m_keyHasBeenSet = false;
156
157 Aws::String m_tableName;
158 bool m_tableNameHasBeenSet = false;
159
160 Aws::String m_conditionExpression;
161 bool m_conditionExpressionHasBeenSet = false;
162
163 Aws::Map<Aws::String, Aws::String> m_expressionAttributeNames;
164 bool m_expressionAttributeNamesHasBeenSet = false;
165
166 Aws::Map<Aws::String, AttributeValue> m_expressionAttributeValues;
167 bool m_expressionAttributeValuesHasBeenSet = false;
168
169 ReturnValuesOnConditionCheckFailure m_returnValuesOnConditionCheckFailure;
170 bool m_returnValuesOnConditionCheckFailureHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace DynamoDB
175} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
ConditionCheck & AddKey(const Aws::String &key, const AttributeValue &value)
ConditionCheck & AddExpressionAttributeValues(Aws::String &&key, AttributeValue &&value)
ConditionCheck & AddExpressionAttributeNames(Aws::String &&key, Aws::String &&value)
ConditionCheck & WithConditionExpression(const char *value)
ConditionCheck & AddExpressionAttributeValues(Aws::String &&key, const AttributeValue &value)
ConditionCheck & WithConditionExpression(const Aws::String &value)
const Aws::String & GetTableName() const
const ReturnValuesOnConditionCheckFailure & GetReturnValuesOnConditionCheckFailure() const
AWS_DYNAMODB_API ConditionCheck(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
ConditionCheck & AddExpressionAttributeNames(const char *key, Aws::String &&value)
void SetExpressionAttributeValues(Aws::Map< Aws::String, AttributeValue > &&value)
ConditionCheck & AddKey(const Aws::String &key, AttributeValue &&value)
void SetExpressionAttributeNames(const Aws::Map< Aws::String, Aws::String > &value)
void SetTableName(Aws::String &&value)
ConditionCheck & WithExpressionAttributeNames(Aws::Map< Aws::String, Aws::String > &&value)
ConditionCheck & WithReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure &&value)
ConditionCheck & WithKey(const Aws::Map< Aws::String, AttributeValue > &value)
ConditionCheck & WithExpressionAttributeValues(Aws::Map< Aws::String, AttributeValue > &&value)
ConditionCheck & AddExpressionAttributeNames(Aws::String &&key, const char *value)
void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure &&value)
void SetTableName(const Aws::String &value)
ConditionCheck & AddExpressionAttributeNames(Aws::String &&key, const Aws::String &value)
ConditionCheck & AddKey(Aws::String &&key, AttributeValue &&value)
ConditionCheck & AddKey(const char *key, const AttributeValue &value)
AWS_DYNAMODB_API ConditionCheck & operator=(Aws::Utils::Json::JsonView jsonValue)
ConditionCheck & AddExpressionAttributeNames(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetExpressionAttributeNames() const
ConditionCheck & AddExpressionAttributeNames(const Aws::String &key, const Aws::String &value)
ConditionCheck & AddExpressionAttributeValues(const char *key, const AttributeValue &value)
ConditionCheck & WithConditionExpression(Aws::String &&value)
const Aws::String & GetConditionExpression() const
const Aws::Map< Aws::String, AttributeValue > & GetKey() const
void SetKey(Aws::Map< Aws::String, AttributeValue > &&value)
bool ReturnValuesOnConditionCheckFailureHasBeenSet() const
ConditionCheck & WithReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure &value)
void SetExpressionAttributeNames(Aws::Map< Aws::String, Aws::String > &&value)
ConditionCheck & AddExpressionAttributeValues(const Aws::String &key, AttributeValue &&value)
void SetConditionExpression(Aws::String &&value)
ConditionCheck & AddExpressionAttributeValues(const char *key, AttributeValue &&value)
void SetKey(const Aws::Map< Aws::String, AttributeValue > &value)
ConditionCheck & WithTableName(Aws::String &&value)
void SetReturnValuesOnConditionCheckFailure(const ReturnValuesOnConditionCheckFailure &value)
const Aws::Map< Aws::String, AttributeValue > & GetExpressionAttributeValues() const
ConditionCheck & AddExpressionAttributeValues(const Aws::String &key, const AttributeValue &value)
ConditionCheck & WithKey(Aws::Map< Aws::String, AttributeValue > &&value)
ConditionCheck & WithExpressionAttributeNames(const Aws::Map< Aws::String, Aws::String > &value)
void SetConditionExpression(const char *value)
ConditionCheck & AddExpressionAttributeNames(const char *key, const char *value)
void SetExpressionAttributeValues(const Aws::Map< Aws::String, AttributeValue > &value)
void SetConditionExpression(const Aws::String &value)
ConditionCheck & WithExpressionAttributeValues(const Aws::Map< Aws::String, AttributeValue > &value)
ConditionCheck & WithTableName(const Aws::String &value)
ConditionCheck & WithTableName(const char *value)
ConditionCheck & AddKey(Aws::String &&key, const AttributeValue &value)
ConditionCheck & AddKey(const char *key, AttributeValue &&value)
void SetTableName(const char *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
Aws::Utils::Json::JsonValue JsonValue