AWS SDK for C++

AWS SDK for C++ Version 1.11.838

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 {
30 public:
31 AWS_GLUE_API GetAssetResult() = default;
34
36
39 inline const Aws::String& GetId() const { return m_id; }
40 template <typename IdT = Aws::String>
41 void SetId(IdT&& value) {
42 m_idHasBeenSet = true;
43 m_id = std::forward<IdT>(value);
44 }
45 template <typename IdT = Aws::String>
46 GetAssetResult& WithId(IdT&& value) {
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetName() const { return m_name; }
57 template <typename NameT = Aws::String>
58 void SetName(NameT&& value) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
63 GetAssetResult& WithName(NameT&& value) {
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 template <typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) {
76 m_descriptionHasBeenSet = true;
77 m_description = std::forward<DescriptionT>(value);
78 }
79 template <typename DescriptionT = Aws::String>
80 GetAssetResult& WithDescription(DescriptionT&& value) {
81 SetDescription(std::forward<DescriptionT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
91 template <typename CreatedAtT = Aws::Utils::DateTime>
92 void SetCreatedAt(CreatedAtT&& value) {
93 m_createdAtHasBeenSet = true;
94 m_createdAt = std::forward<CreatedAtT>(value);
95 }
96 template <typename CreatedAtT = Aws::Utils::DateTime>
97 GetAssetResult& WithCreatedAt(CreatedAtT&& value) {
98 SetCreatedAt(std::forward<CreatedAtT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
108 template <typename UpdatedAtT = Aws::Utils::DateTime>
109 void SetUpdatedAt(UpdatedAtT&& value) {
110 m_updatedAtHasBeenSet = true;
111 m_updatedAt = std::forward<UpdatedAtT>(value);
112 }
113 template <typename UpdatedAtT = Aws::Utils::DateTime>
114 GetAssetResult& WithUpdatedAt(UpdatedAtT&& value) {
115 SetUpdatedAt(std::forward<UpdatedAtT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetAssetTypeId() const { return m_assetTypeId; }
125 template <typename AssetTypeIdT = Aws::String>
126 void SetAssetTypeId(AssetTypeIdT&& value) {
127 m_assetTypeIdHasBeenSet = true;
128 m_assetTypeId = std::forward<AssetTypeIdT>(value);
129 }
130 template <typename AssetTypeIdT = Aws::String>
131 GetAssetResult& WithAssetTypeId(AssetTypeIdT&& value) {
132 SetAssetTypeId(std::forward<AssetTypeIdT>(value));
133 return *this;
134 }
136
138
141 inline const Aws::Vector<Aws::String>& GetGlossaryTerms() const { return m_glossaryTerms; }
142 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
143 void SetGlossaryTerms(GlossaryTermsT&& value) {
144 m_glossaryTermsHasBeenSet = true;
145 m_glossaryTerms = std::forward<GlossaryTermsT>(value);
146 }
147 template <typename GlossaryTermsT = Aws::Vector<Aws::String>>
148 GetAssetResult& WithGlossaryTerms(GlossaryTermsT&& value) {
149 SetGlossaryTerms(std::forward<GlossaryTermsT>(value));
150 return *this;
151 }
152 template <typename GlossaryTermsT = Aws::String>
153 GetAssetResult& AddGlossaryTerms(GlossaryTermsT&& value) {
154 m_glossaryTermsHasBeenSet = true;
155 m_glossaryTerms.emplace_back(std::forward<GlossaryTermsT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::Map<Aws::String, AssetFormEntry>& GetForms() const { return m_forms; }
165 template <typename FormsT = Aws::Map<Aws::String, AssetFormEntry>>
166 void SetForms(FormsT&& value) {
167 m_formsHasBeenSet = true;
168 m_forms = std::forward<FormsT>(value);
169 }
170 template <typename FormsT = Aws::Map<Aws::String, AssetFormEntry>>
171 GetAssetResult& WithForms(FormsT&& value) {
172 SetForms(std::forward<FormsT>(value));
173 return *this;
174 }
175 template <typename FormsKeyT = Aws::String, typename FormsValueT = AssetFormEntry>
176 GetAssetResult& AddForms(FormsKeyT&& key, FormsValueT&& value) {
177 m_formsHasBeenSet = true;
178 m_forms.emplace(std::forward<FormsKeyT>(key), std::forward<FormsValueT>(value));
179 return *this;
180 }
182
184
188 inline const Aws::Map<Aws::String, AssetFormEntry>& GetAttachments() const { return m_attachments; }
189 template <typename AttachmentsT = Aws::Map<Aws::String, AssetFormEntry>>
190 void SetAttachments(AttachmentsT&& value) {
191 m_attachmentsHasBeenSet = true;
192 m_attachments = std::forward<AttachmentsT>(value);
193 }
194 template <typename AttachmentsT = Aws::Map<Aws::String, AssetFormEntry>>
195 GetAssetResult& WithAttachments(AttachmentsT&& value) {
196 SetAttachments(std::forward<AttachmentsT>(value));
197 return *this;
198 }
199 template <typename AttachmentsKeyT = Aws::String, typename AttachmentsValueT = AssetFormEntry>
200 GetAssetResult& AddAttachments(AttachmentsKeyT&& key, AttachmentsValueT&& value) {
201 m_attachmentsHasBeenSet = true;
202 m_attachments.emplace(std::forward<AttachmentsKeyT>(key), std::forward<AttachmentsValueT>(value));
203 return *this;
204 }
206
208
213 inline const Aws::Map<Aws::String, IterableFormEntry>& GetIterableForms() const { return m_iterableForms; }
214 template <typename IterableFormsT = Aws::Map<Aws::String, IterableFormEntry>>
215 void SetIterableForms(IterableFormsT&& value) {
216 m_iterableFormsHasBeenSet = true;
217 m_iterableForms = std::forward<IterableFormsT>(value);
218 }
219 template <typename IterableFormsT = Aws::Map<Aws::String, IterableFormEntry>>
220 GetAssetResult& WithIterableForms(IterableFormsT&& value) {
221 SetIterableForms(std::forward<IterableFormsT>(value));
222 return *this;
223 }
224 template <typename IterableFormsKeyT = Aws::String, typename IterableFormsValueT = IterableFormEntry>
225 GetAssetResult& AddIterableForms(IterableFormsKeyT&& key, IterableFormsValueT&& value) {
226 m_iterableFormsHasBeenSet = true;
227 m_iterableForms.emplace(std::forward<IterableFormsKeyT>(key), std::forward<IterableFormsValueT>(value));
228 return *this;
229 }
231
233
234 inline const Aws::String& GetRequestId() const { return m_requestId; }
235 template <typename RequestIdT = Aws::String>
236 void SetRequestId(RequestIdT&& value) {
237 m_requestIdHasBeenSet = true;
238 m_requestId = std::forward<RequestIdT>(value);
239 }
240 template <typename RequestIdT = Aws::String>
241 GetAssetResult& WithRequestId(RequestIdT&& value) {
242 SetRequestId(std::forward<RequestIdT>(value));
243 return *this;
244 }
246 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
247
248 private:
249 Aws::String m_id;
250
251 Aws::String m_name;
252
253 Aws::String m_description;
254
255 Aws::Utils::DateTime m_createdAt{};
256
257 Aws::Utils::DateTime m_updatedAt{};
258
259 Aws::String m_assetTypeId;
260
261 Aws::Vector<Aws::String> m_glossaryTerms;
262
264
266
268
269 Aws::String m_requestId;
270 Aws::Http::HttpResponseCode m_HttpResponseCode;
271 bool m_idHasBeenSet = false;
272 bool m_nameHasBeenSet = false;
273 bool m_descriptionHasBeenSet = false;
274 bool m_createdAtHasBeenSet = false;
275 bool m_updatedAtHasBeenSet = false;
276 bool m_assetTypeIdHasBeenSet = false;
277 bool m_glossaryTermsHasBeenSet = false;
278 bool m_formsHasBeenSet = false;
279 bool m_attachmentsHasBeenSet = false;
280 bool m_iterableFormsHasBeenSet = false;
281 bool m_requestIdHasBeenSet = false;
282};
283
284} // namespace Model
285} // namespace Glue
286} // 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