AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateSchemaResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/glue/Glue_EXPORTS.h>
11#include <aws/glue/model/Compatibility.h>
12#include <aws/glue/model/DataFormat.h>
13#include <aws/glue/model/SchemaStatus.h>
14#include <aws/glue/model/SchemaVersionStatus.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Glue {
28namespace Model {
30 public:
31 AWS_GLUE_API CreateSchemaResult() = default;
34
36
39 inline const Aws::String& GetRegistryName() const { return m_registryName; }
40 template <typename RegistryNameT = Aws::String>
41 void SetRegistryName(RegistryNameT&& value) {
42 m_registryNameHasBeenSet = true;
43 m_registryName = std::forward<RegistryNameT>(value);
44 }
45 template <typename RegistryNameT = Aws::String>
46 CreateSchemaResult& WithRegistryName(RegistryNameT&& value) {
47 SetRegistryName(std::forward<RegistryNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetRegistryArn() const { return m_registryArn; }
57 template <typename RegistryArnT = Aws::String>
58 void SetRegistryArn(RegistryArnT&& value) {
59 m_registryArnHasBeenSet = true;
60 m_registryArn = std::forward<RegistryArnT>(value);
61 }
62 template <typename RegistryArnT = Aws::String>
63 CreateSchemaResult& WithRegistryArn(RegistryArnT&& value) {
64 SetRegistryArn(std::forward<RegistryArnT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
74 template <typename SchemaNameT = Aws::String>
75 void SetSchemaName(SchemaNameT&& value) {
76 m_schemaNameHasBeenSet = true;
77 m_schemaName = std::forward<SchemaNameT>(value);
78 }
79 template <typename SchemaNameT = Aws::String>
80 CreateSchemaResult& WithSchemaName(SchemaNameT&& value) {
81 SetSchemaName(std::forward<SchemaNameT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetSchemaArn() const { return m_schemaArn; }
91 template <typename SchemaArnT = Aws::String>
92 void SetSchemaArn(SchemaArnT&& value) {
93 m_schemaArnHasBeenSet = true;
94 m_schemaArn = std::forward<SchemaArnT>(value);
95 }
96 template <typename SchemaArnT = Aws::String>
97 CreateSchemaResult& WithSchemaArn(SchemaArnT&& value) {
98 SetSchemaArn(std::forward<SchemaArnT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetDescription() const { return m_description; }
108 template <typename DescriptionT = Aws::String>
109 void SetDescription(DescriptionT&& value) {
110 m_descriptionHasBeenSet = true;
111 m_description = std::forward<DescriptionT>(value);
112 }
113 template <typename DescriptionT = Aws::String>
114 CreateSchemaResult& WithDescription(DescriptionT&& value) {
115 SetDescription(std::forward<DescriptionT>(value));
116 return *this;
117 }
119
121
125 inline DataFormat GetDataFormat() const { return m_dataFormat; }
126 inline void SetDataFormat(DataFormat value) {
127 m_dataFormatHasBeenSet = true;
128 m_dataFormat = value;
129 }
131 SetDataFormat(value);
132 return *this;
133 }
135
137
140 inline Compatibility GetCompatibility() const { return m_compatibility; }
141 inline void SetCompatibility(Compatibility value) {
142 m_compatibilityHasBeenSet = true;
143 m_compatibility = value;
144 }
146 SetCompatibility(value);
147 return *this;
148 }
150
152
156 inline long long GetSchemaCheckpoint() const { return m_schemaCheckpoint; }
157 inline void SetSchemaCheckpoint(long long value) {
158 m_schemaCheckpointHasBeenSet = true;
159 m_schemaCheckpoint = value;
160 }
161 inline CreateSchemaResult& WithSchemaCheckpoint(long long value) {
162 SetSchemaCheckpoint(value);
163 return *this;
164 }
166
168
172 inline long long GetLatestSchemaVersion() const { return m_latestSchemaVersion; }
173 inline void SetLatestSchemaVersion(long long value) {
174 m_latestSchemaVersionHasBeenSet = true;
175 m_latestSchemaVersion = value;
176 }
179 return *this;
180 }
182
184
188 inline long long GetNextSchemaVersion() const { return m_nextSchemaVersion; }
189 inline void SetNextSchemaVersion(long long value) {
190 m_nextSchemaVersionHasBeenSet = true;
191 m_nextSchemaVersion = value;
192 }
193 inline CreateSchemaResult& WithNextSchemaVersion(long long value) {
195 return *this;
196 }
198
200
203 inline SchemaStatus GetSchemaStatus() const { return m_schemaStatus; }
204 inline void SetSchemaStatus(SchemaStatus value) {
205 m_schemaStatusHasBeenSet = true;
206 m_schemaStatus = value;
207 }
209 SetSchemaStatus(value);
210 return *this;
211 }
213
215
218 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
219 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
220 void SetTags(TagsT&& value) {
221 m_tagsHasBeenSet = true;
222 m_tags = std::forward<TagsT>(value);
223 }
224 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
225 CreateSchemaResult& WithTags(TagsT&& value) {
226 SetTags(std::forward<TagsT>(value));
227 return *this;
228 }
229 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
230 CreateSchemaResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
231 m_tagsHasBeenSet = true;
232 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
233 return *this;
234 }
236
238
241 inline const Aws::String& GetSchemaVersionId() const { return m_schemaVersionId; }
242 template <typename SchemaVersionIdT = Aws::String>
243 void SetSchemaVersionId(SchemaVersionIdT&& value) {
244 m_schemaVersionIdHasBeenSet = true;
245 m_schemaVersionId = std::forward<SchemaVersionIdT>(value);
246 }
247 template <typename SchemaVersionIdT = Aws::String>
248 CreateSchemaResult& WithSchemaVersionId(SchemaVersionIdT&& value) {
249 SetSchemaVersionId(std::forward<SchemaVersionIdT>(value));
250 return *this;
251 }
253
255
258 inline SchemaVersionStatus GetSchemaVersionStatus() const { return m_schemaVersionStatus; }
260 m_schemaVersionStatusHasBeenSet = true;
261 m_schemaVersionStatus = value;
262 }
265 return *this;
266 }
268
270
271 inline const Aws::String& GetRequestId() const { return m_requestId; }
272 template <typename RequestIdT = Aws::String>
273 void SetRequestId(RequestIdT&& value) {
274 m_requestIdHasBeenSet = true;
275 m_requestId = std::forward<RequestIdT>(value);
276 }
277 template <typename RequestIdT = Aws::String>
278 CreateSchemaResult& WithRequestId(RequestIdT&& value) {
279 SetRequestId(std::forward<RequestIdT>(value));
280 return *this;
281 }
283 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
284
285 private:
286 Aws::String m_registryName;
287
288 Aws::String m_registryArn;
289
290 Aws::String m_schemaName;
291
292 Aws::String m_schemaArn;
293
294 Aws::String m_description;
295
296 DataFormat m_dataFormat{DataFormat::NOT_SET};
297
298 Compatibility m_compatibility{Compatibility::NOT_SET};
299
300 long long m_schemaCheckpoint{0};
301
302 long long m_latestSchemaVersion{0};
303
304 long long m_nextSchemaVersion{0};
305
306 SchemaStatus m_schemaStatus{SchemaStatus::NOT_SET};
307
309
310 Aws::String m_schemaVersionId;
311
313
314 Aws::String m_requestId;
315 Aws::Http::HttpResponseCode m_HttpResponseCode;
316 bool m_registryNameHasBeenSet = false;
317 bool m_registryArnHasBeenSet = false;
318 bool m_schemaNameHasBeenSet = false;
319 bool m_schemaArnHasBeenSet = false;
320 bool m_descriptionHasBeenSet = false;
321 bool m_dataFormatHasBeenSet = false;
322 bool m_compatibilityHasBeenSet = false;
323 bool m_schemaCheckpointHasBeenSet = false;
324 bool m_latestSchemaVersionHasBeenSet = false;
325 bool m_nextSchemaVersionHasBeenSet = false;
326 bool m_schemaStatusHasBeenSet = false;
327 bool m_tagsHasBeenSet = false;
328 bool m_schemaVersionIdHasBeenSet = false;
329 bool m_schemaVersionStatusHasBeenSet = false;
330 bool m_requestIdHasBeenSet = false;
331};
332
333} // namespace Model
334} // namespace Glue
335} // namespace Aws
SchemaVersionStatus GetSchemaVersionStatus() const
CreateSchemaResult & WithSchemaVersionStatus(SchemaVersionStatus value)
const Aws::String & GetRegistryArn() const
const Aws::String & GetRegistryName() const
CreateSchemaResult & WithSchemaName(SchemaNameT &&value)
const Aws::String & GetRequestId() const
const Aws::String & GetDescription() const
CreateSchemaResult & WithDescription(DescriptionT &&value)
void SetSchemaName(SchemaNameT &&value)
AWS_GLUE_API CreateSchemaResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetSchemaVersionStatus(SchemaVersionStatus value)
void SetDescription(DescriptionT &&value)
AWS_GLUE_API CreateSchemaResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateSchemaResult & WithDataFormat(DataFormat value)
CreateSchemaResult & WithSchemaCheckpoint(long long value)
const Aws::String & GetSchemaName() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_GLUE_API CreateSchemaResult()=default
CreateSchemaResult & WithRegistryName(RegistryNameT &&value)
CreateSchemaResult & WithSchemaArn(SchemaArnT &&value)
void SetRegistryName(RegistryNameT &&value)
const Aws::String & GetSchemaVersionId() const
CreateSchemaResult & WithTags(TagsT &&value)
CreateSchemaResult & WithCompatibility(Compatibility value)
void SetSchemaVersionId(SchemaVersionIdT &&value)
CreateSchemaResult & WithSchemaStatus(SchemaStatus value)
CreateSchemaResult & WithRegistryArn(RegistryArnT &&value)
CreateSchemaResult & WithNextSchemaVersion(long long value)
void SetCompatibility(Compatibility value)
const Aws::String & GetSchemaArn() const
CreateSchemaResult & WithRequestId(RequestIdT &&value)
CreateSchemaResult & WithSchemaVersionId(SchemaVersionIdT &&value)
void SetRegistryArn(RegistryArnT &&value)
CreateSchemaResult & WithLatestSchemaVersion(long long value)
CreateSchemaResult & AddTags(TagsKeyT &&key, TagsValueT &&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