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/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() = default;
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 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
55 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
56 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
57 template<typename ServiceCodeT = Aws::String>
58 void SetServiceCode(ServiceCodeT&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::forward<ServiceCodeT>(value); }
59 template<typename ServiceCodeT = Aws::String>
60 ThrottlingException& WithServiceCode(ServiceCodeT&& value) { SetServiceCode(std::forward<ServiceCodeT>(value)); return *this;}
62
64
67 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
68 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
69 template<typename QuotaCodeT = Aws::String>
70 void SetQuotaCode(QuotaCodeT&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::forward<QuotaCodeT>(value); }
71 template<typename QuotaCodeT = Aws::String>
72 ThrottlingException& WithQuotaCode(QuotaCodeT&& value) { SetQuotaCode(std::forward<QuotaCodeT>(value)); return *this;}
74
76
79 inline int GetRetryAfterSeconds() const { return m_retryAfterSeconds; }
80 inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }
81 inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; }
82 inline ThrottlingException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;}
84
86
89 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
90 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
91 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
92 void SetContext(ContextT&& value) { m_contextHasBeenSet = true; m_context = std::forward<ContextT>(value); }
93 template<typename ContextT = Aws::Map<Aws::String, Aws::String>>
94 ThrottlingException& WithContext(ContextT&& value) { SetContext(std::forward<ContextT>(value)); return *this;}
95 template<typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
96 ThrottlingException& AddContext(ContextKeyT&& key, ContextValueT&& value) {
97 m_contextHasBeenSet = true; m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value)); return *this;
98 }
100 private:
101
102 Aws::String m_message;
103 bool m_messageHasBeenSet = false;
104
105 Aws::String m_serviceCode;
106 bool m_serviceCodeHasBeenSet = false;
107
108 Aws::String m_quotaCode;
109 bool m_quotaCodeHasBeenSet = false;
110
111 int m_retryAfterSeconds{0};
112 bool m_retryAfterSecondsHasBeenSet = false;
113
115 bool m_contextHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace deadline
120} // namespace Aws
ThrottlingException & WithServiceCode(ServiceCodeT &&value)
ThrottlingException & WithQuotaCode(QuotaCodeT &&value)
ThrottlingException & AddContext(ContextKeyT &&key, ContextValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
AWS_DEADLINE_API ThrottlingException(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API ThrottlingException()=default
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEADLINE_API ThrottlingException & operator=(Aws::Utils::Json::JsonView jsonValue)
ThrottlingException & WithMessage(MessageT &&value)
ThrottlingException & WithRetryAfterSeconds(int value)
ThrottlingException & WithContext(ContextT &&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