AWS SDK for C++

AWS SDK for C++ Version 1.11.749

Loading...
Searching...
No Matches
ProvisionedThroughputExceededException.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
41 public:
42 AWS_DYNAMODB_API ProvisionedThroughputExceededException() = default;
45 AWS_DYNAMODB_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
51 inline const Aws::String& GetMessage() const { return m_message; }
52 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
53 template <typename MessageT = Aws::String>
54 void SetMessage(MessageT&& value) {
55 m_messageHasBeenSet = true;
56 m_message = std::forward<MessageT>(value);
57 }
58 template <typename MessageT = Aws::String>
60 SetMessage(std::forward<MessageT>(value));
61 return *this;
62 }
64
66
72 inline const Aws::Vector<ThrottlingReason>& GetThrottlingReasons() const { return m_throttlingReasons; }
73 inline bool ThrottlingReasonsHasBeenSet() const { return m_throttlingReasonsHasBeenSet; }
74 template <typename ThrottlingReasonsT = Aws::Vector<ThrottlingReason>>
75 void SetThrottlingReasons(ThrottlingReasonsT&& value) {
76 m_throttlingReasonsHasBeenSet = true;
77 m_throttlingReasons = std::forward<ThrottlingReasonsT>(value);
78 }
79 template <typename ThrottlingReasonsT = Aws::Vector<ThrottlingReason>>
81 SetThrottlingReasons(std::forward<ThrottlingReasonsT>(value));
82 return *this;
83 }
84 template <typename ThrottlingReasonsT = ThrottlingReason>
86 m_throttlingReasonsHasBeenSet = true;
87 m_throttlingReasons.emplace_back(std::forward<ThrottlingReasonsT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_message;
93
94 Aws::Vector<ThrottlingReason> m_throttlingReasons;
95 bool m_messageHasBeenSet = false;
96 bool m_throttlingReasonsHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace DynamoDB
101} // namespace Aws
AWS_DYNAMODB_API ProvisionedThroughputExceededException(Aws::Utils::Json::JsonView jsonValue)
AWS_DYNAMODB_API ProvisionedThroughputExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
ProvisionedThroughputExceededException & WithMessage(MessageT &&value)
ProvisionedThroughputExceededException & AddThrottlingReasons(ThrottlingReasonsT &&value)
ProvisionedThroughputExceededException & WithThrottlingReasons(ThrottlingReasonsT &&value)
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