AWS SDK for C++  1.9.123
AWS SDK for C++
ThrottlingException.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace GreengrassV2
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
42 
43  inline const Aws::String& GetMessage() const{ return m_message; }
44 
45 
46  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
47 
48 
49  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
50 
51 
52  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
53 
54 
55  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
56 
57 
58  inline ThrottlingException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
59 
60 
61  inline ThrottlingException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
62 
63 
64  inline ThrottlingException& WithMessage(const char* value) { SetMessage(value); return *this;}
65 
66 
72  inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; }
73 
79  inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
80 
86  inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; }
87 
93  inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); }
94 
100  inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); }
101 
107  inline ThrottlingException& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;}
108 
114  inline ThrottlingException& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;}
115 
121  inline ThrottlingException& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;}
122 
123 
129  inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
130 
136  inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
137 
143  inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
144 
150  inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
151 
157  inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
158 
164  inline ThrottlingException& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
165 
171  inline ThrottlingException& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
172 
178  inline ThrottlingException& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
179 
180 
184  inline int GetRetryAfterSeconds() const{ return m_retryAfterSeconds; }
185 
189  inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
190 
194  inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; }
195 
199  inline ThrottlingException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;}
200 
201  private:
202 
203  Aws::String m_message;
204  bool m_messageHasBeenSet;
205 
206  Aws::String m_quotaCode;
207  bool m_quotaCodeHasBeenSet;
208 
209  Aws::String m_serviceCode;
210  bool m_serviceCodeHasBeenSet;
211 
212  int m_retryAfterSeconds;
213  bool m_retryAfterSecondsHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace GreengrassV2
218 } // namespace Aws
Aws::GreengrassV2::Model::ThrottlingException::GetQuotaCode
const Aws::String & GetQuotaCode() const
Definition: ThrottlingException.h:72
Aws::GreengrassV2::Model::ThrottlingException::ThrottlingException
ThrottlingException(Aws::Utils::Json::JsonView jsonValue)
Aws::GreengrassV2::Model::ThrottlingException::WithMessage
ThrottlingException & WithMessage(const char *value)
Definition: ThrottlingException.h:64
Aws::GreengrassV2::Model::ThrottlingException::RetryAfterSecondsHasBeenSet
bool RetryAfterSecondsHasBeenSet() const
Definition: ThrottlingException.h:189
Aws::GreengrassV2::Model::ThrottlingException::SetServiceCode
void SetServiceCode(Aws::String &&value)
Definition: ThrottlingException.h:150
Aws::GreengrassV2::Model::ThrottlingException::SetServiceCode
void SetServiceCode(const char *value)
Definition: ThrottlingException.h:157
Aws::GreengrassV2::Model::ThrottlingException::SetRetryAfterSeconds
void SetRetryAfterSeconds(int value)
Definition: ThrottlingException.h:194
GreengrassV2_EXPORTS.h
Aws::GreengrassV2::Model::ThrottlingException::ThrottlingException
ThrottlingException()
Aws::GreengrassV2::Model::ThrottlingException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ThrottlingException.h:52
Aws::GreengrassV2::Model::ThrottlingException::SetServiceCode
void SetServiceCode(const Aws::String &value)
Definition: ThrottlingException.h:143
Aws::GreengrassV2::Model::ThrottlingException::GetRetryAfterSeconds
int GetRetryAfterSeconds() const
Definition: ThrottlingException.h:184
AWS_GREENGRASSV2_API
#define AWS_GREENGRASSV2_API
Definition: GreengrassV2_EXPORTS.h:28
Aws::GreengrassV2::Model::ThrottlingException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GreengrassV2::Model::ThrottlingException::WithQuotaCode
ThrottlingException & WithQuotaCode(const Aws::String &value)
Definition: ThrottlingException.h:107
Aws::GreengrassV2::Model::ThrottlingException::WithServiceCode
ThrottlingException & WithServiceCode(Aws::String &&value)
Definition: ThrottlingException.h:171
Aws::GreengrassV2::Model::ThrottlingException::WithRetryAfterSeconds
ThrottlingException & WithRetryAfterSeconds(int value)
Definition: ThrottlingException.h:199
Aws::GreengrassV2::Model::ThrottlingException::ServiceCodeHasBeenSet
bool ServiceCodeHasBeenSet() const
Definition: ThrottlingException.h:136
Aws::GreengrassV2::Model::ThrottlingException::WithMessage
ThrottlingException & WithMessage(Aws::String &&value)
Definition: ThrottlingException.h:61
Aws::GreengrassV2::Model::ThrottlingException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ThrottlingException.h:49
Aws::GreengrassV2::Model::ThrottlingException::WithServiceCode
ThrottlingException & WithServiceCode(const Aws::String &value)
Definition: ThrottlingException.h:164
Aws::GreengrassV2::Model::ThrottlingException
Definition: ThrottlingException.h:34
Aws::GreengrassV2::Model::ThrottlingException::WithQuotaCode
ThrottlingException & WithQuotaCode(const char *value)
Definition: ThrottlingException.h:121
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::GreengrassV2::Model::ThrottlingException::operator=
ThrottlingException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSString.h
Aws::GreengrassV2::Model::ThrottlingException::SetQuotaCode
void SetQuotaCode(const Aws::String &value)
Definition: ThrottlingException.h:86
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GreengrassV2::Model::ThrottlingException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ThrottlingException.h:46
Aws::GreengrassV2::Model::ThrottlingException::GetMessage
const Aws::String & GetMessage() const
Definition: ThrottlingException.h:43
Aws::GreengrassV2::Model::ThrottlingException::SetMessage
void SetMessage(const char *value)
Definition: ThrottlingException.h:55
Aws::GreengrassV2::Model::ThrottlingException::WithQuotaCode
ThrottlingException & WithQuotaCode(Aws::String &&value)
Definition: ThrottlingException.h:114
Aws::GreengrassV2::Model::ThrottlingException::QuotaCodeHasBeenSet
bool QuotaCodeHasBeenSet() const
Definition: ThrottlingException.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::GreengrassV2::Model::ThrottlingException::SetQuotaCode
void SetQuotaCode(const char *value)
Definition: ThrottlingException.h:100
Aws::GreengrassV2::Model::ThrottlingException::WithServiceCode
ThrottlingException & WithServiceCode(const char *value)
Definition: ThrottlingException.h:178
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GreengrassV2::Model::ThrottlingException::GetServiceCode
const Aws::String & GetServiceCode() const
Definition: ThrottlingException.h:129
Aws::GreengrassV2::Model::ThrottlingException::SetQuotaCode
void SetQuotaCode(Aws::String &&value)
Definition: ThrottlingException.h:93
Aws::GreengrassV2::Model::ThrottlingException::WithMessage
ThrottlingException & WithMessage(const Aws::String &value)
Definition: ThrottlingException.h:58