AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeSchemaResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/schemas/Schemas_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Schemas {
24namespace Model {
26 public:
27 AWS_SCHEMAS_API DescribeSchemaResult() = default;
30
32
35 inline const Aws::String& GetContent() const { return m_content; }
36 template <typename ContentT = Aws::String>
37 void SetContent(ContentT&& value) {
38 m_contentHasBeenSet = true;
39 m_content = std::forward<ContentT>(value);
40 }
41 template <typename ContentT = Aws::String>
42 DescribeSchemaResult& WithContent(ContentT&& value) {
43 SetContent(std::forward<ContentT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetDescription() const { return m_description; }
53 template <typename DescriptionT = Aws::String>
54 void SetDescription(DescriptionT&& value) {
55 m_descriptionHasBeenSet = true;
56 m_description = std::forward<DescriptionT>(value);
57 }
58 template <typename DescriptionT = Aws::String>
59 DescribeSchemaResult& WithDescription(DescriptionT&& value) {
60 SetDescription(std::forward<DescriptionT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
70 template <typename LastModifiedT = Aws::Utils::DateTime>
71 void SetLastModified(LastModifiedT&& value) {
72 m_lastModifiedHasBeenSet = true;
73 m_lastModified = std::forward<LastModifiedT>(value);
74 }
75 template <typename LastModifiedT = Aws::Utils::DateTime>
76 DescribeSchemaResult& WithLastModified(LastModifiedT&& value) {
77 SetLastModified(std::forward<LastModifiedT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetSchemaArn() const { return m_schemaArn; }
87 template <typename SchemaArnT = Aws::String>
88 void SetSchemaArn(SchemaArnT&& value) {
89 m_schemaArnHasBeenSet = true;
90 m_schemaArn = std::forward<SchemaArnT>(value);
91 }
92 template <typename SchemaArnT = Aws::String>
93 DescribeSchemaResult& WithSchemaArn(SchemaArnT&& value) {
94 SetSchemaArn(std::forward<SchemaArnT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
104 template <typename SchemaNameT = Aws::String>
105 void SetSchemaName(SchemaNameT&& value) {
106 m_schemaNameHasBeenSet = true;
107 m_schemaName = std::forward<SchemaNameT>(value);
108 }
109 template <typename SchemaNameT = Aws::String>
110 DescribeSchemaResult& WithSchemaName(SchemaNameT&& value) {
111 SetSchemaName(std::forward<SchemaNameT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
121 template <typename SchemaVersionT = Aws::String>
122 void SetSchemaVersion(SchemaVersionT&& value) {
123 m_schemaVersionHasBeenSet = true;
124 m_schemaVersion = std::forward<SchemaVersionT>(value);
125 }
126 template <typename SchemaVersionT = Aws::String>
127 DescribeSchemaResult& WithSchemaVersion(SchemaVersionT&& value) {
128 SetSchemaVersion(std::forward<SchemaVersionT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
138 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
139 void SetTags(TagsT&& value) {
140 m_tagsHasBeenSet = true;
141 m_tags = std::forward<TagsT>(value);
142 }
143 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
145 SetTags(std::forward<TagsT>(value));
146 return *this;
147 }
148 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
149 DescribeSchemaResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
150 m_tagsHasBeenSet = true;
151 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetType() const { return m_type; }
161 template <typename TypeT = Aws::String>
162 void SetType(TypeT&& value) {
163 m_typeHasBeenSet = true;
164 m_type = std::forward<TypeT>(value);
165 }
166 template <typename TypeT = Aws::String>
168 SetType(std::forward<TypeT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Utils::DateTime& GetVersionCreatedDate() const { return m_versionCreatedDate; }
178 template <typename VersionCreatedDateT = Aws::Utils::DateTime>
179 void SetVersionCreatedDate(VersionCreatedDateT&& value) {
180 m_versionCreatedDateHasBeenSet = true;
181 m_versionCreatedDate = std::forward<VersionCreatedDateT>(value);
182 }
183 template <typename VersionCreatedDateT = Aws::Utils::DateTime>
184 DescribeSchemaResult& WithVersionCreatedDate(VersionCreatedDateT&& value) {
185 SetVersionCreatedDate(std::forward<VersionCreatedDateT>(value));
186 return *this;
187 }
189
191
192 inline const Aws::String& GetRequestId() const { return m_requestId; }
193 template <typename RequestIdT = Aws::String>
194 void SetRequestId(RequestIdT&& value) {
195 m_requestIdHasBeenSet = true;
196 m_requestId = std::forward<RequestIdT>(value);
197 }
198 template <typename RequestIdT = Aws::String>
199 DescribeSchemaResult& WithRequestId(RequestIdT&& value) {
200 SetRequestId(std::forward<RequestIdT>(value));
201 return *this;
202 }
204 private:
205 Aws::String m_content;
206
207 Aws::String m_description;
208
209 Aws::Utils::DateTime m_lastModified{};
210
211 Aws::String m_schemaArn;
212
213 Aws::String m_schemaName;
214
215 Aws::String m_schemaVersion;
216
218
219 Aws::String m_type;
220
221 Aws::Utils::DateTime m_versionCreatedDate{};
222
223 Aws::String m_requestId;
224 bool m_contentHasBeenSet = false;
225 bool m_descriptionHasBeenSet = false;
226 bool m_lastModifiedHasBeenSet = false;
227 bool m_schemaArnHasBeenSet = false;
228 bool m_schemaNameHasBeenSet = false;
229 bool m_schemaVersionHasBeenSet = false;
230 bool m_tagsHasBeenSet = false;
231 bool m_typeHasBeenSet = false;
232 bool m_versionCreatedDateHasBeenSet = false;
233 bool m_requestIdHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace Schemas
238} // 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)
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