AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ThrottlingException.h
1
6#pragma once
7#include <aws/identitystore/IdentityStore_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IdentityStore
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_IDENTITYSTORE_API ThrottlingException() = default;
36 AWS_IDENTITYSTORE_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IDENTITYSTORE_API ThrottlingException& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IDENTITYSTORE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
43 inline const Aws::String& GetMessage() const { return m_message; }
44 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
45 template<typename MessageT = Aws::String>
46 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
47 template<typename MessageT = Aws::String>
48 ThrottlingException& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
50
52
57 inline const Aws::String& GetRequestId() const { return m_requestId; }
58 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
59 template<typename RequestIdT = Aws::String>
60 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
61 template<typename RequestIdT = Aws::String>
62 ThrottlingException& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
64
66
69 inline int GetRetryAfterSeconds() const { return m_retryAfterSeconds; }
70 inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
71 inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; }
72 inline ThrottlingException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;}
74 private:
75
76 Aws::String m_message;
77 bool m_messageHasBeenSet = false;
78
79 Aws::String m_requestId;
80 bool m_requestIdHasBeenSet = false;
81
82 int m_retryAfterSeconds{0};
83 bool m_retryAfterSecondsHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace IdentityStore
88} // 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)
AWS_IDENTITYSTORE_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue)
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