AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ServiceQuotaExceededException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/Deadline_EXPORTS.h>
10#include <aws/deadline/model/ServiceQuotaExceededExceptionReason.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace deadline {
22namespace Model {
23
32 public:
33 AWS_DEADLINE_API ServiceQuotaExceededException() = default;
36 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
40 inline const Aws::String& GetMessage() const { return m_message; }
41 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
42 template <typename MessageT = Aws::String>
43 void SetMessage(MessageT&& value) {
44 m_messageHasBeenSet = true;
45 m_message = std::forward<MessageT>(value);
46 }
47 template <typename MessageT = Aws::String>
49 SetMessage(std::forward<MessageT>(value));
50 return *this;
51 }
53
55
58 inline ServiceQuotaExceededExceptionReason GetReason() const { return m_reason; }
59 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
61 m_reasonHasBeenSet = true;
62 m_reason = value;
63 }
65 SetReason(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetResourceType() const { return m_resourceType; }
75 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
76 template <typename ResourceTypeT = Aws::String>
77 void SetResourceType(ResourceTypeT&& value) {
78 m_resourceTypeHasBeenSet = true;
79 m_resourceType = std::forward<ResourceTypeT>(value);
80 }
81 template <typename ResourceTypeT = Aws::String>
83 SetResourceType(std::forward<ResourceTypeT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
93 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
94 template <typename ServiceCodeT = Aws::String>
95 void SetServiceCode(ServiceCodeT&& value) {
96 m_serviceCodeHasBeenSet = true;
97 m_serviceCode = std::forward<ServiceCodeT>(value);
98 }
99 template <typename ServiceCodeT = Aws::String>
101 SetServiceCode(std::forward<ServiceCodeT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
111 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
112 template <typename QuotaCodeT = Aws::String>
113 void SetQuotaCode(QuotaCodeT&& value) {
114 m_quotaCodeHasBeenSet = true;
115 m_quotaCode = std::forward<QuotaCodeT>(value);
116 }
117 template <typename QuotaCodeT = Aws::String>
119 SetQuotaCode(std::forward<QuotaCodeT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetResourceId() const { return m_resourceId; }
129 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
130 template <typename ResourceIdT = Aws::String>
131 void SetResourceId(ResourceIdT&& value) {
132 m_resourceIdHasBeenSet = true;
133 m_resourceId = std::forward<ResourceIdT>(value);
134 }
135 template <typename ResourceIdT = Aws::String>
137 SetResourceId(std::forward<ResourceIdT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::Map<Aws::String, Aws::String>& GetContext() const { return m_context; }
147 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
148 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
149 void SetContext(ContextT&& value) {
150 m_contextHasBeenSet = true;
151 m_context = std::forward<ContextT>(value);
152 }
153 template <typename ContextT = Aws::Map<Aws::String, Aws::String>>
155 SetContext(std::forward<ContextT>(value));
156 return *this;
157 }
158 template <typename ContextKeyT = Aws::String, typename ContextValueT = Aws::String>
159 ServiceQuotaExceededException& AddContext(ContextKeyT&& key, ContextValueT&& value) {
160 m_contextHasBeenSet = true;
161 m_context.emplace(std::forward<ContextKeyT>(key), std::forward<ContextValueT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_message;
167
169
170 Aws::String m_resourceType;
171
172 Aws::String m_serviceCode;
173
174 Aws::String m_quotaCode;
175
176 Aws::String m_resourceId;
177
179 bool m_messageHasBeenSet = false;
180 bool m_reasonHasBeenSet = false;
181 bool m_resourceTypeHasBeenSet = false;
182 bool m_serviceCodeHasBeenSet = false;
183 bool m_quotaCodeHasBeenSet = false;
184 bool m_resourceIdHasBeenSet = false;
185 bool m_contextHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace deadline
190} // namespace Aws
ServiceQuotaExceededException & AddContext(ContextKeyT &&key, ContextValueT &&value)
ServiceQuotaExceededException & WithResourceId(ResourceIdT &&value)
ServiceQuotaExceededExceptionReason GetReason() const
ServiceQuotaExceededException & WithReason(ServiceQuotaExceededExceptionReason value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEADLINE_API ServiceQuotaExceededException()=default
AWS_DEADLINE_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API ServiceQuotaExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceQuotaExceededException & WithMessage(MessageT &&value)
void SetReason(ServiceQuotaExceededExceptionReason value)
ServiceQuotaExceededException & WithQuotaCode(QuotaCodeT &&value)
ServiceQuotaExceededException & WithResourceType(ResourceTypeT &&value)
const Aws::Map< Aws::String, Aws::String > & GetContext() const
ServiceQuotaExceededException & WithContext(ContextT &&value)
ServiceQuotaExceededException & WithServiceCode(ServiceCodeT &&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