AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DescribeSchemaResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/schemas/Schemas_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Schemas {
25namespace Model {
27 public:
28 AWS_SCHEMAS_API DescribeSchemaResult() = default;
31
33
36 inline const Aws::String& GetContent() const { return m_content; }
37 template <typename ContentT = Aws::String>
38 void SetContent(ContentT&& value) {
39 m_contentHasBeenSet = true;
40 m_content = std::forward<ContentT>(value);
41 }
42 template <typename ContentT = Aws::String>
43 DescribeSchemaResult& WithContent(ContentT&& value) {
44 SetContent(std::forward<ContentT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetDescription() const { return m_description; }
54 template <typename DescriptionT = Aws::String>
55 void SetDescription(DescriptionT&& value) {
56 m_descriptionHasBeenSet = true;
57 m_description = std::forward<DescriptionT>(value);
58 }
59 template <typename DescriptionT = Aws::String>
60 DescribeSchemaResult& WithDescription(DescriptionT&& value) {
61 SetDescription(std::forward<DescriptionT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
71 template <typename LastModifiedT = Aws::Utils::DateTime>
72 void SetLastModified(LastModifiedT&& value) {
73 m_lastModifiedHasBeenSet = true;
74 m_lastModified = std::forward<LastModifiedT>(value);
75 }
76 template <typename LastModifiedT = Aws::Utils::DateTime>
77 DescribeSchemaResult& WithLastModified(LastModifiedT&& value) {
78 SetLastModified(std::forward<LastModifiedT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetSchemaArn() const { return m_schemaArn; }
88 template <typename SchemaArnT = Aws::String>
89 void SetSchemaArn(SchemaArnT&& value) {
90 m_schemaArnHasBeenSet = true;
91 m_schemaArn = std::forward<SchemaArnT>(value);
92 }
93 template <typename SchemaArnT = Aws::String>
94 DescribeSchemaResult& WithSchemaArn(SchemaArnT&& value) {
95 SetSchemaArn(std::forward<SchemaArnT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
105 template <typename SchemaNameT = Aws::String>
106 void SetSchemaName(SchemaNameT&& value) {
107 m_schemaNameHasBeenSet = true;
108 m_schemaName = std::forward<SchemaNameT>(value);
109 }
110 template <typename SchemaNameT = Aws::String>
111 DescribeSchemaResult& WithSchemaName(SchemaNameT&& value) {
112 SetSchemaName(std::forward<SchemaNameT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
122 template <typename SchemaVersionT = Aws::String>
123 void SetSchemaVersion(SchemaVersionT&& value) {
124 m_schemaVersionHasBeenSet = true;
125 m_schemaVersion = std::forward<SchemaVersionT>(value);
126 }
127 template <typename SchemaVersionT = Aws::String>
128 DescribeSchemaResult& WithSchemaVersion(SchemaVersionT&& value) {
129 SetSchemaVersion(std::forward<SchemaVersionT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
139 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
140 void SetTags(TagsT&& value) {
141 m_tagsHasBeenSet = true;
142 m_tags = std::forward<TagsT>(value);
143 }
144 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
146 SetTags(std::forward<TagsT>(value));
147 return *this;
148 }
149 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
150 DescribeSchemaResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
151 m_tagsHasBeenSet = true;
152 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::String& GetType() const { return m_type; }
162 template <typename TypeT = Aws::String>
163 void SetType(TypeT&& value) {
164 m_typeHasBeenSet = true;
165 m_type = std::forward<TypeT>(value);
166 }
167 template <typename TypeT = Aws::String>
169 SetType(std::forward<TypeT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Utils::DateTime& GetVersionCreatedDate() const { return m_versionCreatedDate; }
179 template <typename VersionCreatedDateT = Aws::Utils::DateTime>
180 void SetVersionCreatedDate(VersionCreatedDateT&& value) {
181 m_versionCreatedDateHasBeenSet = true;
182 m_versionCreatedDate = std::forward<VersionCreatedDateT>(value);
183 }
184 template <typename VersionCreatedDateT = Aws::Utils::DateTime>
185 DescribeSchemaResult& WithVersionCreatedDate(VersionCreatedDateT&& value) {
186 SetVersionCreatedDate(std::forward<VersionCreatedDateT>(value));
187 return *this;
188 }
190
192
193 inline const Aws::String& GetRequestId() const { return m_requestId; }
194 template <typename RequestIdT = Aws::String>
195 void SetRequestId(RequestIdT&& value) {
196 m_requestIdHasBeenSet = true;
197 m_requestId = std::forward<RequestIdT>(value);
198 }
199 template <typename RequestIdT = Aws::String>
200 DescribeSchemaResult& WithRequestId(RequestIdT&& value) {
201 SetRequestId(std::forward<RequestIdT>(value));
202 return *this;
203 }
205 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
206
207 private:
208 Aws::String m_content;
209
210 Aws::String m_description;
211
212 Aws::Utils::DateTime m_lastModified{};
213
214 Aws::String m_schemaArn;
215
216 Aws::String m_schemaName;
217
218 Aws::String m_schemaVersion;
219
221
222 Aws::String m_type;
223
224 Aws::Utils::DateTime m_versionCreatedDate{};
225
226 Aws::String m_requestId;
227 Aws::Http::HttpResponseCode m_HttpResponseCode;
228 bool m_contentHasBeenSet = false;
229 bool m_descriptionHasBeenSet = false;
230 bool m_lastModifiedHasBeenSet = false;
231 bool m_schemaArnHasBeenSet = false;
232 bool m_schemaNameHasBeenSet = false;
233 bool m_schemaVersionHasBeenSet = false;
234 bool m_tagsHasBeenSet = false;
235 bool m_typeHasBeenSet = false;
236 bool m_versionCreatedDateHasBeenSet = false;
237 bool m_requestIdHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace Schemas
242} // namespace Aws
DescribeSchemaResult & WithVersionCreatedDate(VersionCreatedDateT &&value)
DescribeSchemaResult & WithLastModified(LastModifiedT &&value)
DescribeSchemaResult & WithDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetVersionCreatedDate() const
DescribeSchemaResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetLastModified() const
AWS_SCHEMAS_API DescribeSchemaResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeSchemaResult & WithSchemaName(SchemaNameT &&value)
AWS_SCHEMAS_API DescribeSchemaResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeSchemaResult & WithContent(ContentT &&value)
DescribeSchemaResult & WithSchemaVersion(SchemaVersionT &&value)
DescribeSchemaResult & WithSchemaArn(SchemaArnT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeSchemaResult & WithTags(TagsT &&value)
DescribeSchemaResult & WithType(TypeT &&value)
AWS_SCHEMAS_API DescribeSchemaResult()=default
void SetVersionCreatedDate(VersionCreatedDateT &&value)
DescribeSchemaResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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