7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dynamodb/DynamoDBRequest.h>
10#include <aws/dynamodb/DynamoDB_EXPORTS.h>
11#include <aws/dynamodb/model/AttributeValue.h>
12#include <aws/dynamodb/model/AttributeValueUpdate.h>
13#include <aws/dynamodb/model/ConditionalOperator.h>
14#include <aws/dynamodb/model/ExpectedAttributeValue.h>
15#include <aws/dynamodb/model/ReturnConsumedCapacity.h>
16#include <aws/dynamodb/model/ReturnItemCollectionMetrics.h>
17#include <aws/dynamodb/model/ReturnValue.h>
18#include <aws/dynamodb/model/ReturnValuesOnConditionCheckFailure.h>
58 template <
typename TableNameT = Aws::String>
60 m_tableNameHasBeenSet =
true;
61 m_tableName = std::forward<TableNameT>(value);
63 template <
typename TableNameT = Aws::String>
80 template <
typename KeyT = Aws::Map<Aws::String, AttributeValue>>
82 m_keyHasBeenSet =
true;
83 m_key = std::forward<KeyT>(value);
85 template <
typename KeyT = Aws::Map<Aws::String, AttributeValue>>
87 SetKey(std::forward<KeyT>(value));
90 template <
typename KeyKeyT = Aws::String,
typename KeyValueT = AttributeValue>
92 m_keyHasBeenSet =
true;
93 m_key.emplace(std::forward<KeyKeyT>(key), std::forward<KeyValueT>(value));
107 template <
typename AttributeUpdatesT = Aws::Map<Aws::String, AttributeValueUpdate>>
109 m_attributeUpdatesHasBeenSet =
true;
110 m_attributeUpdates = std::forward<AttributeUpdatesT>(value);
112 template <
typename AttributeUpdatesT = Aws::Map<Aws::String, AttributeValueUpdate>>
117 template <
typename AttributeUpdatesKeyT = Aws::String,
typename AttributeUpdatesValueT = AttributeValueUpdate>
119 m_attributeUpdatesHasBeenSet =
true;
120 m_attributeUpdates.emplace(std::forward<AttributeUpdatesKeyT>(key), std::forward<AttributeUpdatesValueT>(value));
134 template <
typename ExpectedT = Aws::Map<Aws::String, ExpectedAttributeValue>>
136 m_expectedHasBeenSet =
true;
137 m_expected = std::forward<ExpectedT>(value);
139 template <
typename ExpectedT = Aws::Map<Aws::String, ExpectedAttributeValue>>
144 template <
typename ExpectedKeyT = Aws::String,
typename ExpectedValueT = ExpectedAttributeValue>
146 m_expectedHasBeenSet =
true;
147 m_expected.emplace(std::forward<ExpectedKeyT>(key), std::forward<ExpectedValueT>(value));
162 m_conditionalOperatorHasBeenSet =
true;
163 m_conditionalOperator = value;
193 m_returnValuesHasBeenSet =
true;
194 m_returnValues = value;
207 m_returnConsumedCapacityHasBeenSet =
true;
208 m_returnConsumedCapacity = value;
226 m_returnItemCollectionMetricsHasBeenSet =
true;
227 m_returnItemCollectionMetrics = value;
298 template <
typename UpdateExpressionT = Aws::String>
300 m_updateExpressionHasBeenSet =
true;
301 m_updateExpression = std::forward<UpdateExpressionT>(value);
303 template <
typename UpdateExpressionT = Aws::String>
325 template <
typename ConditionExpressionT = Aws::String>
327 m_conditionExpressionHasBeenSet =
true;
328 m_conditionExpression = std::forward<ConditionExpressionT>(value);
330 template <
typename ConditionExpressionT = Aws::String>
365 template <
typename ExpressionAttributeNamesT = Aws::Map<Aws::String, Aws::String>>
367 m_expressionAttributeNamesHasBeenSet =
true;
368 m_expressionAttributeNames = std::forward<ExpressionAttributeNamesT>(value);
370 template <
typename ExpressionAttributeNamesT = Aws::Map<Aws::String, Aws::String>>
375 template <
typename ExpressionAttributeNamesKeyT = Aws::String,
typename ExpressionAttributeNamesValueT = Aws::String>
377 m_expressionAttributeNamesHasBeenSet =
true;
378 m_expressionAttributeNames.emplace(std::forward<ExpressionAttributeNamesKeyT>(key),
379 std::forward<ExpressionAttributeNamesValueT>(value));
402 template <
typename ExpressionAttributeValuesT = Aws::Map<Aws::String, AttributeValue>>
404 m_expressionAttributeValuesHasBeenSet =
true;
405 m_expressionAttributeValues = std::forward<ExpressionAttributeValuesT>(value);
407 template <
typename ExpressionAttributeValuesT = Aws::Map<Aws::String, AttributeValue>>
412 template <
typename ExpressionAttributeValuesKeyT = Aws::String,
typename ExpressionAttributeValuesValueT = AttributeValue>
414 m_expressionAttributeValuesHasBeenSet =
true;
415 m_expressionAttributeValues.emplace(std::forward<ExpressionAttributeValuesKeyT>(key),
416 std::forward<ExpressionAttributeValuesValueT>(value));
430 return m_returnValuesOnConditionCheckFailure;
434 m_returnValuesOnConditionCheckFailureHasBeenSet =
true;
435 m_returnValuesOnConditionCheckFailure = value;
468 bool m_tableNameHasBeenSet =
false;
469 bool m_keyHasBeenSet =
false;
470 bool m_attributeUpdatesHasBeenSet =
false;
471 bool m_expectedHasBeenSet =
false;
472 bool m_conditionalOperatorHasBeenSet =
false;
473 bool m_returnValuesHasBeenSet =
false;
474 bool m_returnConsumedCapacityHasBeenSet =
false;
475 bool m_returnItemCollectionMetricsHasBeenSet =
false;
476 bool m_updateExpressionHasBeenSet =
false;
477 bool m_conditionExpressionHasBeenSet =
false;
478 bool m_expressionAttributeNamesHasBeenSet =
false;
479 bool m_expressionAttributeValuesHasBeenSet =
false;
480 bool m_returnValuesOnConditionCheckFailureHasBeenSet =
false;
Aws::Endpoint::EndpointParameters EndpointParameters
UpdateItemRequest & WithReturnItemCollectionMetrics(ReturnItemCollectionMetrics value)
bool ExpressionAttributeNamesHasBeenSet() const
void SetAttributeUpdates(AttributeUpdatesT &&value)
UpdateItemRequest & WithUpdateExpression(UpdateExpressionT &&value)
ReturnValue GetReturnValues() const
const Aws::String & GetConditionExpression() const
bool TableNameHasBeenSet() const
UpdateItemRequest & WithExpected(ExpectedT &&value)
bool ConditionExpressionHasBeenSet() const
UpdateItemRequest & AddExpressionAttributeValues(ExpressionAttributeValuesKeyT &&key, ExpressionAttributeValuesValueT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, AttributeValueUpdate > & GetAttributeUpdates() const
UpdateItemRequest & WithReturnConsumedCapacity(ReturnConsumedCapacity value)
ReturnValuesOnConditionCheckFailure GetReturnValuesOnConditionCheckFailure() const
void SetReturnConsumedCapacity(ReturnConsumedCapacity value)
bool ExpectedHasBeenSet() const
void SetConditionExpression(ConditionExpressionT &&value)
UpdateItemRequest & AddKey(KeyKeyT &&key, KeyValueT &&value)
UpdateItemRequest & WithTableName(TableNameT &&value)
void SetKey(KeyT &&value)
UpdateItemRequest & AddExpressionAttributeNames(ExpressionAttributeNamesKeyT &&key, ExpressionAttributeNamesValueT &&value)
void SetConditionalOperator(ConditionalOperator value)
AWS_DYNAMODB_API UpdateItemRequest()=default
bool ConditionalOperatorHasBeenSet() const
bool UpdateExpressionHasBeenSet() const
void SetTableName(TableNameT &&value)
void SetExpressionAttributeNames(ExpressionAttributeNamesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetExpressionAttributeNames() const
void SetExpected(ExpectedT &&value)
AWS_DYNAMODB_API EndpointParameters GetEndpointContextParams() const override
bool ReturnValuesHasBeenSet() const
const Aws::String & GetUpdateExpression() const
bool ReturnValuesOnConditionCheckFailureHasBeenSet() const
bool KeyHasBeenSet() const
UpdateItemRequest & WithConditionExpression(ConditionExpressionT &&value)
UpdateItemRequest & WithExpressionAttributeValues(ExpressionAttributeValuesT &&value)
AWS_DYNAMODB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateItemRequest & WithReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure value)
const Aws::Map< Aws::String, ExpectedAttributeValue > & GetExpected() const
void SetReturnItemCollectionMetrics(ReturnItemCollectionMetrics value)
bool ReturnConsumedCapacityHasBeenSet() const
const Aws::Map< Aws::String, AttributeValue > & GetExpressionAttributeValues() const
AWS_DYNAMODB_API Aws::String SerializePayload() const override
ReturnItemCollectionMetrics GetReturnItemCollectionMetrics() const
UpdateItemRequest & AddExpected(ExpectedKeyT &&key, ExpectedValueT &&value)
void SetExpressionAttributeValues(ExpressionAttributeValuesT &&value)
UpdateItemRequest & WithConditionalOperator(ConditionalOperator value)
bool ReturnItemCollectionMetricsHasBeenSet() const
ReturnConsumedCapacity GetReturnConsumedCapacity() const
UpdateItemRequest & AddAttributeUpdates(AttributeUpdatesKeyT &&key, AttributeUpdatesValueT &&value)
bool ExpressionAttributeValuesHasBeenSet() const
void SetUpdateExpression(UpdateExpressionT &&value)
ConditionalOperator GetConditionalOperator() const
UpdateItemRequest & WithKey(KeyT &&value)
bool AttributeUpdatesHasBeenSet() const
const Aws::String & GetTableName() const
UpdateItemRequest & WithExpressionAttributeNames(ExpressionAttributeNamesT &&value)
void SetReturnValues(ReturnValue value)
UpdateItemRequest & WithAttributeUpdates(AttributeUpdatesT &&value)
const Aws::Map< Aws::String, AttributeValue > & GetKey() const
UpdateItemRequest & WithReturnValues(ReturnValue value)
void SetReturnValuesOnConditionCheckFailure(ReturnValuesOnConditionCheckFailure value)
ReturnValuesOnConditionCheckFailure
ReturnItemCollectionMetrics
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