AWS SDK for C++

AWS SDK for C++ Version 1.11.870

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
106 public:
107 AWS_DYNAMODB_API TransactionCanceledException() = default;
110 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
111
113
114 inline const Aws::String& GetMessage() const { return m_message; }
115 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
116 template <typename MessageT = Aws::String>
117 void SetMessage(MessageT&& value) {
118 m_messageHasBeenSet = true;
119 m_message = std::forward<MessageT>(value);
120 }
121 template <typename MessageT = Aws::String>
123 SetMessage(std::forward<MessageT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Vector<CancellationReason>& GetCancellationReasons() const { return m_cancellationReasons; }
133 inline bool CancellationReasonsHasBeenSet() const { return m_cancellationReasonsHasBeenSet; }
134 template <typename CancellationReasonsT = Aws::Vector<CancellationReason>>
135 void SetCancellationReasons(CancellationReasonsT&& value) {
136 m_cancellationReasonsHasBeenSet = true;
137 m_cancellationReasons = std::forward<CancellationReasonsT>(value);
138 }
139 template <typename CancellationReasonsT = Aws::Vector<CancellationReason>>
141 SetCancellationReasons(std::forward<CancellationReasonsT>(value));
142 return *this;
143 }
144 template <typename CancellationReasonsT = CancellationReason>
146 m_cancellationReasonsHasBeenSet = true;
147 m_cancellationReasons.emplace_back(std::forward<CancellationReasonsT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_message;
153
154 Aws::Vector<CancellationReason> m_cancellationReasons;
155 bool m_messageHasBeenSet = false;
156 bool m_cancellationReasonsHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace DynamoDB
161} // 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