AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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