AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ServiceQuotaExceededException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mgn/Mgn_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace mgn {
20namespace Model {
21
29 public:
30 AWS_MGN_API ServiceQuotaExceededException() = default;
34
36
37 inline const Aws::String& GetMessage() const { return m_message; }
38 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
39 template <typename MessageT = Aws::String>
40 void SetMessage(MessageT&& value) {
41 m_messageHasBeenSet = true;
42 m_message = std::forward<MessageT>(value);
43 }
44 template <typename MessageT = Aws::String>
46 SetMessage(std::forward<MessageT>(value));
47 return *this;
48 }
50
52
53 inline const Aws::String& GetCode() const { return m_code; }
54 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
55 template <typename CodeT = Aws::String>
56 void SetCode(CodeT&& value) {
57 m_codeHasBeenSet = true;
58 m_code = std::forward<CodeT>(value);
59 }
60 template <typename CodeT = Aws::String>
62 SetCode(std::forward<CodeT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetResourceId() const { return m_resourceId; }
72 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
73 template <typename ResourceIdT = Aws::String>
74 void SetResourceId(ResourceIdT&& value) {
75 m_resourceIdHasBeenSet = true;
76 m_resourceId = std::forward<ResourceIdT>(value);
77 }
78 template <typename ResourceIdT = Aws::String>
80 SetResourceId(std::forward<ResourceIdT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetResourceType() const { return m_resourceType; }
90 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
91 template <typename ResourceTypeT = Aws::String>
92 void SetResourceType(ResourceTypeT&& value) {
93 m_resourceTypeHasBeenSet = true;
94 m_resourceType = std::forward<ResourceTypeT>(value);
95 }
96 template <typename ResourceTypeT = Aws::String>
98 SetResourceType(std::forward<ResourceTypeT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetServiceCode() const { return m_serviceCode; }
108 inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; }
109 template <typename ServiceCodeT = Aws::String>
110 void SetServiceCode(ServiceCodeT&& value) {
111 m_serviceCodeHasBeenSet = true;
112 m_serviceCode = std::forward<ServiceCodeT>(value);
113 }
114 template <typename ServiceCodeT = Aws::String>
116 SetServiceCode(std::forward<ServiceCodeT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetQuotaCode() const { return m_quotaCode; }
126 inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; }
127 template <typename QuotaCodeT = Aws::String>
128 void SetQuotaCode(QuotaCodeT&& value) {
129 m_quotaCodeHasBeenSet = true;
130 m_quotaCode = std::forward<QuotaCodeT>(value);
131 }
132 template <typename QuotaCodeT = Aws::String>
134 SetQuotaCode(std::forward<QuotaCodeT>(value));
135 return *this;
136 }
138
140
143 inline int GetQuotaValue() const { return m_quotaValue; }
144 inline bool QuotaValueHasBeenSet() const { return m_quotaValueHasBeenSet; }
145 inline void SetQuotaValue(int value) {
146 m_quotaValueHasBeenSet = true;
147 m_quotaValue = value;
148 }
150 SetQuotaValue(value);
151 return *this;
152 }
154 private:
155 Aws::String m_message;
156
157 Aws::String m_code;
158
159 Aws::String m_resourceId;
160
161 Aws::String m_resourceType;
162
163 Aws::String m_serviceCode;
164
165 Aws::String m_quotaCode;
166
167 int m_quotaValue{0};
168 bool m_messageHasBeenSet = false;
169 bool m_codeHasBeenSet = false;
170 bool m_resourceIdHasBeenSet = false;
171 bool m_resourceTypeHasBeenSet = false;
172 bool m_serviceCodeHasBeenSet = false;
173 bool m_quotaCodeHasBeenSet = false;
174 bool m_quotaValueHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace mgn
179} // namespace Aws
ServiceQuotaExceededException & WithQuotaValue(int value)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MGN_API ServiceQuotaExceededException & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceQuotaExceededException & WithResourceId(ResourceIdT &&value)
ServiceQuotaExceededException & WithServiceCode(ServiceCodeT &&value)
ServiceQuotaExceededException & WithQuotaCode(QuotaCodeT &&value)
ServiceQuotaExceededException & WithMessage(MessageT &&value)
ServiceQuotaExceededException & WithResourceType(ResourceTypeT &&value)
AWS_MGN_API ServiceQuotaExceededException(Aws::Utils::Json::JsonView jsonValue)
ServiceQuotaExceededException & WithCode(CodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue