AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TransactionCanceledException.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/AWSVector.h>
10#include <aws/dynamodb/model/CancellationReason.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
107 {
108 public:
109 AWS_DYNAMODB_API TransactionCanceledException() = default;
112 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
113
114
116
117 inline const Aws::String& GetMessage() const { return m_message; }
118 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
119 template<typename MessageT = Aws::String>
120 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
121 template<typename MessageT = Aws::String>
122 TransactionCanceledException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
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) { m_cancellationReasonsHasBeenSet = true; m_cancellationReasons = std::forward<CancellationReasonsT>(value); }
133 template<typename CancellationReasonsT = Aws::Vector<CancellationReason>>
134 TransactionCanceledException& WithCancellationReasons(CancellationReasonsT&& value) { SetCancellationReasons(std::forward<CancellationReasonsT>(value)); return *this;}
135 template<typename CancellationReasonsT = CancellationReason>
136 TransactionCanceledException& AddCancellationReasons(CancellationReasonsT&& value) { m_cancellationReasonsHasBeenSet = true; m_cancellationReasons.emplace_back(std::forward<CancellationReasonsT>(value)); return *this; }
138 private:
139
140 Aws::String m_message;
141 bool m_messageHasBeenSet = false;
142
143 Aws::Vector<CancellationReason> m_cancellationReasons;
144 bool m_cancellationReasonsHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace DynamoDB
149} // 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