AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CancellationReason.h
1
6#pragma once
7#include <aws/dynamodb/DynamoDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.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
38 {
39 public:
40 AWS_DYNAMODB_API CancellationReason();
43 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::Map<Aws::String, AttributeValue>& GetItem() const{ return m_item; }
51 inline bool ItemHasBeenSet() const { return m_itemHasBeenSet; }
52 inline void SetItem(const Aws::Map<Aws::String, AttributeValue>& value) { m_itemHasBeenSet = true; m_item = value; }
53 inline void SetItem(Aws::Map<Aws::String, AttributeValue>&& value) { m_itemHasBeenSet = true; m_item = std::move(value); }
54 inline CancellationReason& WithItem(const Aws::Map<Aws::String, AttributeValue>& value) { SetItem(value); return *this;}
55 inline CancellationReason& WithItem(Aws::Map<Aws::String, AttributeValue>&& value) { SetItem(std::move(value)); return *this;}
56 inline CancellationReason& AddItem(const Aws::String& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; }
57 inline CancellationReason& AddItem(Aws::String&& key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), value); return *this; }
58 inline CancellationReason& AddItem(const Aws::String& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; }
59 inline CancellationReason& AddItem(Aws::String&& key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(std::move(key), std::move(value)); return *this; }
60 inline CancellationReason& AddItem(const char* key, AttributeValue&& value) { m_itemHasBeenSet = true; m_item.emplace(key, std::move(value)); return *this; }
61 inline CancellationReason& AddItem(const char* key, const AttributeValue& value) { m_itemHasBeenSet = true; m_item.emplace(key, value); return *this; }
63
65
68 inline const Aws::String& GetCode() const{ return m_code; }
69 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
70 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
71 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
72 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
73 inline CancellationReason& WithCode(const Aws::String& value) { SetCode(value); return *this;}
74 inline CancellationReason& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
75 inline CancellationReason& WithCode(const char* value) { SetCode(value); return *this;}
77
79
82 inline const Aws::String& GetMessage() const{ return m_message; }
83 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
84 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
85 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
86 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
87 inline CancellationReason& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
88 inline CancellationReason& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
89 inline CancellationReason& WithMessage(const char* value) { SetMessage(value); return *this;}
91 private:
92
94 bool m_itemHasBeenSet = false;
95
96 Aws::String m_code;
97 bool m_codeHasBeenSet = false;
98
99 Aws::String m_message;
100 bool m_messageHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace DynamoDB
105} // namespace Aws
http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html
CancellationReason & WithCode(const Aws::String &value)
CancellationReason & WithCode(const char *value)
void SetCode(const Aws::String &value)
CancellationReason & AddItem(const Aws::String &key, AttributeValue &&value)
CancellationReason & WithMessage(Aws::String &&value)
void SetMessage(const Aws::String &value)
AWS_DYNAMODB_API CancellationReason & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetItem(const Aws::Map< Aws::String, AttributeValue > &value)
CancellationReason & WithMessage(const Aws::String &value)
CancellationReason & WithMessage(const char *value)
CancellationReason & WithCode(Aws::String &&value)
CancellationReason & AddItem(Aws::String &&key, AttributeValue &&value)
CancellationReason & AddItem(const char *key, const AttributeValue &value)
CancellationReason & WithItem(Aws::Map< Aws::String, AttributeValue > &&value)
AWS_DYNAMODB_API CancellationReason(Aws::Utils::Json::JsonView jsonValue)
CancellationReason & AddItem(const Aws::String &key, const AttributeValue &value)
void SetItem(Aws::Map< Aws::String, AttributeValue > &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
CancellationReason & WithItem(const Aws::Map< Aws::String, AttributeValue > &value)
CancellationReason & AddItem(Aws::String &&key, const AttributeValue &value)
CancellationReason & AddItem(const char *key, 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