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/deadline/Deadline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.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 deadline
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_DEADLINE_API ThrottlingException();
38 AWS_DEADLINE_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 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
46 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
47 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
48 inline ThrottlingException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
49 inline ThrottlingException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
50 inline ThrottlingException& WithMessage(const char* value) { SetMessage(value); return *this;}
52
54
57 inline const Aws::String& GetServiceCode() const{ return m_serviceCode; }
58 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
59 inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; }
60 inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); }
61 inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); }
62 inline ThrottlingException& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;}
63 inline ThrottlingException& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;}
64 inline ThrottlingException& WithServiceCode(const char* value) { SetServiceCode(value); return *this;}
66
68
71 inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; }
72 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
73 inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; }
74 inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); }
75 inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); }
76 inline ThrottlingException& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;}
77 inline ThrottlingException& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;}
78 inline ThrottlingException& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;}
80
82
85 inline int GetRetryAfterSeconds() const{ return m_retryAfterSeconds; }
86 inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
87 inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; }
88 inline ThrottlingException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;}
90
92
95 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const{ return m_context; }
96 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
97 inline void SetContext(const Aws::Map<Aws::String, Aws::String>& value) { m_contextHasBeenSet = true; m_context = value; }
98 inline void SetContext(Aws::Map<Aws::String, Aws::String>&& value) { m_contextHasBeenSet = true; m_context = std::move(value); }
100 inline ThrottlingException& WithContext(Aws::Map<Aws::String, Aws::String>&& value) { SetContext(std::move(value)); return *this;}
101 inline ThrottlingException& AddContext(const Aws::String& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
102 inline ThrottlingException& AddContext(Aws::String&& key, const Aws::String& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
103 inline ThrottlingException& AddContext(const Aws::String& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
104 inline ThrottlingException& AddContext(Aws::String&& key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), std::move(value)); return *this; }
105 inline ThrottlingException& AddContext(const char* key, Aws::String&& value) { m_contextHasBeenSet = true; m_context.emplace(key, std::move(value)); return *this; }
106 inline ThrottlingException& AddContext(Aws::String&& key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(std::move(key), value); return *this; }
107 inline ThrottlingException& AddContext(const char* key, const char* value) { m_contextHasBeenSet = true; m_context.emplace(key, value); return *this; }
109 private:
110
111 Aws::String m_message;
112 bool m_messageHasBeenSet = false;
113
114 Aws::String m_serviceCode;
115 bool m_serviceCodeHasBeenSet = false;
116
117 Aws::String m_quotaCode;
118 bool m_quotaCodeHasBeenSet = false;
119
120 int m_retryAfterSeconds;
121 bool m_retryAfterSecondsHasBeenSet = false;
122
124 bool m_contextHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace deadline
129} // namespace Aws
ThrottlingException & WithMessage(const Aws::String &value)
ThrottlingException & WithQuotaCode(const Aws::String &value)
ThrottlingException & AddContext(const Aws::String &key, const Aws::String &value)
ThrottlingException & AddContext(const Aws::String &key, Aws::String &&value)
ThrottlingException & WithContext(Aws::Map< Aws::String, Aws::String > &&value)
void SetContext(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
AWS_DEADLINE_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue)
void SetQuotaCode(const Aws::String &value)
ThrottlingException & WithMessage(const char *value)
ThrottlingException & AddContext(const char *key, Aws::String &&value)
ThrottlingException & WithMessage(Aws::String &&value)
ThrottlingException & WithQuotaCode(const char *value)
void SetMessage(const Aws::String &value)
ThrottlingException & WithQuotaCode(Aws::String &&value)
ThrottlingException & WithServiceCode(Aws::String &&value)
ThrottlingException & AddContext(Aws::String &&key, Aws::String &&value)
ThrottlingException & WithServiceCode(const Aws::String &value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEADLINE_API ThrottlingException & operator=(Aws::Utils::Json::JsonView jsonValue)
ThrottlingException & WithContext(const Aws::Map< Aws::String, Aws::String > &value)
ThrottlingException & AddContext(Aws::String &&key, const char *value)
ThrottlingException & AddContext(Aws::String &&key, const Aws::String &value)
void SetContext(Aws::Map< Aws::String, Aws::String > &&value)
ThrottlingException & WithRetryAfterSeconds(int value)
ThrottlingException & AddContext(const char *key, const char *value)
void SetServiceCode(const Aws::String &value)
ThrottlingException & WithServiceCode(const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue