AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TooManyRequestsException.h
1
6#pragma once
7#include <aws/lambda/Lambda_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lambda/model/ThrottleReason.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lambda
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_LAMBDA_API TooManyRequestsException();
40 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetRetryAfterSeconds() const{ return m_retryAfterSeconds; }
48 inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
49 inline void SetRetryAfterSeconds(const Aws::String& value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; }
50 inline void SetRetryAfterSeconds(Aws::String&& value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = std::move(value); }
51 inline void SetRetryAfterSeconds(const char* value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds.assign(value); }
53 inline TooManyRequestsException& WithRetryAfterSeconds(Aws::String&& value) { SetRetryAfterSeconds(std::move(value)); return *this;}
54 inline TooManyRequestsException& WithRetryAfterSeconds(const char* value) { SetRetryAfterSeconds(value); return *this;}
56
58
59 inline const Aws::String& GetType() const{ return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
61 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
62 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
63 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
64 inline TooManyRequestsException& WithType(const Aws::String& value) { SetType(value); return *this;}
65 inline TooManyRequestsException& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
66 inline TooManyRequestsException& WithType(const char* value) { SetType(value); return *this;}
68
70
71 inline const Aws::String& GetMessage() const{ return m_message; }
72 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
73 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
74 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
75 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
76 inline TooManyRequestsException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
77 inline TooManyRequestsException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
78 inline TooManyRequestsException& WithMessage(const char* value) { SetMessage(value); return *this;}
80
82
83 inline const ThrottleReason& GetReason() const{ return m_reason; }
84 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
85 inline void SetReason(const ThrottleReason& value) { m_reasonHasBeenSet = true; m_reason = value; }
86 inline void SetReason(ThrottleReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
87 inline TooManyRequestsException& WithReason(const ThrottleReason& value) { SetReason(value); return *this;}
88 inline TooManyRequestsException& WithReason(ThrottleReason&& value) { SetReason(std::move(value)); return *this;}
90 private:
91
92 Aws::String m_retryAfterSeconds;
93 bool m_retryAfterSecondsHasBeenSet = false;
94
95 Aws::String m_type;
96 bool m_typeHasBeenSet = false;
97
98 Aws::String m_message;
99 bool m_messageHasBeenSet = false;
100
101 ThrottleReason m_reason;
102 bool m_reasonHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace Lambda
107} // namespace Aws
TooManyRequestsException & WithRetryAfterSeconds(Aws::String &&value)
TooManyRequestsException & WithType(Aws::String &&value)
TooManyRequestsException & WithRetryAfterSeconds(const Aws::String &value)
TooManyRequestsException & WithMessage(Aws::String &&value)
TooManyRequestsException & WithType(const char *value)
TooManyRequestsException & WithReason(const ThrottleReason &value)
AWS_LAMBDA_API TooManyRequestsException & operator=(Aws::Utils::Json::JsonView jsonValue)
TooManyRequestsException & WithMessage(const char *value)
TooManyRequestsException & WithMessage(const Aws::String &value)
AWS_LAMBDA_API TooManyRequestsException(Aws::Utils::Json::JsonView jsonValue)
TooManyRequestsException & WithReason(ThrottleReason &&value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
TooManyRequestsException & WithRetryAfterSeconds(const char *value)
TooManyRequestsException & WithType(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue