AWS SDK for C++

AWS SDK for C++ Version 1.11.773

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/polly/Polly_EXPORTS.h>
10#include <aws/polly/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 Polly {
22namespace Model {
23
31 public:
32 AWS_POLLY_API ThrottlingException() = default;
35 AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
39 inline const Aws::String& GetMessage() const { return m_message; }
40 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
41 template <typename MessageT = Aws::String>
42 void SetMessage(MessageT&& value) {
43 m_messageHasBeenSet = true;
44 m_message = std::forward<MessageT>(value);
45 }
46 template <typename MessageT = Aws::String>
47 ThrottlingException& WithMessage(MessageT&& value) {
48 SetMessage(std::forward<MessageT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<ThrottlingReason>& GetThrottlingReasons() const { return m_throttlingReasons; }
58 inline bool ThrottlingReasonsHasBeenSet() const { return m_throttlingReasonsHasBeenSet; }
59 template <typename ThrottlingReasonsT = Aws::Vector<ThrottlingReason>>
60 void SetThrottlingReasons(ThrottlingReasonsT&& value) {
61 m_throttlingReasonsHasBeenSet = true;
62 m_throttlingReasons = std::forward<ThrottlingReasonsT>(value);
63 }
64 template <typename ThrottlingReasonsT = Aws::Vector<ThrottlingReason>>
65 ThrottlingException& WithThrottlingReasons(ThrottlingReasonsT&& value) {
66 SetThrottlingReasons(std::forward<ThrottlingReasonsT>(value));
67 return *this;
68 }
69 template <typename ThrottlingReasonsT = ThrottlingReason>
70 ThrottlingException& AddThrottlingReasons(ThrottlingReasonsT&& value) {
71 m_throttlingReasonsHasBeenSet = true;
72 m_throttlingReasons.emplace_back(std::forward<ThrottlingReasonsT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_message;
78
79 Aws::Vector<ThrottlingReason> m_throttlingReasons;
80 bool m_messageHasBeenSet = false;
81 bool m_throttlingReasonsHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace Polly
86} // namespace Aws
AWS_POLLY_API ThrottlingException & operator=(Aws::Utils::Json::JsonView jsonValue)
ThrottlingException & WithThrottlingReasons(ThrottlingReasonsT &&value)
const Aws::Vector< ThrottlingReason > & GetThrottlingReasons() const
AWS_POLLY_API ThrottlingException()=default
ThrottlingException & WithMessage(MessageT &&value)
AWS_POLLY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetThrottlingReasons(ThrottlingReasonsT &&value)
AWS_POLLY_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue)
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