AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ItemT = Aws::Map<Aws::String, AttributeValue>>
53 void SetItem(ItemT&& value) { m_itemHasBeenSet = true; m_item = std::forward<ItemT>(value); }
54 template<typename ItemT = Aws::Map<Aws::String, AttributeValue>>
55 CancellationReason& WithItem(ItemT&& value) { SetItem(std::forward<ItemT>(value)); return *this;}
56 template<typename ItemKeyT = Aws::String, typename ItemValueT = AttributeValue>
57 CancellationReason& AddItem(ItemKeyT&& key, ItemValueT&& value) {
58 m_itemHasBeenSet = true; m_item.emplace(std::forward<ItemKeyT>(key), std::forward<ItemValueT>(value)); return *this;
59 }
61
63
66 inline const Aws::String& GetCode() const { return m_code; }
67 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
68 template<typename CodeT = Aws::String>
69 void SetCode(CodeT&& value) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
70 template<typename CodeT = Aws::String>
71 CancellationReason& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
73
75
78 inline const Aws::String& GetMessage() const { return m_message; }
79 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
80 template<typename MessageT = Aws::String>
81 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
82 template<typename MessageT = Aws::String>
83 CancellationReason& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
85 private:
86
88 bool m_itemHasBeenSet = false;
89
90 Aws::String m_code;
91 bool m_codeHasBeenSet = false;
92
93 Aws::String m_message;
94 bool m_messageHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace DynamoDB
99} // namespace Aws
CancellationReason & WithMessage(MessageT &&value)
CancellationReason & WithItem(ItemT &&value)
AWS_DYNAMODB_API CancellationReason & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API CancellationReason()=default
AWS_DYNAMODB_API CancellationReason(Aws::Utils::Json::JsonView jsonValue)
CancellationReason & AddItem(ItemKeyT &&key, ItemValueT &&value)
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
CancellationReason & WithCode(CodeT &&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