AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConditionalCheckFailedException.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/dynamodb/model/AttributeValue.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DynamoDB
24{
25namespace Model
26{
27
35 {
36 public:
40 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetMessage() const{ return m_message; }
48 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
49 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
50 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
51 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
52 inline ConditionalCheckFailedException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
53 inline ConditionalCheckFailedException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
54 inline ConditionalCheckFailedException& WithMessage(const char* value) { SetMessage(value); return *this;}
56
58
61 inline const Aws::Map<Aws::String, AttributeValue>& GetItem() const{ return m_item; }
62 inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; }
63 inline void SetItem(const Aws::Map<Aws::String, AttributeValue>& value) { m_itemHasBeenSet = true; m_item = value; }
64 inline void SetItem(Aws::Map<Aws::String, AttributeValue>&& value) { m_itemHasBeenSet = true; m_item = std::move(value); }
67 inline ConditionalCheckFailedException& AddItem(const Aws::String& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; }
68 inline ConditionalCheckFailedException& AddItem(Aws::String&& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), value); return *this; }
69 inline ConditionalCheckFailedException& AddItem(const Aws::String& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; }
70 inline ConditionalCheckFailedException& AddItem(Aws::String&& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), std::move(value)); return *this; }
71 inline ConditionalCheckFailedException& AddItem(const char* key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; }
72 inline ConditionalCheckFailedException& AddItem(const char* key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; }
74 private:
75
76 Aws::String m_message;
77 bool m_messageHasBeenSet = false;
78
80 bool m_itemHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace DynamoDB
85} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
ConditionalCheckFailedException & AddItem(const Aws::String &key, AttributeValue &&value)
void SetItem(Aws::Map< Aws::String, AttributeValue > &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
ConditionalCheckFailedException & WithItem(Aws::Map< Aws::String, AttributeValue > &&value)
ConditionalCheckFailedException & AddItem(const char *key, const AttributeValue &value)
ConditionalCheckFailedException & AddItem(Aws::String &&key, AttributeValue &&value)
ConditionalCheckFailedException & WithItem(const Aws::Map< Aws::String, AttributeValue > &value)
AWS_DYNAMODB_API ConditionalCheckFailedException & operator=(Aws::Utils::Json::JsonView jsonValue)
ConditionalCheckFailedException & WithMessage(const Aws::String &value)
void SetItem(const Aws::Map< Aws::String, AttributeValue > &value)
ConditionalCheckFailedException & AddItem(Aws::String &&key, const AttributeValue &value)
AWS_DYNAMODB_API ConditionalCheckFailedException(Aws::Utils::Json::JsonView jsonValue)
ConditionalCheckFailedException & WithMessage(const char *value)
ConditionalCheckFailedException & WithMessage(Aws::String &&value)
ConditionalCheckFailedException & AddItem(const char *key, AttributeValue &&value)
ConditionalCheckFailedException & AddItem(const Aws::String &key, const AttributeValue &value)
const Aws::Map< Aws::String, AttributeValue > & GetItem() const
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
Aws::Utils::Json::JsonValue JsonValue