AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
CreateSchemaResult.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 CreateSchemaResult() = default;
31
33
36 inline const Aws::String& GetDescription() const { return m_description; }
37 template <typename DescriptionT = Aws::String>
38 void SetDescription(DescriptionT&& value) {
39 m_descriptionHasBeenSet = true;
40 m_description = std::forward<DescriptionT>(value);
41 }
42 template <typename DescriptionT = Aws::String>
43 CreateSchemaResult& WithDescription(DescriptionT&& value) {
44 SetDescription(std::forward<DescriptionT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
54 template <typename LastModifiedT = Aws::Utils::DateTime>
55 void SetLastModified(LastModifiedT&& value) {
56 m_lastModifiedHasBeenSet = true;
57 m_lastModified = std::forward<LastModifiedT>(value);
58 }
59 template <typename LastModifiedT = Aws::Utils::DateTime>
60 CreateSchemaResult& WithLastModified(LastModifiedT&& value) {
61 SetLastModified(std::forward<LastModifiedT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetSchemaArn() const { return m_schemaArn; }
71 template <typename SchemaArnT = Aws::String>
72 void SetSchemaArn(SchemaArnT&& value) {
73 m_schemaArnHasBeenSet = true;
74 m_schemaArn = std::forward<SchemaArnT>(value);
75 }
76 template <typename SchemaArnT = Aws::String>
77 CreateSchemaResult& WithSchemaArn(SchemaArnT&& value) {
78 SetSchemaArn(std::forward<SchemaArnT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
88 template <typename SchemaNameT = Aws::String>
89 void SetSchemaName(SchemaNameT&& value) {
90 m_schemaNameHasBeenSet = true;
91 m_schemaName = std::forward<SchemaNameT>(value);
92 }
93 template <typename SchemaNameT = Aws::String>
94 CreateSchemaResult& WithSchemaName(SchemaNameT&& value) {
95 SetSchemaName(std::forward<SchemaNameT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetSchemaVersion() const { return m_schemaVersion; }
105 template <typename SchemaVersionT = Aws::String>
106 void SetSchemaVersion(SchemaVersionT&& value) {
107 m_schemaVersionHasBeenSet = true;
108 m_schemaVersion = std::forward<SchemaVersionT>(value);
109 }
110 template <typename SchemaVersionT = Aws::String>
111 CreateSchemaResult& WithSchemaVersion(SchemaVersionT&& value) {
112 SetSchemaVersion(std::forward<SchemaVersionT>(value));
113 return *this;
114 }
116
118
119 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
120 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 void SetTags(TagsT&& value) {
122 m_tagsHasBeenSet = true;
123 m_tags = std::forward<TagsT>(value);
124 }
125 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
126 CreateSchemaResult& WithTags(TagsT&& value) {
127 SetTags(std::forward<TagsT>(value));
128 return *this;
129 }
130 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
131 CreateSchemaResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
132 m_tagsHasBeenSet = true;
133 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetType() const { return m_type; }
143 template <typename TypeT = Aws::String>
144 void SetType(TypeT&& value) {
145 m_typeHasBeenSet = true;
146 m_type = std::forward<TypeT>(value);
147 }
148 template <typename TypeT = Aws::String>
149 CreateSchemaResult& WithType(TypeT&& value) {
150 SetType(std::forward<TypeT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::Utils::DateTime& GetVersionCreatedDate() const { return m_versionCreatedDate; }
160 template <typename VersionCreatedDateT = Aws::Utils::DateTime>
161 void SetVersionCreatedDate(VersionCreatedDateT&& value) {
162 m_versionCreatedDateHasBeenSet = true;
163 m_versionCreatedDate = std::forward<VersionCreatedDateT>(value);
164 }
165 template <typename VersionCreatedDateT = Aws::Utils::DateTime>
166 CreateSchemaResult& WithVersionCreatedDate(VersionCreatedDateT&& value) {
167 SetVersionCreatedDate(std::forward<VersionCreatedDateT>(value));
168 return *this;
169 }
171
173
174 inline const Aws::String& GetRequestId() const { return m_requestId; }
175 template <typename RequestIdT = Aws::String>
176 void SetRequestId(RequestIdT&& value) {
177 m_requestIdHasBeenSet = true;
178 m_requestId = std::forward<RequestIdT>(value);
179 }
180 template <typename RequestIdT = Aws::String>
181 CreateSchemaResult& WithRequestId(RequestIdT&& value) {
182 SetRequestId(std::forward<RequestIdT>(value));
183 return *this;
184 }
186 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
187
188 private:
189 Aws::String m_description;
190
191 Aws::Utils::DateTime m_lastModified{};
192
193 Aws::String m_schemaArn;
194
195 Aws::String m_schemaName;
196
197 Aws::String m_schemaVersion;
198
200
201 Aws::String m_type;
202
203 Aws::Utils::DateTime m_versionCreatedDate{};
204
205 Aws::String m_requestId;
206 Aws::Http::HttpResponseCode m_HttpResponseCode;
207 bool m_descriptionHasBeenSet = false;
208 bool m_lastModifiedHasBeenSet = false;
209 bool m_schemaArnHasBeenSet = false;
210 bool m_schemaNameHasBeenSet = false;
211 bool m_schemaVersionHasBeenSet = false;
212 bool m_tagsHasBeenSet = false;
213 bool m_typeHasBeenSet = false;
214 bool m_versionCreatedDateHasBeenSet = false;
215 bool m_requestIdHasBeenSet = false;
216};
217
218} // namespace Model
219} // namespace Schemas
220} // namespace Aws
CreateSchemaResult & WithVersionCreatedDate(VersionCreatedDateT &&value)
CreateSchemaResult & WithSchemaName(SchemaNameT &&value)
CreateSchemaResult & WithRequestId(RequestIdT &&value)
void SetVersionCreatedDate(VersionCreatedDateT &&value)
AWS_SCHEMAS_API CreateSchemaResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetSchemaName() const
CreateSchemaResult & WithLastModified(LastModifiedT &&value)
AWS_SCHEMAS_API CreateSchemaResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSchemaResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateSchemaResult & WithSchemaVersion(SchemaVersionT &&value)
const Aws::String & GetDescription() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_SCHEMAS_API CreateSchemaResult()=default
CreateSchemaResult & WithSchemaArn(SchemaArnT &&value)
const Aws::Utils::DateTime & GetLastModified() const
const Aws::Utils::DateTime & GetVersionCreatedDate() const
void SetLastModified(LastModifiedT &&value)
const Aws::String & GetSchemaVersion() const
CreateSchemaResult & WithTags(TagsT &&value)
void SetSchemaVersion(SchemaVersionT &&value)
CreateSchemaResult & WithDescription(DescriptionT &&value)
void SetDescription(DescriptionT &&value)
CreateSchemaResult & WithType(TypeT &&value)
const Aws::String & GetSchemaArn() 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