AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ThrottlingException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/managedblockchain-query/ManagedBlockchainQuery_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ManagedBlockchainQuery {
20namespace Model {
21
32 public:
33 AWS_MANAGEDBLOCKCHAINQUERY_API ThrottlingException() = default;
34 AWS_MANAGEDBLOCKCHAINQUERY_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MANAGEDBLOCKCHAINQUERY_API ThrottlingException& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
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
60 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
61 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
62 template <typename ServiceCodeT = Aws::String>
63 void SetServiceCode(ServiceCodeT&& value) {
64 m_serviceCodeHasBeenSet = true;
65 m_serviceCode = std::forward<ServiceCodeT>(value);
66 }
67 template <typename ServiceCodeT = Aws::String>
68 ThrottlingException& WithServiceCode(ServiceCodeT&& value) {
69 SetServiceCode(std::forward<ServiceCodeT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
79 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
80 template <typename QuotaCodeT = Aws::String>
81 void SetQuotaCode(QuotaCodeT&& value) {
82 m_quotaCodeHasBeenSet = true;
83 m_quotaCode = std::forward<QuotaCodeT>(value);
84 }
85 template <typename QuotaCodeT = Aws::String>
86 ThrottlingException& WithQuotaCode(QuotaCodeT&& value) {
87 SetQuotaCode(std::forward<QuotaCodeT>(value));
88 return *this;
89 }
91
93
96 inline int GetRetryAfterSeconds() const { return m_retryAfterSeconds; }
97 inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
98 inline void SetRetryAfterSeconds(int value) {
99 m_retryAfterSecondsHasBeenSet = true;
100 m_retryAfterSeconds = value;
101 }
104 return *this;
105 }
107 private:
108 Aws::String m_message;
109
110 Aws::String m_serviceCode;
111
112 Aws::String m_quotaCode;
113
114 int m_retryAfterSeconds{0};
115 bool m_messageHasBeenSet = false;
116 bool m_serviceCodeHasBeenSet = false;
117 bool m_quotaCodeHasBeenSet = false;
118 bool m_retryAfterSecondsHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace ManagedBlockchainQuery
123} // namespace Aws
ThrottlingException & WithServiceCode(ServiceCodeT &&value)
ThrottlingException & WithQuotaCode(QuotaCodeT &&value)
ThrottlingException & WithMessage(MessageT &&value)
AWS_MANAGEDBLOCKCHAINQUERY_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAINQUERY_API ThrottlingException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAINQUERY_API ThrottlingException()=default
AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue