AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename RetryAfterSecondsT = Aws::String>
50 void SetRetryAfterSeconds(RetryAfterSecondsT&& value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = std::forward<RetryAfterSecondsT>(value); }
51 template<typename RetryAfterSecondsT = Aws::String>
52 TooManyRequestsException& WithRetryAfterSeconds(RetryAfterSecondsT&& value) { SetRetryAfterSeconds(std::forward<RetryAfterSecondsT>(value)); return *this;}
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) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
61 template<typename TypeT = Aws::String>
62 TooManyRequestsException& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
64
66
67 inline const Aws::String& GetMessage() const { return m_message; }
68 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
69 template<typename MessageT = Aws::String>
70 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
71 template<typename MessageT = Aws::String>
72 TooManyRequestsException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
74
76
77 inline ThrottleReason GetReason() const { return m_reason; }
78 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
79 inline void SetReason(ThrottleReason value) { m_reasonHasBeenSet = true; m_reason = value; }
80 inline TooManyRequestsException& WithReason(ThrottleReason value) { SetReason(value); return *this;}
82 private:
83
84 Aws::String m_retryAfterSeconds;
85 bool m_retryAfterSecondsHasBeenSet = false;
86
87 Aws::String m_type;
88 bool m_typeHasBeenSet = false;
89
90 Aws::String m_message;
91 bool m_messageHasBeenSet = false;
92
94 bool m_reasonHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace Lambda
99} // 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