/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents a request to perform an UpdateItem
* operation.See Also:
AWS API
* Reference
The primary key of the item to be updated. Each element consists of an * attribute name and a value for that attribute.
*/ inline const Aws::MapThe primary key of the item to be updated. Each element consists of an * attribute name and a value for that attribute.
*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *The primary key of the item to be updated. Each element consists of an * attribute name and a value for that attribute.
*/ inline void SetKey(const Aws::MapThe primary key of the item to be updated. Each element consists of an * attribute name and a value for that attribute.
*/ inline void SetKey(Aws::MapThe primary key of the item to be updated. Each element consists of an * attribute name and a value for that attribute.
*/ inline Update& WithKey(const Aws::MapThe primary key of the item to be updated. Each element consists of an * attribute name and a value for that attribute.
*/ inline Update& WithKey(Aws::MapThe primary key of the item to be updated. Each element consists of an * attribute name and a value for that attribute.
*/ inline Update& AddKey(const Aws::String& key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key.emplace(key, value); return *this; } /** *The primary key of the item to be updated. Each element consists of an * attribute name and a value for that attribute.
*/ inline Update& AddKey(Aws::String&& key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key.emplace(std::move(key), value); return *this; } /** *The primary key of the item to be updated. Each element consists of an * attribute name and a value for that attribute.
*/ inline Update& AddKey(const Aws::String& key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key.emplace(key, std::move(value)); return *this; } /** *The primary key of the item to be updated. Each element consists of an * attribute name and a value for that attribute.
*/ inline Update& AddKey(Aws::String&& key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key.emplace(std::move(key), std::move(value)); return *this; } /** *The primary key of the item to be updated. Each element consists of an * attribute name and a value for that attribute.
*/ inline Update& AddKey(const char* key, AttributeValue&& value) { m_keyHasBeenSet = true; m_key.emplace(key, std::move(value)); return *this; } /** *The primary key of the item to be updated. Each element consists of an * attribute name and a value for that attribute.
*/ inline Update& AddKey(const char* key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key.emplace(key, value); return *this; } /** *An expression that defines one or more attributes to be updated, the action * to be performed on them, and new value(s) for them.
*/ inline const Aws::String& GetUpdateExpression() const{ return m_updateExpression; } /** *An expression that defines one or more attributes to be updated, the action * to be performed on them, and new value(s) for them.
*/ inline bool UpdateExpressionHasBeenSet() const { return m_updateExpressionHasBeenSet; } /** *An expression that defines one or more attributes to be updated, the action * to be performed on them, and new value(s) for them.
*/ inline void SetUpdateExpression(const Aws::String& value) { m_updateExpressionHasBeenSet = true; m_updateExpression = value; } /** *An expression that defines one or more attributes to be updated, the action * to be performed on them, and new value(s) for them.
*/ inline void SetUpdateExpression(Aws::String&& value) { m_updateExpressionHasBeenSet = true; m_updateExpression = std::move(value); } /** *An expression that defines one or more attributes to be updated, the action * to be performed on them, and new value(s) for them.
*/ inline void SetUpdateExpression(const char* value) { m_updateExpressionHasBeenSet = true; m_updateExpression.assign(value); } /** *An expression that defines one or more attributes to be updated, the action * to be performed on them, and new value(s) for them.
*/ inline Update& WithUpdateExpression(const Aws::String& value) { SetUpdateExpression(value); return *this;} /** *An expression that defines one or more attributes to be updated, the action * to be performed on them, and new value(s) for them.
*/ inline Update& WithUpdateExpression(Aws::String&& value) { SetUpdateExpression(std::move(value)); return *this;} /** *An expression that defines one or more attributes to be updated, the action * to be performed on them, and new value(s) for them.
*/ inline Update& WithUpdateExpression(const char* value) { SetUpdateExpression(value); return *this;} /** *Name of the table for the UpdateItem
request.
Name of the table for the UpdateItem
request.
Name of the table for the UpdateItem
request.
Name of the table for the UpdateItem
request.
Name of the table for the UpdateItem
request.
Name of the table for the UpdateItem
request.
Name of the table for the UpdateItem
request.
Name of the table for the UpdateItem
request.
A condition that must be satisfied in order for a conditional update to * succeed.
*/ inline const Aws::String& GetConditionExpression() const{ return m_conditionExpression; } /** *A condition that must be satisfied in order for a conditional update to * succeed.
*/ inline bool ConditionExpressionHasBeenSet() const { return m_conditionExpressionHasBeenSet; } /** *A condition that must be satisfied in order for a conditional update to * succeed.
*/ inline void SetConditionExpression(const Aws::String& value) { m_conditionExpressionHasBeenSet = true; m_conditionExpression = value; } /** *A condition that must be satisfied in order for a conditional update to * succeed.
*/ inline void SetConditionExpression(Aws::String&& value) { m_conditionExpressionHasBeenSet = true; m_conditionExpression = std::move(value); } /** *A condition that must be satisfied in order for a conditional update to * succeed.
*/ inline void SetConditionExpression(const char* value) { m_conditionExpressionHasBeenSet = true; m_conditionExpression.assign(value); } /** *A condition that must be satisfied in order for a conditional update to * succeed.
*/ inline Update& WithConditionExpression(const Aws::String& value) { SetConditionExpression(value); return *this;} /** *A condition that must be satisfied in order for a conditional update to * succeed.
*/ inline Update& WithConditionExpression(Aws::String&& value) { SetConditionExpression(std::move(value)); return *this;} /** *A condition that must be satisfied in order for a conditional update to * succeed.
*/ inline Update& WithConditionExpression(const char* value) { SetConditionExpression(value); return *this;} /** *One or more substitution tokens for attribute names in an expression.
*/ inline const Aws::MapOne or more substitution tokens for attribute names in an expression.
*/ inline bool ExpressionAttributeNamesHasBeenSet() const { return m_expressionAttributeNamesHasBeenSet; } /** *One or more substitution tokens for attribute names in an expression.
*/ inline void SetExpressionAttributeNames(const Aws::MapOne or more substitution tokens for attribute names in an expression.
*/ inline void SetExpressionAttributeNames(Aws::MapOne or more substitution tokens for attribute names in an expression.
*/ inline Update& WithExpressionAttributeNames(const Aws::MapOne or more substitution tokens for attribute names in an expression.
*/ inline Update& WithExpressionAttributeNames(Aws::MapOne or more substitution tokens for attribute names in an expression.
*/ inline Update& AddExpressionAttributeNames(const Aws::String& key, const Aws::String& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, value); return *this; } /** *One or more substitution tokens for attribute names in an expression.
*/ inline Update& AddExpressionAttributeNames(Aws::String&& key, const Aws::String& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), value); return *this; } /** *One or more substitution tokens for attribute names in an expression.
*/ inline Update& AddExpressionAttributeNames(const Aws::String& key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, std::move(value)); return *this; } /** *One or more substitution tokens for attribute names in an expression.
*/ inline Update& AddExpressionAttributeNames(Aws::String&& key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), std::move(value)); return *this; } /** *One or more substitution tokens for attribute names in an expression.
*/ inline Update& AddExpressionAttributeNames(const char* key, Aws::String&& value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, std::move(value)); return *this; } /** *One or more substitution tokens for attribute names in an expression.
*/ inline Update& AddExpressionAttributeNames(Aws::String&& key, const char* value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(std::move(key), value); return *this; } /** *One or more substitution tokens for attribute names in an expression.
*/ inline Update& AddExpressionAttributeNames(const char* key, const char* value) { m_expressionAttributeNamesHasBeenSet = true; m_expressionAttributeNames.emplace(key, value); return *this; } /** *One or more values that can be substituted in an expression.
*/ inline const Aws::MapOne or more values that can be substituted in an expression.
*/ inline bool ExpressionAttributeValuesHasBeenSet() const { return m_expressionAttributeValuesHasBeenSet; } /** *One or more values that can be substituted in an expression.
*/ inline void SetExpressionAttributeValues(const Aws::MapOne or more values that can be substituted in an expression.
*/ inline void SetExpressionAttributeValues(Aws::MapOne or more values that can be substituted in an expression.
*/ inline Update& WithExpressionAttributeValues(const Aws::MapOne or more values that can be substituted in an expression.
*/ inline Update& WithExpressionAttributeValues(Aws::MapOne or more values that can be substituted in an expression.
*/ inline Update& AddExpressionAttributeValues(const Aws::String& key, const AttributeValue& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, value); return *this; } /** *One or more values that can be substituted in an expression.
*/ inline Update& AddExpressionAttributeValues(Aws::String&& key, const AttributeValue& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(std::move(key), value); return *this; } /** *One or more values that can be substituted in an expression.
*/ inline Update& AddExpressionAttributeValues(const Aws::String& key, AttributeValue&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, std::move(value)); return *this; } /** *One or more values that can be substituted in an expression.
*/ inline Update& AddExpressionAttributeValues(Aws::String&& key, AttributeValue&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(std::move(key), std::move(value)); return *this; } /** *One or more values that can be substituted in an expression.
*/ inline Update& AddExpressionAttributeValues(const char* key, AttributeValue&& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, std::move(value)); return *this; } /** *One or more values that can be substituted in an expression.
*/ inline Update& AddExpressionAttributeValues(const char* key, const AttributeValue& value) { m_expressionAttributeValuesHasBeenSet = true; m_expressionAttributeValues.emplace(key, value); return *this; } /** *Use ReturnValuesOnConditionCheckFailure
to get the item
* attributes if the Update
condition fails. For
* ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
* ALL_OLD.
Use ReturnValuesOnConditionCheckFailure
to get the item
* attributes if the Update
condition fails. For
* ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
* ALL_OLD.
Use ReturnValuesOnConditionCheckFailure
to get the item
* attributes if the Update
condition fails. For
* ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
* ALL_OLD.
Use ReturnValuesOnConditionCheckFailure
to get the item
* attributes if the Update
condition fails. For
* ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
* ALL_OLD.
Use ReturnValuesOnConditionCheckFailure
to get the item
* attributes if the Update
condition fails. For
* ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
* ALL_OLD.
Use ReturnValuesOnConditionCheckFailure
to get the item
* attributes if the Update
condition fails. For
* ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
* ALL_OLD.