/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DynamoDB { namespace Model { /** *

A condition specified in the operation could not be evaluated.

See * Also:

AWS * API Reference

*/ class ConditionalCheckFailedException { public: AWS_DYNAMODB_API ConditionalCheckFailedException(); AWS_DYNAMODB_API ConditionalCheckFailedException(Aws::Utils::Json::JsonView jsonValue); AWS_DYNAMODB_API ConditionalCheckFailedException& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The conditional request failed.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The conditional request failed.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

The conditional request failed.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

The conditional request failed.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

The conditional request failed.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

The conditional request failed.

*/ inline ConditionalCheckFailedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The conditional request failed.

*/ inline ConditionalCheckFailedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The conditional request failed.

*/ inline ConditionalCheckFailedException& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

Item which caused the ConditionalCheckFailedException.

*/ inline const Aws::Map& GetItem() const{ return m_item; } /** *

Item which caused the ConditionalCheckFailedException.

*/ inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; } /** *

Item which caused the ConditionalCheckFailedException.

*/ inline void SetItem(const Aws::Map& value) { m_itemHasBeenSet = true; m_item = value; } /** *

Item which caused the ConditionalCheckFailedException.

*/ inline void SetItem(Aws::Map&& value) { m_itemHasBeenSet = true; m_item = std::move(value); } /** *

Item which caused the ConditionalCheckFailedException.

*/ inline ConditionalCheckFailedException& WithItem(const Aws::Map& value) { SetItem(value); return *this;} /** *

Item which caused the ConditionalCheckFailedException.

*/ inline ConditionalCheckFailedException& WithItem(Aws::Map&& value) { SetItem(std::move(value)); return *this;} /** *

Item which caused the ConditionalCheckFailedException.

*/ inline ConditionalCheckFailedException& AddItem(const Aws::String& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; } /** *

Item which caused the ConditionalCheckFailedException.

*/ inline ConditionalCheckFailedException& AddItem(Aws::String&& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), value); return *this; } /** *

Item which caused the ConditionalCheckFailedException.

*/ inline ConditionalCheckFailedException& AddItem(const Aws::String& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; } /** *

Item which caused the ConditionalCheckFailedException.

*/ inline ConditionalCheckFailedException& AddItem(Aws::String&& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), std::move(value)); return *this; } /** *

Item which caused the ConditionalCheckFailedException.

*/ inline ConditionalCheckFailedException& AddItem(const char* key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; } /** *

Item which caused the ConditionalCheckFailedException.

*/ inline ConditionalCheckFailedException& AddItem(const char* key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; } private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::Map m_item; bool m_itemHasBeenSet = false; }; } // namespace Model } // namespace DynamoDB } // namespace Aws