AWS SDK for C++  1.9.159
AWS SDK for C++
TooManyRequestsException.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 APIGateway
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
41 
42  inline const Aws::String& GetRetryAfterSeconds() const{ return m_retryAfterSeconds; }
43 
44 
45  inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
46 
47 
48  inline void SetRetryAfterSeconds(const Aws::String& value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; }
49 
50 
51  inline void SetRetryAfterSeconds(Aws::String&& value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = std::move(value); }
52 
53 
54  inline void SetRetryAfterSeconds(const char* value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds.assign(value); }
55 
56 
57  inline TooManyRequestsException& WithRetryAfterSeconds(const Aws::String& value) { SetRetryAfterSeconds(value); return *this;}
58 
59 
60  inline TooManyRequestsException& WithRetryAfterSeconds(Aws::String&& value) { SetRetryAfterSeconds(std::move(value)); return *this;}
61 
62 
63  inline TooManyRequestsException& WithRetryAfterSeconds(const char* value) { SetRetryAfterSeconds(value); return *this;}
64 
65 
66 
67  inline const Aws::String& GetMessage() const{ return m_message; }
68 
69 
70  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
71 
72 
73  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
74 
75 
76  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
77 
78 
79  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
80 
81 
82  inline TooManyRequestsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
83 
84 
85  inline TooManyRequestsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
86 
87 
88  inline TooManyRequestsException& WithMessage(const char* value) { SetMessage(value); return *this;}
89 
90  private:
91 
92  Aws::String m_retryAfterSeconds;
93  bool m_retryAfterSecondsHasBeenSet;
94 
95  Aws::String m_message;
96  bool m_messageHasBeenSet;
97  };
98 
99 } // namespace Model
100 } // namespace APIGateway
101 } // namespace Aws
Aws::APIGateway::Model::TooManyRequestsException::WithRetryAfterSeconds
TooManyRequestsException & WithRetryAfterSeconds(const char *value)
Definition: TooManyRequestsException.h:63
Aws::APIGateway::Model::TooManyRequestsException::SetMessage
void SetMessage(Aws::String &&value)
Definition: TooManyRequestsException.h:76
Aws::APIGateway::Model::TooManyRequestsException::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::TooManyRequestsException
Definition: TooManyRequestsException.h:33
Aws::APIGateway::Model::TooManyRequestsException::RetryAfterSecondsHasBeenSet
bool RetryAfterSecondsHasBeenSet() const
Definition: TooManyRequestsException.h:45
APIGateway_EXPORTS.h
Aws::APIGateway::Model::TooManyRequestsException::SetRetryAfterSeconds
void SetRetryAfterSeconds(Aws::String &&value)
Definition: TooManyRequestsException.h:51
Aws::APIGateway::Model::TooManyRequestsException::SetMessage
void SetMessage(const char *value)
Definition: TooManyRequestsException.h:79
Aws::APIGateway::Model::TooManyRequestsException::GetRetryAfterSeconds
const Aws::String & GetRetryAfterSeconds() const
Definition: TooManyRequestsException.h:42
Aws::APIGateway::Model::TooManyRequestsException::WithRetryAfterSeconds
TooManyRequestsException & WithRetryAfterSeconds(const Aws::String &value)
Definition: TooManyRequestsException.h:57
Aws::APIGateway::Model::TooManyRequestsException::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: TooManyRequestsException.h:70
Aws::APIGateway::Model::TooManyRequestsException::TooManyRequestsException
TooManyRequestsException(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::TooManyRequestsException::SetRetryAfterSeconds
void SetRetryAfterSeconds(const Aws::String &value)
Definition: TooManyRequestsException.h:48
Aws::APIGateway::Model::TooManyRequestsException::SetMessage
void SetMessage(const Aws::String &value)
Definition: TooManyRequestsException.h:73
Aws::APIGateway::Model::TooManyRequestsException::operator=
TooManyRequestsException & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::TooManyRequestsException::WithMessage
TooManyRequestsException & WithMessage(const char *value)
Definition: TooManyRequestsException.h:88
Aws::APIGateway::Model::TooManyRequestsException::WithMessage
TooManyRequestsException & WithMessage(const Aws::String &value)
Definition: TooManyRequestsException.h:82
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::APIGateway::Model::TooManyRequestsException::SetRetryAfterSeconds
void SetRetryAfterSeconds(const char *value)
Definition: TooManyRequestsException.h:54
Aws::APIGateway::Model::TooManyRequestsException::GetMessage
const Aws::String & GetMessage() const
Definition: TooManyRequestsException.h:67
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::APIGateway::Model::TooManyRequestsException::WithRetryAfterSeconds
TooManyRequestsException & WithRetryAfterSeconds(Aws::String &&value)
Definition: TooManyRequestsException.h:60
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::TooManyRequestsException::WithMessage
TooManyRequestsException & WithMessage(Aws::String &&value)
Definition: TooManyRequestsException.h:85
Aws::APIGateway::Model::TooManyRequestsException::TooManyRequestsException
TooManyRequestsException()