AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ThrottlingException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/identitystore/IdentityStore_EXPORTS.h>
9#include <aws/identitystore/model/ThrottlingExceptionReason.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IdentityStore {
21namespace Model {
22
30 public:
31 AWS_IDENTITYSTORE_API ThrottlingException() = default;
32 AWS_IDENTITYSTORE_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IDENTITYSTORE_API ThrottlingException& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const Aws::String& GetMessage() const { return m_message; }
39 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
40 template <typename MessageT = Aws::String>
41 void SetMessage(MessageT&& value) {
42 m_messageHasBeenSet = true;
43 m_message = std::forward<MessageT>(value);
44 }
45 template <typename MessageT = Aws::String>
46 ThrottlingException& WithMessage(MessageT&& value) {
47 SetMessage(std::forward<MessageT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetRequestId() const { return m_requestId; }
59 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
60 template <typename RequestIdT = Aws::String>
61 void SetRequestId(RequestIdT&& value) {
62 m_requestIdHasBeenSet = true;
63 m_requestId = std::forward<RequestIdT>(value);
64 }
65 template <typename RequestIdT = Aws::String>
66 ThrottlingException& WithRequestId(RequestIdT&& value) {
67 SetRequestId(std::forward<RequestIdT>(value));
68 return *this;
69 }
71
73
76 inline int GetRetryAfterSeconds() const { return m_retryAfterSeconds; }
77 inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
78 inline void SetRetryAfterSeconds(int value) {
79 m_retryAfterSecondsHasBeenSet = true;
80 m_retryAfterSeconds = value;
81 }
84 return *this;
85 }
87
89
94 inline ThrottlingExceptionReason GetReason() const { return m_reason; }
95 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
97 m_reasonHasBeenSet = true;
98 m_reason = value;
99 }
101 SetReason(value);
102 return *this;
103 }
105 private:
106 Aws::String m_message;
107
108 Aws::String m_requestId;
109
110 int m_retryAfterSeconds{0};
111
113 bool m_messageHasBeenSet = false;
114 bool m_requestIdHasBeenSet = false;
115 bool m_retryAfterSecondsHasBeenSet = false;
116 bool m_reasonHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace IdentityStore
121} // namespace Aws
AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IDENTITYSTORE_API ThrottlingException & operator=(Aws::Utils::Json::JsonView jsonValue)
ThrottlingException & WithMessage(MessageT &&value)
ThrottlingException & WithReason(ThrottlingExceptionReason value)
ThrottlingExceptionReason GetReason() const
AWS_IDENTITYSTORE_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue)
void SetReason(ThrottlingExceptionReason value)
ThrottlingException & WithRetryAfterSeconds(int value)
ThrottlingException & WithRequestId(RequestIdT &&value)
AWS_IDENTITYSTORE_API ThrottlingException()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue