AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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