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>
51 template<
typename KeyT = Aws::Map<Aws::String, AttributeValue>>
52 void SetKey(KeyT&& value) { m_keyHasBeenSet =
true; m_key = std::forward<KeyT>(value); }
53 template<
typename KeyT = Aws::Map<Aws::String, AttributeValue>>
55 template<
typename KeyKeyT = Aws::String,
typename KeyValueT = AttributeValue>
57 m_keyHasBeenSet =
true; m_key.emplace(std::forward<KeyKeyT>(key), std::forward<KeyValueT>(value));
return *
this;
68 template<
typename UpdateExpressionT = Aws::String>
69 void SetUpdateExpression(UpdateExpressionT&& value) { m_updateExpressionHasBeenSet =
true; m_updateExpression = std::forward<UpdateExpressionT>(value); }
70 template<
typename UpdateExpressionT = Aws::String>
81 template<
typename TableNameT = Aws::String>
82 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet =
true; m_tableName = std::forward<TableNameT>(value); }
83 template<
typename TableNameT = Aws::String>
94 template<
typename ConditionExpressionT = Aws::String>
95 void SetConditionExpression(ConditionExpressionT&& value) { m_conditionExpressionHasBeenSet =
true; m_conditionExpression = std::forward<ConditionExpressionT>(value); }
96 template<
typename ConditionExpressionT = Aws::String>
106 template<
typename ExpressionAttributeNamesT = Aws::Map<Aws::String, Aws::String>>
107 void SetExpressionAttributeNames(ExpressionAttributeNamesT&& value) { m_expressionAttributeNamesHasBeenSet =
true; m_expressionAttributeNames = std::forward<ExpressionAttributeNamesT>(value); }
108 template<
typename ExpressionAttributeNamesT = Aws::Map<Aws::String, Aws::String>>
110 template<
typename ExpressionAttributeNamesKeyT = Aws::String,
typename ExpressionAttributeNamesValueT = Aws::String>
112 m_expressionAttributeNamesHasBeenSet =
true; m_expressionAttributeNames.emplace(std::forward<ExpressionAttributeNamesKeyT>(key), std::forward<ExpressionAttributeNamesValueT>(value));
return *
this;
122 template<
typename ExpressionAttributeValuesT = Aws::Map<Aws::String, AttributeValue>>
123 void SetExpressionAttributeValues(ExpressionAttributeValuesT&& value) { m_expressionAttributeValuesHasBeenSet =
true; m_expressionAttributeValues = std::forward<ExpressionAttributeValuesT>(value); }
124 template<
typename ExpressionAttributeValuesT = Aws::Map<Aws::String, AttributeValue>>
126 template<
typename ExpressionAttributeValuesKeyT = Aws::String,
typename ExpressionAttributeValuesValueT = AttributeValue>
128 m_expressionAttributeValuesHasBeenSet =
true; m_expressionAttributeValues.emplace(std::forward<ExpressionAttributeValuesKeyT>(key), std::forward<ExpressionAttributeValuesValueT>(value));
return *
this;
147 bool m_keyHasBeenSet =
false;
150 bool m_updateExpressionHasBeenSet =
false;
153 bool m_tableNameHasBeenSet =
false;
156 bool m_conditionExpressionHasBeenSet =
false;
159 bool m_expressionAttributeNamesHasBeenSet =
false;
162 bool m_expressionAttributeValuesHasBeenSet =
false;
165 bool m_returnValuesOnConditionCheckFailureHasBeenSet =
false;
void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure value)
const Aws::Map< Aws::String, AttributeValue > & GetKey() const
void SetExpressionAttributeNames(ExpressionAttributeNamesT &&value)
const Aws::String & GetConditionExpression() const
bool TableNameHasBeenSet() const
const Aws::String & GetTableName() const
Update & WithKey(KeyT &&value)
void SetUpdateExpression(UpdateExpressionT &&value)
AWS_DYNAMODB_API Update()=default
bool KeyHasBeenSet() const
Update & AddExpressionAttributeValues(ExpressionAttributeValuesKeyT &&key, ExpressionAttributeValuesValueT &&value)
void SetKey(KeyT &&value)
void SetConditionExpression(ConditionExpressionT &&value)
AWS_DYNAMODB_API Update & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetExpressionAttributeNames() const
bool ExpressionAttributeValuesHasBeenSet() const
Update & WithUpdateExpression(UpdateExpressionT &&value)
bool ConditionExpressionHasBeenSet() const
const Aws::Map< Aws::String, AttributeValue > & GetExpressionAttributeValues() const
void SetTableName(TableNameT &&value)
Update & WithConditionExpression(ConditionExpressionT &&value)
Update & WithTableName(TableNameT &&value)
Update & WithReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure value)
Update & AddKey(KeyKeyT &&key, KeyValueT &&value)
ReturnValuesOnConditionCheckFailure GetReturnValuesOnConditionCheckFailure() const
Update & WithExpressionAttributeNames(ExpressionAttributeNamesT &&value)
bool ReturnValuesOnConditionCheckFailureHasBeenSet() const
AWS_DYNAMODB_API Update(Aws::Utils::Json::JsonView jsonValue)
void SetExpressionAttributeValues(ExpressionAttributeValuesT &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
Update & WithExpressionAttributeValues(ExpressionAttributeValuesT &&value)
const Aws::String & GetUpdateExpression() const
bool ExpressionAttributeNamesHasBeenSet() const
Update & AddExpressionAttributeNames(ExpressionAttributeNamesKeyT &&key, ExpressionAttributeNamesValueT &&value)
bool UpdateExpressionHasBeenSet() const
ReturnValuesOnConditionCheckFailure
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