AWS SDK for C++

AWS SDK for C++ Version 1.11.935

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