AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateSchemaResult.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/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/Compatibility.h>
11#include <aws/glue/model/DataFormat.h>
12#include <aws/glue/model/SchemaStatus.h>
13#include <aws/glue/model/SchemaVersionStatus.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Glue {
27namespace Model {
29 public:
30 AWS_GLUE_API CreateSchemaResult() = default;
33
35
38 inline const Aws::String& GetRegistryName() const { return m_registryName; }
39 template <typename RegistryNameT = Aws::String>
40 void SetRegistryName(RegistryNameT&& value) {
41 m_registryNameHasBeenSet = true;
42 m_registryName = std::forward<RegistryNameT>(value);
43 }
44 template <typename RegistryNameT = Aws::String>
45 CreateSchemaResult& WithRegistryName(RegistryNameT&& value) {
46 SetRegistryName(std::forward<RegistryNameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetRegistryArn() const { return m_registryArn; }
56 template <typename RegistryArnT = Aws::String>
57 void SetRegistryArn(RegistryArnT&& value) {
58 m_registryArnHasBeenSet = true;
59 m_registryArn = std::forward<RegistryArnT>(value);
60 }
61 template <typename RegistryArnT = Aws::String>
62 CreateSchemaResult& WithRegistryArn(RegistryArnT&& value) {
63 SetRegistryArn(std::forward<RegistryArnT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
73 template <typename SchemaNameT = Aws::String>
74 void SetSchemaName(SchemaNameT&& value) {
75 m_schemaNameHasBeenSet = true;
76 m_schemaName = std::forward<SchemaNameT>(value);
77 }
78 template <typename SchemaNameT = Aws::String>
79 CreateSchemaResult& WithSchemaName(SchemaNameT&& value) {
80 SetSchemaName(std::forward<SchemaNameT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetSchemaArn() const { return m_schemaArn; }
90 template <typename SchemaArnT = Aws::String>
91 void SetSchemaArn(SchemaArnT&& value) {
92 m_schemaArnHasBeenSet = true;
93 m_schemaArn = std::forward<SchemaArnT>(value);
94 }
95 template <typename SchemaArnT = Aws::String>
96 CreateSchemaResult& WithSchemaArn(SchemaArnT&& value) {
97 SetSchemaArn(std::forward<SchemaArnT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetDescription() const { return m_description; }
107 template <typename DescriptionT = Aws::String>
108 void SetDescription(DescriptionT&& value) {
109 m_descriptionHasBeenSet = true;
110 m_description = std::forward<DescriptionT>(value);
111 }
112 template <typename DescriptionT = Aws::String>
113 CreateSchemaResult& WithDescription(DescriptionT&& value) {
114 SetDescription(std::forward<DescriptionT>(value));
115 return *this;
116 }
118
120
124 inline DataFormat GetDataFormat() const { return m_dataFormat; }
125 inline void SetDataFormat(DataFormat value) {
126 m_dataFormatHasBeenSet = true;
127 m_dataFormat = value;
128 }
130 SetDataFormat(value);
131 return *this;
132 }
134
136
139 inline Compatibility GetCompatibility() const { return m_compatibility; }
140 inline void SetCompatibility(Compatibility value) {
141 m_compatibilityHasBeenSet = true;
142 m_compatibility = value;
143 }
145 SetCompatibility(value);
146 return *this;
147 }
149
151
155 inline long long GetSchemaCheckpoint() const { return m_schemaCheckpoint; }
156 inline void SetSchemaCheckpoint(long long value) {
157 m_schemaCheckpointHasBeenSet = true;
158 m_schemaCheckpoint = value;
159 }
160 inline CreateSchemaResult& WithSchemaCheckpoint(long long value) {
161 SetSchemaCheckpoint(value);
162 return *this;
163 }
165
167
171 inline long long GetLatestSchemaVersion() const { return m_latestSchemaVersion; }
172 inline void SetLatestSchemaVersion(long long value) {
173 m_latestSchemaVersionHasBeenSet = true;
174 m_latestSchemaVersion = value;
175 }
178 return *this;
179 }
181
183
187 inline long long GetNextSchemaVersion() const { return m_nextSchemaVersion; }
188 inline void SetNextSchemaVersion(long long value) {
189 m_nextSchemaVersionHasBeenSet = true;
190 m_nextSchemaVersion = value;
191 }
192 inline CreateSchemaResult& WithNextSchemaVersion(long long value) {
194 return *this;
195 }
197
199
202 inline SchemaStatus GetSchemaStatus() const { return m_schemaStatus; }
203 inline void SetSchemaStatus(SchemaStatus value) {
204 m_schemaStatusHasBeenSet = true;
205 m_schemaStatus = value;
206 }
208 SetSchemaStatus(value);
209 return *this;
210 }
212
214
217 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
218 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
219 void SetTags(TagsT&& value) {
220 m_tagsHasBeenSet = true;
221 m_tags = std::forward<TagsT>(value);
222 }
223 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
224 CreateSchemaResult& WithTags(TagsT&& value) {
225 SetTags(std::forward<TagsT>(value));
226 return *this;
227 }
228 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
229 CreateSchemaResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
230 m_tagsHasBeenSet = true;
231 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::String& GetSchemaVersionId() const { return m_schemaVersionId; }
241 template <typename SchemaVersionIdT = Aws::String>
242 void SetSchemaVersionId(SchemaVersionIdT&& value) {
243 m_schemaVersionIdHasBeenSet = true;
244 m_schemaVersionId = std::forward<SchemaVersionIdT>(value);
245 }
246 template <typename SchemaVersionIdT = Aws::String>
247 CreateSchemaResult& WithSchemaVersionId(SchemaVersionIdT&& value) {
248 SetSchemaVersionId(std::forward<SchemaVersionIdT>(value));
249 return *this;
250 }
252
254
257 inline SchemaVersionStatus GetSchemaVersionStatus() const { return m_schemaVersionStatus; }
259 m_schemaVersionStatusHasBeenSet = true;
260 m_schemaVersionStatus = value;
261 }
264 return *this;
265 }
267
269
270 inline const Aws::String& GetRequestId() const { return m_requestId; }
271 template <typename RequestIdT = Aws::String>
272 void SetRequestId(RequestIdT&& value) {
273 m_requestIdHasBeenSet = true;
274 m_requestId = std::forward<RequestIdT>(value);
275 }
276 template <typename RequestIdT = Aws::String>
277 CreateSchemaResult& WithRequestId(RequestIdT&& value) {
278 SetRequestId(std::forward<RequestIdT>(value));
279 return *this;
280 }
282 private:
283 Aws::String m_registryName;
284
285 Aws::String m_registryArn;
286
287 Aws::String m_schemaName;
288
289 Aws::String m_schemaArn;
290
291 Aws::String m_description;
292
293 DataFormat m_dataFormat{DataFormat::NOT_SET};
294
295 Compatibility m_compatibility{Compatibility::NOT_SET};
296
297 long long m_schemaCheckpoint{0};
298
299 long long m_latestSchemaVersion{0};
300
301 long long m_nextSchemaVersion{0};
302
303 SchemaStatus m_schemaStatus{SchemaStatus::NOT_SET};
304
306
307 Aws::String m_schemaVersionId;
308
310
311 Aws::String m_requestId;
312 bool m_registryNameHasBeenSet = false;
313 bool m_registryArnHasBeenSet = false;
314 bool m_schemaNameHasBeenSet = false;
315 bool m_schemaArnHasBeenSet = false;
316 bool m_descriptionHasBeenSet = false;
317 bool m_dataFormatHasBeenSet = false;
318 bool m_compatibilityHasBeenSet = false;
319 bool m_schemaCheckpointHasBeenSet = false;
320 bool m_latestSchemaVersionHasBeenSet = false;
321 bool m_nextSchemaVersionHasBeenSet = false;
322 bool m_schemaStatusHasBeenSet = false;
323 bool m_tagsHasBeenSet = false;
324 bool m_schemaVersionIdHasBeenSet = false;
325 bool m_schemaVersionStatusHasBeenSet = false;
326 bool m_requestIdHasBeenSet = false;
327};
328
329} // namespace Model
330} // namespace Glue
331} // 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
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