/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents a request to perform a check that an item exists or to check the
* condition of specific attributes of the item.See Also:
AWS
* API Reference
The primary key of the item to be checked. Each element consists of an * attribute name and a value for that attribute.
*/ inline const Aws::MapThe primary key of the item to be checked. 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 checked. 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 checked. 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 checked. Each element consists of an * attribute name and a value for that attribute.
*/ inline ConditionCheck& WithKey(const Aws::MapThe primary key of the item to be checked. Each element consists of an * attribute name and a value for that attribute.
*/ inline ConditionCheck& WithKey(Aws::MapThe primary key of the item to be checked. Each element consists of an * attribute name and a value for that attribute.
*/ inline ConditionCheck& 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 checked. Each element consists of an * attribute name and a value for that attribute.
*/ inline ConditionCheck& 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 checked. Each element consists of an * attribute name and a value for that attribute.
*/ inline ConditionCheck& 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 checked. Each element consists of an * attribute name and a value for that attribute.
*/ inline ConditionCheck& 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 checked. Each element consists of an * attribute name and a value for that attribute.
*/ inline ConditionCheck& 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 checked. Each element consists of an * attribute name and a value for that attribute.
*/ inline ConditionCheck& AddKey(const char* key, const AttributeValue& value) { m_keyHasBeenSet = true; m_key.emplace(key, value); return *this; } /** *Name of the table for the check item request.
*/ inline const Aws::String& GetTableName() const{ return m_tableName; } /** *Name of the table for the check item request.
*/ inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; } /** *Name of the table for the check item request.
*/ inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; } /** *Name of the table for the check item request.
*/ inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); } /** *Name of the table for the check item request.
*/ inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); } /** *Name of the table for the check item request.
*/ inline ConditionCheck& WithTableName(const Aws::String& value) { SetTableName(value); return *this;} /** *Name of the table for the check item request.
*/ inline ConditionCheck& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;} /** *Name of the table for the check item request.
*/ inline ConditionCheck& WithTableName(const char* value) { SetTableName(value); return *this;} /** *A condition that must be satisfied in order for a conditional update to * succeed. For more information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ inline const Aws::String& GetConditionExpression() const{ return m_conditionExpression; } /** *A condition that must be satisfied in order for a conditional update to * succeed. For more information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ inline bool ConditionExpressionHasBeenSet() const { return m_conditionExpressionHasBeenSet; } /** *A condition that must be satisfied in order for a conditional update to * succeed. For more information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ 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. For more information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ 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. For more information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ 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. For more information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& WithConditionExpression(const Aws::String& value) { SetConditionExpression(value); return *this;} /** *A condition that must be satisfied in order for a conditional update to * succeed. For more information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& WithConditionExpression(Aws::String&& value) { SetConditionExpression(std::move(value)); return *this;} /** *A condition that must be satisfied in order for a conditional update to * succeed. For more information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& WithConditionExpression(const char* value) { SetConditionExpression(value); return *this;} /** *One or more substitution tokens for attribute names in an expression. For * more information, see Expression * attribute names in the Amazon DynamoDB Developer Guide.
*/ inline const Aws::MapOne or more substitution tokens for attribute names in an expression. For * more information, see Expression * attribute names in the Amazon DynamoDB Developer Guide.
*/ inline bool ExpressionAttributeNamesHasBeenSet() const { return m_expressionAttributeNamesHasBeenSet; } /** *One or more substitution tokens for attribute names in an expression. For * more information, see Expression * attribute names in the Amazon DynamoDB Developer Guide.
*/ inline void SetExpressionAttributeNames(const Aws::MapOne or more substitution tokens for attribute names in an expression. For * more information, see Expression * attribute names in the Amazon DynamoDB Developer Guide.
*/ inline void SetExpressionAttributeNames(Aws::MapOne or more substitution tokens for attribute names in an expression. For * more information, see Expression * attribute names in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& WithExpressionAttributeNames(const Aws::MapOne or more substitution tokens for attribute names in an expression. For * more information, see Expression * attribute names in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& WithExpressionAttributeNames(Aws::MapOne or more substitution tokens for attribute names in an expression. For * more information, see Expression * attribute names in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& 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. For * more information, see Expression * attribute names in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& 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. For * more information, see Expression * attribute names in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& 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. For * more information, see Expression * attribute names in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& 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. For * more information, see Expression * attribute names in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& 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. For * more information, see Expression * attribute names in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& 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. For * more information, see Expression * attribute names in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& 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. For more * information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ inline const Aws::MapOne or more values that can be substituted in an expression. For more * information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ inline bool ExpressionAttributeValuesHasBeenSet() const { return m_expressionAttributeValuesHasBeenSet; } /** *One or more values that can be substituted in an expression. For more * information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ inline void SetExpressionAttributeValues(const Aws::MapOne or more values that can be substituted in an expression. For more * information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ inline void SetExpressionAttributeValues(Aws::MapOne or more values that can be substituted in an expression. For more * information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& WithExpressionAttributeValues(const Aws::MapOne or more values that can be substituted in an expression. For more * information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& WithExpressionAttributeValues(Aws::MapOne or more values that can be substituted in an expression. For more * information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& 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. For more * information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& 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. For more * information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& 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. For more * information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& 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. For more * information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& 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. For more * information, see Condition * expressions in the Amazon DynamoDB Developer Guide.
*/ inline ConditionCheck& 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 ConditionCheck
condition fails. For
* ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
* ALL_OLD.
Use ReturnValuesOnConditionCheckFailure
to get the item
* attributes if the ConditionCheck
condition fails. For
* ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
* ALL_OLD.
Use ReturnValuesOnConditionCheckFailure
to get the item
* attributes if the ConditionCheck
condition fails. For
* ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
* ALL_OLD.
Use ReturnValuesOnConditionCheckFailure
to get the item
* attributes if the ConditionCheck
condition fails. For
* ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
* ALL_OLD.
Use ReturnValuesOnConditionCheckFailure
to get the item
* attributes if the ConditionCheck
condition fails. For
* ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
* ALL_OLD.
Use ReturnValuesOnConditionCheckFailure
to get the item
* attributes if the ConditionCheck
condition fails. For
* ReturnValuesOnConditionCheckFailure
, the valid values are: NONE and
* ALL_OLD.