AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
TransactionCanceledException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/dynamodb/DynamoDB_EXPORTS.h>
10#include <aws/dynamodb/model/CancellationReason.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DynamoDB {
22namespace Model {
23
103 public:
104 AWS_DYNAMODB_API TransactionCanceledException() = default;
107 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
108
110
111 inline const Aws::String& GetMessage() const { return m_message; }
112 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
113 template <typename MessageT = Aws::String>
114 void SetMessage(MessageT&& value) {
115 m_messageHasBeenSet = true;
116 m_message = std::forward<MessageT>(value);
117 }
118 template <typename MessageT = Aws::String>
120 SetMessage(std::forward<MessageT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::Vector<CancellationReason>& GetCancellationReasons() const { return m_cancellationReasons; }
130 inline bool CancellationReasonsHasBeenSet() const { return m_cancellationReasonsHasBeenSet; }
131 template <typename CancellationReasonsT = Aws::Vector<CancellationReason>>
132 void SetCancellationReasons(CancellationReasonsT&& value) {
133 m_cancellationReasonsHasBeenSet = true;
134 m_cancellationReasons = std::forward<CancellationReasonsT>(value);
135 }
136 template <typename CancellationReasonsT = Aws::Vector<CancellationReason>>
138 SetCancellationReasons(std::forward<CancellationReasonsT>(value));
139 return *this;
140 }
141 template <typename CancellationReasonsT = CancellationReason>
143 m_cancellationReasonsHasBeenSet = true;
144 m_cancellationReasons.emplace_back(std::forward<CancellationReasonsT>(value));
145 return *this;
146 }
148 private:
149 Aws::String m_message;
150
151 Aws::Vector<CancellationReason> m_cancellationReasons;
152 bool m_messageHasBeenSet = false;
153 bool m_cancellationReasonsHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace DynamoDB
158} // namespace Aws
TransactionCanceledException & WithCancellationReasons(CancellationReasonsT &&value)
TransactionCanceledException & WithMessage(MessageT &&value)
AWS_DYNAMODB_API TransactionCanceledException & operator=(Aws::Utils::Json::JsonView jsonValue)
TransactionCanceledException & AddCancellationReasons(CancellationReasonsT &&value)
AWS_DYNAMODB_API TransactionCanceledException(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API TransactionCanceledException()=default
const Aws::Vector< CancellationReason > & GetCancellationReasons() const
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue