AWS SDK for C++

AWS SDK for C++ Version 1.11.874

Loading...
Searching...
No Matches
GetAssetResult.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/core/utils/memory/stl/AWSVector.h>
12#include <aws/glue/Glue_EXPORTS.h>
13#include <aws/glue/model/AssetFormEntry.h>
14#include <aws/glue/model/IterableFormEntry.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Glue {
28namespace Model {
36 public:
37 AWS_GLUE_API GetAssetResult() = default;
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
52 GetAssetResult& WithId(IdT&& value) {
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 GetAssetResult& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
86 GetAssetResult& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
97 template <typename CreatedAtT = Aws::Utils::DateTime>
98 void SetCreatedAt(CreatedAtT&& value) {
99 m_createdAtHasBeenSet = true;
100 m_createdAt = std::forward<CreatedAtT>(value);
101 }
102 template <typename CreatedAtT = Aws::Utils::DateTime>
103 GetAssetResult& WithCreatedAt(CreatedAtT&& value) {
104 SetCreatedAt(std::forward<CreatedAtT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
114 template <typename UpdatedAtT = Aws::Utils::DateTime>
115 void SetUpdatedAt(UpdatedAtT&& value) {
116 m_updatedAtHasBeenSet = true;
117 m_updatedAt = std::forward<UpdatedAtT>(value);
118 }
119 template <typename UpdatedAtT = Aws::Utils::DateTime>
120 GetAssetResult& WithUpdatedAt(UpdatedAtT&& value) {
121 SetUpdatedAt(std::forward<UpdatedAtT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetAssetTypeId() const { return m_assetTypeId; }
131 template <typename AssetTypeIdT = Aws::String>
132 void SetAssetTypeId(AssetTypeIdT&& value) {
133 m_assetTypeIdHasBeenSet = true;
134 m_assetTypeId = std::forward<AssetTypeIdT>(value);
135 }
136 template <typename AssetTypeIdT = Aws::String>
137 GetAssetResult& WithAssetTypeId(AssetTypeIdT&& value) {
138 SetAssetTypeId(std::forward<AssetTypeIdT>(value));
139 return *this;
140 }
142
144
147 inline const Aws::Vector<Aws::String>& GetGlossaryTerms() const { return m_glossaryTerms; }
148 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
149 void SetGlossaryTerms(GlossaryTermsT&& value) {
150 m_glossaryTermsHasBeenSet = true;
151 m_glossaryTerms = std::forward<GlossaryTermsT>(value);
152 }
153 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
154 GetAssetResult& WithGlossaryTerms(GlossaryTermsT&& value) {
155 SetGlossaryTerms(std::forward<GlossaryTermsT>(value));
156 return *this;
157 }
158 template <typename GlossaryTermsT = Aws::String>
159 GetAssetResult& AddGlossaryTerms(GlossaryTermsT&& value) {
160 m_glossaryTermsHasBeenSet = true;
161 m_glossaryTerms.emplace_back(std::forward<GlossaryTermsT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::Map<Aws::String, AssetFormEntry>& GetForms() const { return m_forms; }
171 template <typename FormsT = Aws::Map<Aws::String, AssetFormEntry>>
172 void SetForms(FormsT&& value) {
173 m_formsHasBeenSet = true;
174 m_forms = std::forward<FormsT>(value);
175 }
176 template <typename FormsT = Aws::Map<Aws::String, AssetFormEntry>>
177 GetAssetResult& WithForms(FormsT&& value) {
178 SetForms(std::forward<FormsT>(value));
179 return *this;
180 }
181 template <typename FormsKeyT = Aws::String, typename FormsValueT = AssetFormEntry>
182 GetAssetResult& AddForms(FormsKeyT&& key, FormsValueT&& value) {
183 m_formsHasBeenSet = true;
184 m_forms.emplace(std::forward<FormsKeyT>(key), std::forward<FormsValueT>(value));
185 return *this;
186 }
188
190
194 inline const Aws::Map<Aws::String, AssetFormEntry>& GetAttachments() const { return m_attachments; }
195 template <typename AttachmentsT = Aws::Map<Aws::String, AssetFormEntry>>
196 void SetAttachments(AttachmentsT&& value) {
197 m_attachmentsHasBeenSet = true;
198 m_attachments = std::forward<AttachmentsT>(value);
199 }
200 template <typename AttachmentsT = Aws::Map<Aws::String, AssetFormEntry>>
201 GetAssetResult& WithAttachments(AttachmentsT&& value) {
202 SetAttachments(std::forward<AttachmentsT>(value));
203 return *this;
204 }
205 template <typename AttachmentsKeyT = Aws::String, typename AttachmentsValueT = AssetFormEntry>
206 GetAssetResult& AddAttachments(AttachmentsKeyT&& key, AttachmentsValueT&& value) {
207 m_attachmentsHasBeenSet = true;
208 m_attachments.emplace(std::forward<AttachmentsKeyT>(key), std::forward<AttachmentsValueT>(value));
209 return *this;
210 }
212
214
219 inline const Aws::Map<Aws::String, IterableFormEntry>& GetIterableForms() const { return m_iterableForms; }
220 template <typename IterableFormsT = Aws::Map<Aws::String, IterableFormEntry>>
221 void SetIterableForms(IterableFormsT&& value) {
222 m_iterableFormsHasBeenSet = true;
223 m_iterableForms = std::forward<IterableFormsT>(value);
224 }
225 template <typename IterableFormsT = Aws::Map<Aws::String, IterableFormEntry>>
226 GetAssetResult& WithIterableForms(IterableFormsT&& value) {
227 SetIterableForms(std::forward<IterableFormsT>(value));
228 return *this;
229 }
230 template <typename IterableFormsKeyT = Aws::String, typename IterableFormsValueT = IterableFormEntry>
231 GetAssetResult& AddIterableForms(IterableFormsKeyT&& key, IterableFormsValueT&& value) {
232 m_iterableFormsHasBeenSet = true;
233 m_iterableForms.emplace(std::forward<IterableFormsKeyT>(key), std::forward<IterableFormsValueT>(value));
234 return *this;
235 }
237
239
240 inline const Aws::String& GetRequestId() const { return m_requestId; }
241 template <typename RequestIdT = Aws::String>
242 void SetRequestId(RequestIdT&& value) {
243 m_requestIdHasBeenSet = true;
244 m_requestId = std::forward<RequestIdT>(value);
245 }
246 template <typename RequestIdT = Aws::String>
247 GetAssetResult& WithRequestId(RequestIdT&& value) {
248 SetRequestId(std::forward<RequestIdT>(value));
249 return *this;
250 }
252 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
253
254 private:
255 Aws::String m_id;
256
257 Aws::String m_name;
258
259 Aws::String m_description;
260
261 Aws::Utils::DateTime m_createdAt{};
262
263 Aws::Utils::DateTime m_updatedAt{};
264
265 Aws::String m_assetTypeId;
266
267 Aws::Vector<Aws::String> m_glossaryTerms;
268
270
272
274
275 Aws::String m_requestId;
276 Aws::Http::HttpResponseCode m_HttpResponseCode;
277 bool m_idHasBeenSet = false;
278 bool m_nameHasBeenSet = false;
279 bool m_descriptionHasBeenSet = false;
280 bool m_createdAtHasBeenSet = false;
281 bool m_updatedAtHasBeenSet = false;
282 bool m_assetTypeIdHasBeenSet = false;
283 bool m_glossaryTermsHasBeenSet = false;
284 bool m_formsHasBeenSet = false;
285 bool m_attachmentsHasBeenSet = false;
286 bool m_iterableFormsHasBeenSet = false;
287 bool m_requestIdHasBeenSet = false;
288};
289
290} // namespace Model
291} // namespace Glue
292} // namespace Aws
const Aws::String & GetDescription() const
const Aws::Map< Aws::String, IterableFormEntry > & GetIterableForms() const
GetAssetResult & AddAttachments(AttachmentsKeyT &&key, AttachmentsValueT &&value)
AWS_GLUE_API GetAssetResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetGlossaryTerms(GlossaryTermsT &&value)
AWS_GLUE_API GetAssetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, AssetFormEntry > & GetForms() const
GetAssetResult & AddForms(FormsKeyT &&key, FormsValueT &&value)
const Aws::String & GetName() const
GetAssetResult & WithUpdatedAt(UpdatedAtT &&value)
void SetCreatedAt(CreatedAtT &&value)
void SetRequestId(RequestIdT &&value)
const Aws::String & GetRequestId() const
GetAssetResult & AddGlossaryTerms(GlossaryTermsT &&value)
GetAssetResult & WithAssetTypeId(AssetTypeIdT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
void SetIterableForms(IterableFormsT &&value)
const Aws::String & GetAssetTypeId() const
AWS_GLUE_API GetAssetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAssetResult & WithGlossaryTerms(GlossaryTermsT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetAssetResult & WithCreatedAt(CreatedAtT &&value)
GetAssetResult & WithForms(FormsT &&value)
void SetAttachments(AttachmentsT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetAssetTypeId(AssetTypeIdT &&value)
GetAssetResult & WithAttachments(AttachmentsT &&value)
const Aws::Vector< Aws::String > & GetGlossaryTerms() const
GetAssetResult & WithDescription(DescriptionT &&value)
GetAssetResult & WithName(NameT &&value)
const Aws::Map< Aws::String, AssetFormEntry > & GetAttachments() const
GetAssetResult & AddIterableForms(IterableFormsKeyT &&key, IterableFormsValueT &&value)
const Aws::String & GetId() const
GetAssetResult & WithIterableForms(IterableFormsT &&value)
void SetDescription(DescriptionT &&value)
GetAssetResult & WithRequestId(RequestIdT &&value)
GetAssetResult & WithId(IdT &&value)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue