AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ThrottlingException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GreengrassV2 {
20namespace Model {
21
30 public:
31 AWS_GREENGRASSV2_API ThrottlingException() = default;
32 AWS_GREENGRASSV2_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const Aws::String& GetMessage() const { return m_message; }
39 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
40 template <typename MessageT = Aws::String>
41 void SetMessage(MessageT&& value) {
42 m_messageHasBeenSet = true;
43 m_message = std::forward<MessageT>(value);
44 }
45 template <typename MessageT = Aws::String>
46 ThrottlingException& WithMessage(MessageT&& value) {
47 SetMessage(std::forward<MessageT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
59 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
60 template <typename QuotaCodeT = Aws::String>
61 void SetQuotaCode(QuotaCodeT&& value) {
62 m_quotaCodeHasBeenSet = true;
63 m_quotaCode = std::forward<QuotaCodeT>(value);
64 }
65 template <typename QuotaCodeT = Aws::String>
66 ThrottlingException& WithQuotaCode(QuotaCodeT&& value) {
67 SetQuotaCode(std::forward<QuotaCodeT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
79 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
80 template <typename ServiceCodeT = Aws::String>
81 void SetServiceCode(ServiceCodeT&& value) {
82 m_serviceCodeHasBeenSet = true;
83 m_serviceCode = std::forward<ServiceCodeT>(value);
84 }
85 template <typename ServiceCodeT = Aws::String>
86 ThrottlingException& WithServiceCode(ServiceCodeT&& value) {
87 SetServiceCode(std::forward<ServiceCodeT>(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_quotaCode;
111
112 Aws::String m_serviceCode;
113
114 int m_retryAfterSeconds{0};
115 bool m_messageHasBeenSet = false;
116 bool m_quotaCodeHasBeenSet = false;
117 bool m_serviceCodeHasBeenSet = false;
118 bool m_retryAfterSecondsHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace GreengrassV2
123} // namespace Aws
AWS_GREENGRASSV2_API ThrottlingException()=default
ThrottlingException & WithMessage(MessageT &&value)
ThrottlingException & WithRetryAfterSeconds(int value)
AWS_GREENGRASSV2_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue)
ThrottlingException & WithQuotaCode(QuotaCodeT &&value)
AWS_GREENGRASSV2_API ThrottlingException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
ThrottlingException & WithServiceCode(ServiceCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue