AWS SDK for C++  1.9.106
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 LookoutforVision
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
41 
42  inline const Aws::String& GetMessage() const{ return m_message; }
43 
44 
45  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
46 
47 
48  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
49 
50 
51  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
52 
53 
54  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
55 
56 
57  inline ThrottlingException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
58 
59 
60  inline ThrottlingException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
61 
62 
63  inline ThrottlingException& WithMessage(const char* value) { SetMessage(value); return *this;}
64 
65 
69  inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; }
70 
74  inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
75 
79  inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; }
80 
84  inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); }
85 
89  inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); }
90 
94  inline ThrottlingException& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;}
95 
99  inline ThrottlingException& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;}
100 
104  inline ThrottlingException& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;}
105 
106 
110  inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
111 
115  inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
116 
120  inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
121 
125  inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
126 
130  inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
131 
135  inline ThrottlingException& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
136 
140  inline ThrottlingException& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
141 
145  inline ThrottlingException& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
146 
147 
151  inline int GetRetryAfterSeconds() const{ return m_retryAfterSeconds; }
152 
156  inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
157 
161  inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; }
162 
166  inline ThrottlingException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;}
167 
168  private:
169 
170  Aws::String m_message;
171  bool m_messageHasBeenSet;
172 
173  Aws::String m_quotaCode;
174  bool m_quotaCodeHasBeenSet;
175 
176  Aws::String m_serviceCode;
177  bool m_serviceCodeHasBeenSet;
178 
179  int m_retryAfterSeconds;
180  bool m_retryAfterSecondsHasBeenSet;
181  };
182 
183 } // namespace Model
184 } // namespace LookoutforVision
185 } // namespace Aws
Aws::LookoutforVision::Model::ThrottlingException::WithQuotaCode
ThrottlingException & WithQuotaCode(Aws::String &&value)
Definition: ThrottlingException.h:99
Aws::LookoutforVision::Model::ThrottlingException::GetServiceCode
const Aws::String & GetServiceCode() const
Definition: ThrottlingException.h:110
Aws::LookoutforVision::Model::ThrottlingException::SetQuotaCode
void SetQuotaCode(Aws::String &&value)
Definition: ThrottlingException.h:84
Aws::LookoutforVision::Model::ThrottlingException
Definition: ThrottlingException.h:33
Aws::LookoutforVision::Model::ThrottlingException::SetQuotaCode
void SetQuotaCode(const Aws::String &value)
Definition: ThrottlingException.h:79
Aws::LookoutforVision::Model::ThrottlingException::SetMessage
void SetMessage(const Aws::String &value)
Definition: ThrottlingException.h:48
Aws::LookoutforVision::Model::ThrottlingException::WithQuotaCode
ThrottlingException & WithQuotaCode(const Aws::String &value)
Definition: ThrottlingException.h:94
Aws::LookoutforVision::Model::ThrottlingException::GetMessage
const Aws::String & GetMessage() const
Definition: ThrottlingException.h:42
Aws::LookoutforVision::Model::ThrottlingException::WithServiceCode
ThrottlingException & WithServiceCode(Aws::String &&value)
Definition: ThrottlingException.h:140
LookoutforVision_EXPORTS.h
Aws::LookoutforVision::Model::ThrottlingException::ThrottlingException
ThrottlingException(Aws::Utils::Json::JsonView jsonValue)
Aws::LookoutforVision::Model::ThrottlingException::SetServiceCode
void SetServiceCode(const char *value)
Definition: ThrottlingException.h:130
Aws::LookoutforVision::Model::ThrottlingException::GetRetryAfterSeconds
int GetRetryAfterSeconds() const
Definition: ThrottlingException.h:151
Aws::LookoutforVision::Model::ThrottlingException::WithServiceCode
ThrottlingException & WithServiceCode(const char *value)
Definition: ThrottlingException.h:145
Aws::LookoutforVision::Model::ThrottlingException::WithQuotaCode
ThrottlingException & WithQuotaCode(const char *value)
Definition: ThrottlingException.h:104
Aws::LookoutforVision::Model::ThrottlingException::WithMessage
ThrottlingException & WithMessage(Aws::String &&value)
Definition: ThrottlingException.h:60
Aws::LookoutforVision::Model::ThrottlingException::WithMessage
ThrottlingException & WithMessage(const Aws::String &value)
Definition: ThrottlingException.h:57
Aws::LookoutforVision::Model::ThrottlingException::SetRetryAfterSeconds
void SetRetryAfterSeconds(int value)
Definition: ThrottlingException.h:161
Aws::LookoutforVision::Model::ThrottlingException::SetMessage
void SetMessage(const char *value)
Definition: ThrottlingException.h:54
Aws::LookoutforVision::Model::ThrottlingException::SetServiceCode
void SetServiceCode(Aws::String &&value)
Definition: ThrottlingException.h:125
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::LookoutforVision::Model::ThrottlingException::RetryAfterSecondsHasBeenSet
bool RetryAfterSecondsHasBeenSet() const
Definition: ThrottlingException.h:156
Aws::LookoutforVision::Model::ThrottlingException::operator=
ThrottlingException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::LookoutforVision::Model::ThrottlingException::SetQuotaCode
void SetQuotaCode(const char *value)
Definition: ThrottlingException.h:89
Aws::LookoutforVision::Model::ThrottlingException::WithRetryAfterSeconds
ThrottlingException & WithRetryAfterSeconds(int value)
Definition: ThrottlingException.h:166
Aws::LookoutforVision::Model::ThrottlingException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: ThrottlingException.h:45
Aws::LookoutforVision::Model::ThrottlingException::GetQuotaCode
const Aws::String & GetQuotaCode() const
Definition: ThrottlingException.h:69
Aws::LookoutforVision::Model::ThrottlingException::ThrottlingException
ThrottlingException()
Aws::LookoutforVision::Model::ThrottlingException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
Aws::LookoutforVision::Model::ThrottlingException::SetMessage
void SetMessage(Aws::String &&value)
Definition: ThrottlingException.h:51
Aws::LookoutforVision::Model::ThrottlingException::WithMessage
ThrottlingException & WithMessage(const char *value)
Definition: ThrottlingException.h:63
Aws::LookoutforVision::Model::ThrottlingException::WithServiceCode
ThrottlingException & WithServiceCode(const Aws::String &value)
Definition: ThrottlingException.h:135
Aws::LookoutforVision::Model::ThrottlingException::SetServiceCode
void SetServiceCode(const Aws::String &value)
Definition: ThrottlingException.h:120
Aws::LookoutforVision::Model::ThrottlingException::ServiceCodeHasBeenSet
bool ServiceCodeHasBeenSet() const
Definition: ThrottlingException.h:115
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LOOKOUTFORVISION_API
#define AWS_LOOKOUTFORVISION_API
Definition: LookoutforVision_EXPORTS.h:28
Aws::LookoutforVision::Model::ThrottlingException::QuotaCodeHasBeenSet
bool QuotaCodeHasBeenSet() const
Definition: ThrottlingException.h:74