AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetSchemaResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.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
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Glue {
26namespace Model {
28 public:
29 AWS_GLUE_API GetSchemaResult() = default;
32
34
37 inline const Aws::String& GetRegistryName() const { return m_registryName; }
38 template <typename RegistryNameT = Aws::String>
39 void SetRegistryName(RegistryNameT&& value) {
40 m_registryNameHasBeenSet = true;
41 m_registryName = std::forward<RegistryNameT>(value);
42 }
43 template <typename RegistryNameT = Aws::String>
44 GetSchemaResult& WithRegistryName(RegistryNameT&& value) {
45 SetRegistryName(std::forward<RegistryNameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetRegistryArn() const { return m_registryArn; }
55 template <typename RegistryArnT = Aws::String>
56 void SetRegistryArn(RegistryArnT&& value) {
57 m_registryArnHasBeenSet = true;
58 m_registryArn = std::forward<RegistryArnT>(value);
59 }
60 template <typename RegistryArnT = Aws::String>
61 GetSchemaResult& WithRegistryArn(RegistryArnT&& value) {
62 SetRegistryArn(std::forward<RegistryArnT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
72 template <typename SchemaNameT = Aws::String>
73 void SetSchemaName(SchemaNameT&& value) {
74 m_schemaNameHasBeenSet = true;
75 m_schemaName = std::forward<SchemaNameT>(value);
76 }
77 template <typename SchemaNameT = Aws::String>
78 GetSchemaResult& WithSchemaName(SchemaNameT&& value) {
79 SetSchemaName(std::forward<SchemaNameT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetSchemaArn() const { return m_schemaArn; }
89 template <typename SchemaArnT = Aws::String>
90 void SetSchemaArn(SchemaArnT&& value) {
91 m_schemaArnHasBeenSet = true;
92 m_schemaArn = std::forward<SchemaArnT>(value);
93 }
94 template <typename SchemaArnT = Aws::String>
95 GetSchemaResult& WithSchemaArn(SchemaArnT&& value) {
96 SetSchemaArn(std::forward<SchemaArnT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetDescription() const { return m_description; }
106 template <typename DescriptionT = Aws::String>
107 void SetDescription(DescriptionT&& value) {
108 m_descriptionHasBeenSet = true;
109 m_description = std::forward<DescriptionT>(value);
110 }
111 template <typename DescriptionT = Aws::String>
112 GetSchemaResult& WithDescription(DescriptionT&& value) {
113 SetDescription(std::forward<DescriptionT>(value));
114 return *this;
115 }
117
119
123 inline DataFormat GetDataFormat() const { return m_dataFormat; }
124 inline void SetDataFormat(DataFormat value) {
125 m_dataFormatHasBeenSet = true;
126 m_dataFormat = value;
127 }
129 SetDataFormat(value);
130 return *this;
131 }
133
135
138 inline Compatibility GetCompatibility() const { return m_compatibility; }
139 inline void SetCompatibility(Compatibility value) {
140 m_compatibilityHasBeenSet = true;
141 m_compatibility = value;
142 }
144 SetCompatibility(value);
145 return *this;
146 }
148
150
154 inline long long GetSchemaCheckpoint() const { return m_schemaCheckpoint; }
155 inline void SetSchemaCheckpoint(long long value) {
156 m_schemaCheckpointHasBeenSet = true;
157 m_schemaCheckpoint = value;
158 }
159 inline GetSchemaResult& WithSchemaCheckpoint(long long value) {
160 SetSchemaCheckpoint(value);
161 return *this;
162 }
164
166
170 inline long long GetLatestSchemaVersion() const { return m_latestSchemaVersion; }
171 inline void SetLatestSchemaVersion(long long value) {
172 m_latestSchemaVersionHasBeenSet = true;
173 m_latestSchemaVersion = value;
174 }
175 inline GetSchemaResult& WithLatestSchemaVersion(long long value) {
177 return *this;
178 }
180
182
186 inline long long GetNextSchemaVersion() const { return m_nextSchemaVersion; }
187 inline void SetNextSchemaVersion(long long value) {
188 m_nextSchemaVersionHasBeenSet = true;
189 m_nextSchemaVersion = value;
190 }
191 inline GetSchemaResult& WithNextSchemaVersion(long long value) {
193 return *this;
194 }
196
198
201 inline SchemaStatus GetSchemaStatus() const { return m_schemaStatus; }
202 inline void SetSchemaStatus(SchemaStatus value) {
203 m_schemaStatusHasBeenSet = true;
204 m_schemaStatus = value;
205 }
207 SetSchemaStatus(value);
208 return *this;
209 }
211
213
216 inline const Aws::String& GetCreatedTime() const { return m_createdTime; }
217 template <typename CreatedTimeT = Aws::String>
218 void SetCreatedTime(CreatedTimeT&& value) {
219 m_createdTimeHasBeenSet = true;
220 m_createdTime = std::forward<CreatedTimeT>(value);
221 }
222 template <typename CreatedTimeT = Aws::String>
223 GetSchemaResult& WithCreatedTime(CreatedTimeT&& value) {
224 SetCreatedTime(std::forward<CreatedTimeT>(value));
225 return *this;
226 }
228
230
233 inline const Aws::String& GetUpdatedTime() const { return m_updatedTime; }
234 template <typename UpdatedTimeT = Aws::String>
235 void SetUpdatedTime(UpdatedTimeT&& value) {
236 m_updatedTimeHasBeenSet = true;
237 m_updatedTime = std::forward<UpdatedTimeT>(value);
238 }
239 template <typename UpdatedTimeT = Aws::String>
240 GetSchemaResult& WithUpdatedTime(UpdatedTimeT&& value) {
241 SetUpdatedTime(std::forward<UpdatedTimeT>(value));
242 return *this;
243 }
245
247
248 inline const Aws::String& GetRequestId() const { return m_requestId; }
249 template <typename RequestIdT = Aws::String>
250 void SetRequestId(RequestIdT&& value) {
251 m_requestIdHasBeenSet = true;
252 m_requestId = std::forward<RequestIdT>(value);
253 }
254 template <typename RequestIdT = Aws::String>
255 GetSchemaResult& WithRequestId(RequestIdT&& value) {
256 SetRequestId(std::forward<RequestIdT>(value));
257 return *this;
258 }
260 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
261
262 private:
263 Aws::String m_registryName;
264
265 Aws::String m_registryArn;
266
267 Aws::String m_schemaName;
268
269 Aws::String m_schemaArn;
270
271 Aws::String m_description;
272
273 DataFormat m_dataFormat{DataFormat::NOT_SET};
274
275 Compatibility m_compatibility{Compatibility::NOT_SET};
276
277 long long m_schemaCheckpoint{0};
278
279 long long m_latestSchemaVersion{0};
280
281 long long m_nextSchemaVersion{0};
282
283 SchemaStatus m_schemaStatus{SchemaStatus::NOT_SET};
284
285 Aws::String m_createdTime;
286
287 Aws::String m_updatedTime;
288
289 Aws::String m_requestId;
290 Aws::Http::HttpResponseCode m_HttpResponseCode;
291 bool m_registryNameHasBeenSet = false;
292 bool m_registryArnHasBeenSet = false;
293 bool m_schemaNameHasBeenSet = false;
294 bool m_schemaArnHasBeenSet = false;
295 bool m_descriptionHasBeenSet = false;
296 bool m_dataFormatHasBeenSet = false;
297 bool m_compatibilityHasBeenSet = false;
298 bool m_schemaCheckpointHasBeenSet = false;
299 bool m_latestSchemaVersionHasBeenSet = false;
300 bool m_nextSchemaVersionHasBeenSet = false;
301 bool m_schemaStatusHasBeenSet = false;
302 bool m_createdTimeHasBeenSet = false;
303 bool m_updatedTimeHasBeenSet = false;
304 bool m_requestIdHasBeenSet = false;
305};
306
307} // namespace Model
308} // namespace Glue
309} // namespace Aws
void SetSchemaCheckpoint(long long value)
GetSchemaResult & WithUpdatedTime(UpdatedTimeT &&value)
AWS_GLUE_API GetSchemaResult()=default
GetSchemaResult & WithLatestSchemaVersion(long long value)
const Aws::String & GetRegistryArn() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetCompatibility(Compatibility value)
void SetUpdatedTime(UpdatedTimeT &&value)
void SetLatestSchemaVersion(long long value)
GetSchemaResult & WithRegistryArn(RegistryArnT &&value)
GetSchemaResult & WithDataFormat(DataFormat value)
const Aws::String & GetCreatedTime() const
void SetSchemaName(SchemaNameT &&value)
const Aws::String & GetSchemaArn() const
GetSchemaResult & WithSchemaCheckpoint(long long value)
GetSchemaResult & WithSchemaArn(SchemaArnT &&value)
void SetSchemaStatus(SchemaStatus value)
GetSchemaResult & WithNextSchemaVersion(long long value)
GetSchemaResult & WithCreatedTime(CreatedTimeT &&value)
void SetCreatedTime(CreatedTimeT &&value)
GetSchemaResult & WithDescription(DescriptionT &&value)
GetSchemaResult & WithSchemaStatus(SchemaStatus value)
void SetNextSchemaVersion(long long value)
void SetDataFormat(DataFormat value)
Compatibility GetCompatibility() const
const Aws::String & GetRegistryName() const
GetSchemaResult & WithRegistryName(RegistryNameT &&value)
AWS_GLUE_API GetSchemaResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRegistryName(RegistryNameT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
void SetSchemaArn(SchemaArnT &&value)
AWS_GLUE_API GetSchemaResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSchemaResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
void SetRequestId(RequestIdT &&value)
const Aws::String & GetSchemaName() const
GetSchemaResult & WithSchemaName(SchemaNameT &&value)
GetSchemaResult & WithCompatibility(Compatibility value)
const Aws::String & GetUpdatedTime() const
void SetRegistryArn(RegistryArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue