AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ThrottlingException.h
1
6#pragma once
7#include <aws/managedblockchain-query/ManagedBlockchainQuery_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 ManagedBlockchainQuery
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_MANAGEDBLOCKCHAINQUERY_API ThrottlingException();
39 AWS_MANAGEDBLOCKCHAINQUERY_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MANAGEDBLOCKCHAINQUERY_API ThrottlingException& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetMessage() const{ return m_message; }
49 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
50 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
51 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
52 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
53 inline ThrottlingException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
54 inline ThrottlingException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
55 inline ThrottlingException& WithMessage(const char* value) { SetMessage(value); return *this;}
57
59
62 inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
63 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
64 inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
65 inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
66 inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
67 inline ThrottlingException& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
68 inline ThrottlingException& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
69 inline ThrottlingException& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
71
73
76 inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; }
77 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
78 inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; }
79 inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); }
80 inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); }
81 inline ThrottlingException& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;}
82 inline ThrottlingException& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;}
83 inline ThrottlingException& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;}
85
87
90 inline int GetRetryAfterSeconds() const{ return m_retryAfterSeconds; }
91 inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
92 inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; }
93 inline ThrottlingException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;}
95 private:
96
97 Aws::String m_message;
98 bool m_messageHasBeenSet = false;
99
100 Aws::String m_serviceCode;
101 bool m_serviceCodeHasBeenSet = false;
102
103 Aws::String m_quotaCode;
104 bool m_quotaCodeHasBeenSet = false;
105
106 int m_retryAfterSeconds;
107 bool m_retryAfterSecondsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace ManagedBlockchainQuery
112} // namespace Aws
ThrottlingException & WithQuotaCode(Aws::String &&value)
ThrottlingException & WithServiceCode(Aws::String &&value)
ThrottlingException & WithServiceCode(const Aws::String &value)
ThrottlingException & WithMessage(const char *value)
AWS_MANAGEDBLOCKCHAINQUERY_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue)
ThrottlingException & WithQuotaCode(const char *value)
ThrottlingException & WithQuotaCode(const Aws::String &value)
ThrottlingException & WithMessage(Aws::String &&value)
ThrottlingException & WithMessage(const Aws::String &value)
AWS_MANAGEDBLOCKCHAINQUERY_API ThrottlingException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MANAGEDBLOCKCHAINQUERY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MANAGEDBLOCKCHAINQUERY_API ThrottlingException()
ThrottlingException & WithServiceCode(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue