AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
GetSchemaVersionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Document.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
11#include <aws/iot-managed-integrations/model/SchemaVersionType.h>
12#include <aws/iot-managed-integrations/model/SchemaVersionVisibility.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 IoTManagedIntegrations {
26namespace Model {
28 public:
29 AWS_IOTMANAGEDINTEGRATIONS_API GetSchemaVersionResult() = default;
32
34
37 inline const Aws::String& GetSchemaId() const { return m_schemaId; }
38 template <typename SchemaIdT = Aws::String>
39 void SetSchemaId(SchemaIdT&& value) {
40 m_schemaIdHasBeenSet = true;
41 m_schemaId = std::forward<SchemaIdT>(value);
42 }
43 template <typename SchemaIdT = Aws::String>
45 SetSchemaId(std::forward<SchemaIdT>(value));
46 return *this;
47 }
49
51
54 inline SchemaVersionType GetType() const { return m_type; }
55 inline void SetType(SchemaVersionType value) {
56 m_typeHasBeenSet = true;
57 m_type = value;
58 }
60 SetType(value);
61 return *this;
62 }
64
66
69 inline const Aws::String& GetDescription() const { return m_description; }
70 template <typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) {
72 m_descriptionHasBeenSet = true;
73 m_description = std::forward<DescriptionT>(value);
74 }
75 template <typename DescriptionT = Aws::String>
76 GetSchemaVersionResult& WithDescription(DescriptionT&& value) {
77 SetDescription(std::forward<DescriptionT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetNamespace() const { return m_namespace; }
87 template <typename NamespaceT = Aws::String>
88 void SetNamespace(NamespaceT&& value) {
89 m_namespaceHasBeenSet = true;
90 m_namespace = std::forward<NamespaceT>(value);
91 }
92 template <typename NamespaceT = Aws::String>
94 SetNamespace(std::forward<NamespaceT>(value));
95 return *this;
96 }
98
100
104 inline const Aws::String& GetSemanticVersion() const { return m_semanticVersion; }
105 template <typename SemanticVersionT = Aws::String>
106 void SetSemanticVersion(SemanticVersionT&& value) {
107 m_semanticVersionHasBeenSet = true;
108 m_semanticVersion = std::forward<SemanticVersionT>(value);
109 }
110 template <typename SemanticVersionT = Aws::String>
111 GetSchemaVersionResult& WithSemanticVersion(SemanticVersionT&& value) {
112 SetSemanticVersion(std::forward<SemanticVersionT>(value));
113 return *this;
114 }
116
118
121 inline SchemaVersionVisibility GetVisibility() const { return m_visibility; }
123 m_visibilityHasBeenSet = true;
124 m_visibility = value;
125 }
127 SetVisibility(value);
128 return *this;
129 }
131
133
136 inline Aws::Utils::DocumentView GetSchema() const { return m_schema; }
137 template <typename SchemaT = Aws::Utils::Document>
138 void SetSchema(SchemaT&& value) {
139 m_schemaHasBeenSet = true;
140 m_schema = std::forward<SchemaT>(value);
141 }
142 template <typename SchemaT = Aws::Utils::Document>
144 SetSchema(std::forward<SchemaT>(value));
145 return *this;
146 }
148
150
151 inline const Aws::String& GetRequestId() const { return m_requestId; }
152 template <typename RequestIdT = Aws::String>
153 void SetRequestId(RequestIdT&& value) {
154 m_requestIdHasBeenSet = true;
155 m_requestId = std::forward<RequestIdT>(value);
156 }
157 template <typename RequestIdT = Aws::String>
159 SetRequestId(std::forward<RequestIdT>(value));
160 return *this;
161 }
163 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
164
165 private:
166 Aws::String m_schemaId;
167
169
170 Aws::String m_description;
171
172 Aws::String m_namespace;
173
174 Aws::String m_semanticVersion;
175
177
178 Aws::Utils::Document m_schema;
179
180 Aws::String m_requestId;
181 Aws::Http::HttpResponseCode m_HttpResponseCode;
182 bool m_schemaIdHasBeenSet = false;
183 bool m_typeHasBeenSet = false;
184 bool m_descriptionHasBeenSet = false;
185 bool m_namespaceHasBeenSet = false;
186 bool m_semanticVersionHasBeenSet = false;
187 bool m_visibilityHasBeenSet = false;
188 bool m_schemaHasBeenSet = false;
189 bool m_requestIdHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace IoTManagedIntegrations
194} // namespace Aws
AWS_IOTMANAGEDINTEGRATIONS_API GetSchemaVersionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_IOTMANAGEDINTEGRATIONS_API GetSchemaVersionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetSchemaVersionResult & WithRequestId(RequestIdT &&value)
GetSchemaVersionResult & WithDescription(DescriptionT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API GetSchemaVersionResult()=default
GetSchemaVersionResult & WithSchemaId(SchemaIdT &&value)
GetSchemaVersionResult & WithSemanticVersion(SemanticVersionT &&value)
GetSchemaVersionResult & WithVisibility(SchemaVersionVisibility value)
GetSchemaVersionResult & WithNamespace(NamespaceT &&value)
GetSchemaVersionResult & WithType(SchemaVersionType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue