AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
120 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
121 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
122 inline TransactionCanceledException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
123 inline TransactionCanceledException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
124 inline TransactionCanceledException& WithMessage(const char* value) { SetMessage(value); return *this;}
126
128
131 inline const Aws::Vector<CancellationReason>& GetCancellationReasons() const{ return m_cancellationReasons; }
132 inline bool CancellationReasonsHasBeenSet() const { return m_cancellationReasonsHasBeenSet; }
133 inline void SetCancellationReasons(const Aws::Vector<CancellationReason>& value) { m_cancellationReasonsHasBeenSet = true; m_cancellationReasons = value; }
134 inline void SetCancellationReasons(Aws::Vector<CancellationReason>&& value) { m_cancellationReasonsHasBeenSet = true; m_cancellationReasons = std::move(value); }
137 inline TransactionCanceledException& AddCancellationReasons(const CancellationReason& value) { m_cancellationReasonsHasBeenSet = true; m_cancellationReasons.push_back(value); return *this; }
138 inline TransactionCanceledException& AddCancellationReasons(CancellationReason&& value) { m_cancellationReasonsHasBeenSet = true; m_cancellationReasons.push_back(std::move(value)); return *this; }
140 private:
141
142 Aws::String m_message;
143 bool m_messageHasBeenSet = false;
144
145 Aws::Vector<CancellationReason> m_cancellationReasons;
146 bool m_cancellationReasonsHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace DynamoDB
151} // namespace Aws
TransactionCanceledException & WithMessage(Aws::String &&value)
TransactionCanceledException & AddCancellationReasons(const CancellationReason &value)
void SetCancellationReasons(const Aws::Vector< CancellationReason > &value)
TransactionCanceledException & AddCancellationReasons(CancellationReason &&value)
AWS_DYNAMODB_API TransactionCanceledException & operator=(Aws::Utils::Json::JsonView jsonValue)
TransactionCanceledException & WithCancellationReasons(const Aws::Vector< CancellationReason > &value)
TransactionCanceledException & WithMessage(const char *value)
AWS_DYNAMODB_API TransactionCanceledException(Aws::Utils::Json::JsonView jsonValue)
void SetCancellationReasons(Aws::Vector< CancellationReason > &&value)
TransactionCanceledException & WithMessage(const Aws::String &value)
const Aws::Vector< CancellationReason > & GetCancellationReasons() const
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
TransactionCanceledException & WithCancellationReasons(Aws::Vector< CancellationReason > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue