AWS SDK for C++  1.9.20
AWS SDK for C++
TooManyRequestsException.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lambda
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetRetryAfterSeconds() const{ return m_retryAfterSeconds; }
45 
49  inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
50 
54  inline void SetRetryAfterSeconds(const Aws::String& value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; }
55 
59  inline void SetRetryAfterSeconds(Aws::String&& value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = std::move(value); }
60 
64  inline void SetRetryAfterSeconds(const char* value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds.assign(value); }
65 
69  inline TooManyRequestsException& WithRetryAfterSeconds(const Aws::String& value) { SetRetryAfterSeconds(value); return *this;}
70 
74  inline TooManyRequestsException& WithRetryAfterSeconds(Aws::String&& value) { SetRetryAfterSeconds(std::move(value)); return *this;}
75 
79  inline TooManyRequestsException& WithRetryAfterSeconds(const char* value) { SetRetryAfterSeconds(value); return *this;}
80 
81 
82 
83  inline const Aws::String& GetType() const{ return m_type; }
84 
85 
86  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
87 
88 
89  inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
90 
91 
92  inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
93 
94 
95  inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
96 
97 
98  inline TooManyRequestsException& WithType(const Aws::String& value) { SetType(value); return *this;}
99 
100 
101  inline TooManyRequestsException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
102 
103 
104  inline TooManyRequestsException& WithType(const char* value) { SetType(value); return *this;}
105 
106 
107 
108  inline const Aws::String& GetMessage() const{ return m_message; }
109 
110 
111  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
112 
113 
114  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
115 
116 
117  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
118 
119 
120  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
121 
122 
123  inline TooManyRequestsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
124 
125 
126  inline TooManyRequestsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
127 
128 
129  inline TooManyRequestsException& WithMessage(const char* value) { SetMessage(value); return *this;}
130 
131 
132 
133  inline const ThrottleReason& GetReason() const{ return m_reason; }
134 
135 
136  inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
137 
138 
139  inline void SetReason(const ThrottleReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
140 
141 
142  inline void SetReason(ThrottleReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
143 
144 
145  inline TooManyRequestsException& WithReason(const ThrottleReason& value) { SetReason(value); return *this;}
146 
147 
148  inline TooManyRequestsException& WithReason(ThrottleReason&& value) { SetReason(std::move(value)); return *this;}
149 
150  private:
151 
152  Aws::String m_retryAfterSeconds;
153  bool m_retryAfterSecondsHasBeenSet;
154 
155  Aws::String m_type;
156  bool m_typeHasBeenSet;
157 
158  Aws::String m_message;
159  bool m_messageHasBeenSet;
160 
161  ThrottleReason m_reason;
162  bool m_reasonHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace Lambda
167 } // namespace Aws
Aws::Lambda::Model::TooManyRequestsException::SetRetryAfterSeconds
void SetRetryAfterSeconds(const Aws::String &value)
Definition: TooManyRequestsException.h:54
Aws::Lambda::Model::TooManyRequestsException::WithMessage
TooManyRequestsException & WithMessage(const char *value)
Definition: TooManyRequestsException.h:129
Aws::Lambda::Model::TooManyRequestsException::TooManyRequestsException
TooManyRequestsException(Aws::Utils::Json::JsonView jsonValue)
Aws::Lambda::Model::TooManyRequestsException::WithRetryAfterSeconds
TooManyRequestsException & WithRetryAfterSeconds(Aws::String &&value)
Definition: TooManyRequestsException.h:74
Aws::Lambda::Model::TooManyRequestsException::GetMessage
const Aws::String & GetMessage() const
Definition: TooManyRequestsException.h:108
Aws::Lambda::Model::TooManyRequestsException::SetType
void SetType(Aws::String &&value)
Definition: TooManyRequestsException.h:92
Aws::Lambda::Model::TooManyRequestsException::TooManyRequestsException
TooManyRequestsException()
Aws::Lambda::Model::TooManyRequestsException
Definition: TooManyRequestsException.h:33
Aws::Lambda::Model::TooManyRequestsException::GetRetryAfterSeconds
const Aws::String & GetRetryAfterSeconds() const
Definition: TooManyRequestsException.h:44
Aws::Lambda::Model::TooManyRequestsException::operator=
TooManyRequestsException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lambda::Model::TooManyRequestsException::SetType
void SetType(const Aws::String &value)
Definition: TooManyRequestsException.h:89
Aws::Lambda::Model::TooManyRequestsException::SetReason
void SetReason(const ThrottleReason &value)
Definition: TooManyRequestsException.h:139
Aws::Lambda::Model::TooManyRequestsException::SetMessage
void SetMessage(const char *value)
Definition: TooManyRequestsException.h:120
AWS_LAMBDA_API
#define AWS_LAMBDA_API
Definition: Lambda_EXPORTS.h:28
Aws::Lambda::Model::TooManyRequestsException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lambda::Model::TooManyRequestsException::WithMessage
TooManyRequestsException & WithMessage(const Aws::String &value)
Definition: TooManyRequestsException.h:123
Aws::Lambda::Model::TooManyRequestsException::SetRetryAfterSeconds
void SetRetryAfterSeconds(const char *value)
Definition: TooManyRequestsException.h:64
Aws::Lambda::Model::TooManyRequestsException::WithType
TooManyRequestsException & WithType(const char *value)
Definition: TooManyRequestsException.h:104
Aws::Lambda::Model::TooManyRequestsException::GetType
const Aws::String & GetType() const
Definition: TooManyRequestsException.h:83
Aws::Lambda::Model::TooManyRequestsException::SetMessage
void SetMessage(Aws::String &&value)
Definition: TooManyRequestsException.h:117
Aws::Lambda::Model::TooManyRequestsException::WithRetryAfterSeconds
TooManyRequestsException & WithRetryAfterSeconds(const char *value)
Definition: TooManyRequestsException.h:79
Aws::Lambda::Model::TooManyRequestsException::SetType
void SetType(const char *value)
Definition: TooManyRequestsException.h:95
Aws::Lambda::Model::TooManyRequestsException::SetRetryAfterSeconds
void SetRetryAfterSeconds(Aws::String &&value)
Definition: TooManyRequestsException.h:59
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::Lambda::Model::TooManyRequestsException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: TooManyRequestsException.h:111
Aws::Lambda::Model::TooManyRequestsException::WithReason
TooManyRequestsException & WithReason(ThrottleReason &&value)
Definition: TooManyRequestsException.h:148
Aws::Lambda::Model::ThrottleReason
ThrottleReason
Definition: ThrottleReason.h:17
Aws::Lambda::Model::TooManyRequestsException::ReasonHasBeenSet
bool ReasonHasBeenSet() const
Definition: TooManyRequestsException.h:136
Aws::CodePipeline::Model::ExecutorType::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
ThrottleReason.h
Aws::Lambda::Model::TooManyRequestsException::WithMessage
TooManyRequestsException & WithMessage(Aws::String &&value)
Definition: TooManyRequestsException.h:126
Aws::Lambda::Model::TooManyRequestsException::SetMessage
void SetMessage(const Aws::String &value)
Definition: TooManyRequestsException.h:114
Aws::Lambda::Model::TooManyRequestsException::SetReason
void SetReason(ThrottleReason &&value)
Definition: TooManyRequestsException.h:142
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lambda::Model::TooManyRequestsException::WithReason
TooManyRequestsException & WithReason(const ThrottleReason &value)
Definition: TooManyRequestsException.h:145
Aws::Lambda::Model::TooManyRequestsException::WithType
TooManyRequestsException & WithType(Aws::String &&value)
Definition: TooManyRequestsException.h:101
Aws::Lambda::Model::TooManyRequestsException::RetryAfterSecondsHasBeenSet
bool RetryAfterSecondsHasBeenSet() const
Definition: TooManyRequestsException.h:49
Lambda_EXPORTS.h
Aws::Lambda::Model::TooManyRequestsException::WithRetryAfterSeconds
TooManyRequestsException & WithRetryAfterSeconds(const Aws::String &value)
Definition: TooManyRequestsException.h:69
Aws::Lambda::Model::TooManyRequestsException::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: TooManyRequestsException.h:86
Aws::Lambda::Model::TooManyRequestsException::WithType
TooManyRequestsException & WithType(const Aws::String &value)
Definition: TooManyRequestsException.h:98
Aws::Lambda::Model::TooManyRequestsException::GetReason
const ThrottleReason & GetReason() const
Definition: TooManyRequestsException.h:133