AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ThrottlingException.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/ThrottlingReason.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
34 public:
35 AWS_DYNAMODB_API ThrottlingException() = default;
38 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
42 inline const Aws::String& GetMessage() const { return m_message; }
43 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
44 template <typename MessageT = Aws::String>
45 void SetMessage(MessageT&& value) {
46 m_messageHasBeenSet = true;
47 m_message = std::forward<MessageT>(value);
48 }
49 template <typename MessageT = Aws::String>
50 ThrottlingException& WithMessage(MessageT&& value) {
51 SetMessage(std::forward<MessageT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::Vector<ThrottlingReason>& GetThrottlingReasons() const { return m_throttlingReasons; }
64 inline bool ThrottlingReasonsHasBeenSet() const { return m_throttlingReasonsHasBeenSet; }
65 template <typename ThrottlingReasonsT = Aws::Vector<ThrottlingReason>>
66 void SetThrottlingReasons(ThrottlingReasonsT&& value) {
67 m_throttlingReasonsHasBeenSet = true;
68 m_throttlingReasons = std::forward<ThrottlingReasonsT>(value);
69 }
70 template <typename ThrottlingReasonsT = Aws::Vector<ThrottlingReason>>
71 ThrottlingException& WithThrottlingReasons(ThrottlingReasonsT&& value) {
72 SetThrottlingReasons(std::forward<ThrottlingReasonsT>(value));
73 return *this;
74 }
75 template <typename ThrottlingReasonsT = ThrottlingReason>
76 ThrottlingException& AddThrottlingReasons(ThrottlingReasonsT&& value) {
77 m_throttlingReasonsHasBeenSet = true;
78 m_throttlingReasons.emplace_back(std::forward<ThrottlingReasonsT>(value));
79 return *this;
80 }
82 private:
83 Aws::String m_message;
84
85 Aws::Vector<ThrottlingReason> m_throttlingReasons;
86 bool m_messageHasBeenSet = false;
87 bool m_throttlingReasonsHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace DynamoDB
92} // namespace Aws
ThrottlingException & WithMessage(MessageT &&value)
AWS_DYNAMODB_API ThrottlingException & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetThrottlingReasons(ThrottlingReasonsT &&value)
AWS_DYNAMODB_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ThrottlingReason > & GetThrottlingReasons() const
AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const
ThrottlingException & WithThrottlingReasons(ThrottlingReasonsT &&value)
AWS_DYNAMODB_API ThrottlingException()=default
ThrottlingException & AddThrottlingReasons(ThrottlingReasonsT &&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