AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TooManyRequestsException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda/Lambda_EXPORTS.h>
9#include <aws/lambda/model/ThrottleReason.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lambda {
21namespace Model {
22
31 public:
32 AWS_LAMBDA_API TooManyRequestsException() = default;
35 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetRetryAfterSeconds() const { return m_retryAfterSeconds; }
42 inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
43 template <typename RetryAfterSecondsT = Aws::String>
44 void SetRetryAfterSeconds(RetryAfterSecondsT&& value) {
45 m_retryAfterSecondsHasBeenSet = true;
46 m_retryAfterSeconds = std::forward<RetryAfterSecondsT>(value);
47 }
48 template <typename RetryAfterSecondsT = Aws::String>
49 TooManyRequestsException& WithRetryAfterSeconds(RetryAfterSecondsT&& value) {
50 SetRetryAfterSeconds(std::forward<RetryAfterSecondsT>(value));
51 return *this;
52 }
54
56
57 inline const Aws::String& GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 template <typename TypeT = Aws::String>
60 void SetType(TypeT&& value) {
61 m_typeHasBeenSet = true;
62 m_type = std::forward<TypeT>(value);
63 }
64 template <typename TypeT = Aws::String>
66 SetType(std::forward<TypeT>(value));
67 return *this;
68 }
70
72
73 inline const Aws::String& GetMessage() const { return m_message; }
74 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
75 template <typename MessageT = Aws::String>
76 void SetMessage(MessageT&& value) {
77 m_messageHasBeenSet = true;
78 m_message = std::forward<MessageT>(value);
79 }
80 template <typename MessageT = Aws::String>
82 SetMessage(std::forward<MessageT>(value));
83 return *this;
84 }
86
88
89 inline ThrottleReason GetReason() const { return m_reason; }
90 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
91 inline void SetReason(ThrottleReason value) {
92 m_reasonHasBeenSet = true;
93 m_reason = value;
94 }
96 SetReason(value);
97 return *this;
98 }
100 private:
101 Aws::String m_retryAfterSeconds;
102
103 Aws::String m_type;
104
105 Aws::String m_message;
106
108 bool m_retryAfterSecondsHasBeenSet = false;
109 bool m_typeHasBeenSet = false;
110 bool m_messageHasBeenSet = false;
111 bool m_reasonHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace Lambda
116} // namespace Aws
AWS_LAMBDA_API TooManyRequestsException()=default
TooManyRequestsException & WithType(TypeT &&value)
AWS_LAMBDA_API TooManyRequestsException & operator=(Aws::Utils::Json::JsonView jsonValue)
TooManyRequestsException & WithMessage(MessageT &&value)
void SetRetryAfterSeconds(RetryAfterSecondsT &&value)
AWS_LAMBDA_API TooManyRequestsException(Aws::Utils::Json::JsonView jsonValue)
TooManyRequestsException & WithRetryAfterSeconds(RetryAfterSecondsT &&value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
TooManyRequestsException & WithReason(ThrottleReason value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue