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/AttributeValueUpdate.h>
18#include <aws/dynamodb/model/ExpectedAttributeValue.h>
61 template<
typename TableNameT = Aws::String>
62 void SetTableName(TableNameT&& value) { m_tableNameHasBeenSet =
true; m_tableName = std::forward<TableNameT>(value); }
63 template<
typename TableNameT = Aws::String>
77 template<
typename KeyT = Aws::Map<Aws::String, AttributeValue>>
78 void SetKey(KeyT&& value) { m_keyHasBeenSet =
true; m_key = std::forward<KeyT>(value); }
79 template<
typename KeyT = Aws::Map<Aws::String, AttributeValue>>
81 template<
typename KeyKeyT = Aws::String,
typename KeyValueT = AttributeValue>
83 m_keyHasBeenSet =
true; m_key.emplace(std::forward<KeyKeyT>(key), std::forward<KeyValueT>(value));
return *
this;
96 template<
typename AttributeUpdatesT = Aws::Map<Aws::String, AttributeValueUpdate>>
97 void SetAttributeUpdates(AttributeUpdatesT&& value) { m_attributeUpdatesHasBeenSet =
true; m_attributeUpdates = std::forward<AttributeUpdatesT>(value); }
98 template<
typename AttributeUpdatesT = Aws::Map<Aws::String, AttributeValueUpdate>>
100 template<
typename AttributeUpdatesKeyT = Aws::String,
typename AttributeUpdatesValueT = AttributeValueUpdate>
102 m_attributeUpdatesHasBeenSet =
true; m_attributeUpdates.emplace(std::forward<AttributeUpdatesKeyT>(key), std::forward<AttributeUpdatesValueT>(value));
return *
this;
115 template<
typename ExpectedT = Aws::Map<Aws::String, ExpectedAttributeValue>>
116 void SetExpected(ExpectedT&& value) { m_expectedHasBeenSet =
true; m_expected = std::forward<ExpectedT>(value); }
117 template<
typename ExpectedT = Aws::Map<Aws::String, ExpectedAttributeValue>>
119 template<
typename ExpectedKeyT = Aws::String,
typename ExpectedValueT = ExpectedAttributeValue>
121 m_expectedHasBeenSet =
true; m_expected.emplace(std::forward<ExpectedKeyT>(key), std::forward<ExpectedValueT>(value));
return *
this;
247 template<
typename UpdateExpressionT = Aws::String>
248 void SetUpdateExpression(UpdateExpressionT&& value) { m_updateExpressionHasBeenSet =
true; m_updateExpression = std::forward<UpdateExpressionT>(value); }
249 template<
typename UpdateExpressionT = Aws::String>
268 template<
typename ConditionExpressionT = Aws::String>
269 void SetConditionExpression(ConditionExpressionT&& value) { m_conditionExpressionHasBeenSet =
true; m_conditionExpression = std::forward<ConditionExpressionT>(value); }
270 template<
typename ConditionExpressionT = Aws::String>
302 template<
typename ExpressionAttributeNamesT = Aws::Map<Aws::String, Aws::String>>
303 void SetExpressionAttributeNames(ExpressionAttributeNamesT&& value) { m_expressionAttributeNamesHasBeenSet =
true; m_expressionAttributeNames = std::forward<ExpressionAttributeNamesT>(value); }
304 template<
typename ExpressionAttributeNamesT = Aws::Map<Aws::String, Aws::String>>
306 template<
typename ExpressionAttributeNamesKeyT = Aws::String,
typename ExpressionAttributeNamesValueT = Aws::String>
308 m_expressionAttributeNamesHasBeenSet =
true; m_expressionAttributeNames.emplace(std::forward<ExpressionAttributeNamesKeyT>(key), std::forward<ExpressionAttributeNamesValueT>(value));
return *
this;
330 template<
typename ExpressionAttributeValuesT = Aws::Map<Aws::String, AttributeValue>>
331 void SetExpressionAttributeValues(ExpressionAttributeValuesT&& value) { m_expressionAttributeValuesHasBeenSet =
true; m_expressionAttributeValues = std::forward<ExpressionAttributeValuesT>(value); }
332 template<
typename ExpressionAttributeValuesT = Aws::Map<Aws::String, AttributeValue>>
334 template<
typename ExpressionAttributeValuesKeyT = Aws::String,
typename ExpressionAttributeValuesValueT = AttributeValue>
336 m_expressionAttributeValuesHasBeenSet =
true; m_expressionAttributeValues.emplace(std::forward<ExpressionAttributeValuesKeyT>(key), std::forward<ExpressionAttributeValuesValueT>(value));
return *
this;
356 bool m_tableNameHasBeenSet =
false;
359 bool m_keyHasBeenSet =
false;
362 bool m_attributeUpdatesHasBeenSet =
false;
365 bool m_expectedHasBeenSet =
false;
368 bool m_conditionalOperatorHasBeenSet =
false;
371 bool m_returnValuesHasBeenSet =
false;
374 bool m_returnConsumedCapacityHasBeenSet =
false;
377 bool m_returnItemCollectionMetricsHasBeenSet =
false;
380 bool m_updateExpressionHasBeenSet =
false;
383 bool m_conditionExpressionHasBeenSet =
false;
386 bool m_expressionAttributeNamesHasBeenSet =
false;
389 bool m_expressionAttributeValuesHasBeenSet =
false;
392 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