AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetBenefitApplicationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/Document.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/partnercentral-benefits/PartnerCentralBenefits_EXPORTS.h>
13#include <aws/partnercentral-benefits/model/BenefitApplicationStatus.h>
14#include <aws/partnercentral-benefits/model/Contact.h>
15#include <aws/partnercentral-benefits/model/FileDetail.h>
16#include <aws/partnercentral-benefits/model/FulfillmentType.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace PartnerCentralBenefits {
30namespace Model {
32 public:
33 AWS_PARTNERCENTRALBENEFITS_API GetBenefitApplicationResult() = default;
35 AWS_PARTNERCENTRALBENEFITS_API GetBenefitApplicationResult& operator=(
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetArn() const { return m_arn; }
60 template <typename ArnT = Aws::String>
61 void SetArn(ArnT&& value) {
62 m_arnHasBeenSet = true;
63 m_arn = std::forward<ArnT>(value);
64 }
65 template <typename ArnT = Aws::String>
67 SetArn(std::forward<ArnT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetCatalog() const { return m_catalog; }
77 template <typename CatalogT = Aws::String>
78 void SetCatalog(CatalogT&& value) {
79 m_catalogHasBeenSet = true;
80 m_catalog = std::forward<CatalogT>(value);
81 }
82 template <typename CatalogT = Aws::String>
84 SetCatalog(std::forward<CatalogT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetBenefitId() const { return m_benefitId; }
94 template <typename BenefitIdT = Aws::String>
95 void SetBenefitId(BenefitIdT&& value) {
96 m_benefitIdHasBeenSet = true;
97 m_benefitId = std::forward<BenefitIdT>(value);
98 }
99 template <typename BenefitIdT = Aws::String>
101 SetBenefitId(std::forward<BenefitIdT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetName() const { return m_name; }
111 template <typename NameT = Aws::String>
112 void SetName(NameT&& value) {
113 m_nameHasBeenSet = true;
114 m_name = std::forward<NameT>(value);
115 }
116 template <typename NameT = Aws::String>
118 SetName(std::forward<NameT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetDescription() const { return m_description; }
128 template <typename DescriptionT = Aws::String>
129 void SetDescription(DescriptionT&& value) {
130 m_descriptionHasBeenSet = true;
131 m_description = std::forward<DescriptionT>(value);
132 }
133 template <typename DescriptionT = Aws::String>
135 SetDescription(std::forward<DescriptionT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Vector<FulfillmentType>& GetFulfillmentTypes() const { return m_fulfillmentTypes; }
145 template <typename FulfillmentTypesT = Aws::Vector<FulfillmentType>>
146 void SetFulfillmentTypes(FulfillmentTypesT&& value) {
147 m_fulfillmentTypesHasBeenSet = true;
148 m_fulfillmentTypes = std::forward<FulfillmentTypesT>(value);
149 }
150 template <typename FulfillmentTypesT = Aws::Vector<FulfillmentType>>
152 SetFulfillmentTypes(std::forward<FulfillmentTypesT>(value));
153 return *this;
154 }
156 m_fulfillmentTypesHasBeenSet = true;
157 m_fulfillmentTypes.push_back(value);
158 return *this;
159 }
161
163
167 inline Aws::Utils::DocumentView GetBenefitApplicationDetails() const { return m_benefitApplicationDetails; }
168 template <typename BenefitApplicationDetailsT = Aws::Utils::Document>
169 void SetBenefitApplicationDetails(BenefitApplicationDetailsT&& value) {
170 m_benefitApplicationDetailsHasBeenSet = true;
171 m_benefitApplicationDetails = std::forward<BenefitApplicationDetailsT>(value);
172 }
173 template <typename BenefitApplicationDetailsT = Aws::Utils::Document>
174 GetBenefitApplicationResult& WithBenefitApplicationDetails(BenefitApplicationDetailsT&& value) {
175 SetBenefitApplicationDetails(std::forward<BenefitApplicationDetailsT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Vector<Aws::String>& GetPrograms() const { return m_programs; }
185 template <typename ProgramsT = Aws::Vector<Aws::String>>
186 void SetPrograms(ProgramsT&& value) {
187 m_programsHasBeenSet = true;
188 m_programs = std::forward<ProgramsT>(value);
189 }
190 template <typename ProgramsT = Aws::Vector<Aws::String>>
192 SetPrograms(std::forward<ProgramsT>(value));
193 return *this;
194 }
195 template <typename ProgramsT = Aws::String>
197 m_programsHasBeenSet = true;
198 m_programs.emplace_back(std::forward<ProgramsT>(value));
199 return *this;
200 }
202
204
207 inline BenefitApplicationStatus GetStatus() const { return m_status; }
209 m_statusHasBeenSet = true;
210 m_status = value;
211 }
213 SetStatus(value);
214 return *this;
215 }
217
219
222 inline const Aws::String& GetStage() const { return m_stage; }
223 template <typename StageT = Aws::String>
224 void SetStage(StageT&& value) {
225 m_stageHasBeenSet = true;
226 m_stage = std::forward<StageT>(value);
227 }
228 template <typename StageT = Aws::String>
230 SetStage(std::forward<StageT>(value));
231 return *this;
232 }
234
236
240 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
241 template <typename StatusReasonT = Aws::String>
242 void SetStatusReason(StatusReasonT&& value) {
243 m_statusReasonHasBeenSet = true;
244 m_statusReason = std::forward<StatusReasonT>(value);
245 }
246 template <typename StatusReasonT = Aws::String>
248 SetStatusReason(std::forward<StatusReasonT>(value));
249 return *this;
250 }
252
254
258 inline const Aws::Vector<Aws::String>& GetStatusReasonCodes() const { return m_statusReasonCodes; }
259 template <typename StatusReasonCodesT = Aws::Vector<Aws::String>>
260 void SetStatusReasonCodes(StatusReasonCodesT&& value) {
261 m_statusReasonCodesHasBeenSet = true;
262 m_statusReasonCodes = std::forward<StatusReasonCodesT>(value);
263 }
264 template <typename StatusReasonCodesT = Aws::Vector<Aws::String>>
266 SetStatusReasonCodes(std::forward<StatusReasonCodesT>(value));
267 return *this;
268 }
269 template <typename StatusReasonCodesT = Aws::String>
271 m_statusReasonCodesHasBeenSet = true;
272 m_statusReasonCodes.emplace_back(std::forward<StatusReasonCodesT>(value));
273 return *this;
274 }
276
278
281 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
282 template <typename CreatedAtT = Aws::Utils::DateTime>
283 void SetCreatedAt(CreatedAtT&& value) {
284 m_createdAtHasBeenSet = true;
285 m_createdAt = std::forward<CreatedAtT>(value);
286 }
287 template <typename CreatedAtT = Aws::Utils::DateTime>
289 SetCreatedAt(std::forward<CreatedAtT>(value));
290 return *this;
291 }
293
295
298 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
299 template <typename UpdatedAtT = Aws::Utils::DateTime>
300 void SetUpdatedAt(UpdatedAtT&& value) {
301 m_updatedAtHasBeenSet = true;
302 m_updatedAt = std::forward<UpdatedAtT>(value);
303 }
304 template <typename UpdatedAtT = Aws::Utils::DateTime>
306 SetUpdatedAt(std::forward<UpdatedAtT>(value));
307 return *this;
308 }
310
312
315 inline const Aws::String& GetRevision() const { return m_revision; }
316 template <typename RevisionT = Aws::String>
317 void SetRevision(RevisionT&& value) {
318 m_revisionHasBeenSet = true;
319 m_revision = std::forward<RevisionT>(value);
320 }
321 template <typename RevisionT = Aws::String>
323 SetRevision(std::forward<RevisionT>(value));
324 return *this;
325 }
327
329
332 inline const Aws::Vector<Aws::String>& GetAssociatedResources() const { return m_associatedResources; }
333 template <typename AssociatedResourcesT = Aws::Vector<Aws::String>>
334 void SetAssociatedResources(AssociatedResourcesT&& value) {
335 m_associatedResourcesHasBeenSet = true;
336 m_associatedResources = std::forward<AssociatedResourcesT>(value);
337 }
338 template <typename AssociatedResourcesT = Aws::Vector<Aws::String>>
340 SetAssociatedResources(std::forward<AssociatedResourcesT>(value));
341 return *this;
342 }
343 template <typename AssociatedResourcesT = Aws::String>
345 m_associatedResourcesHasBeenSet = true;
346 m_associatedResources.emplace_back(std::forward<AssociatedResourcesT>(value));
347 return *this;
348 }
350
352
356 inline const Aws::Vector<Contact>& GetPartnerContacts() const { return m_partnerContacts; }
357 template <typename PartnerContactsT = Aws::Vector<Contact>>
358 void SetPartnerContacts(PartnerContactsT&& value) {
359 m_partnerContactsHasBeenSet = true;
360 m_partnerContacts = std::forward<PartnerContactsT>(value);
361 }
362 template <typename PartnerContactsT = Aws::Vector<Contact>>
364 SetPartnerContacts(std::forward<PartnerContactsT>(value));
365 return *this;
366 }
367 template <typename PartnerContactsT = Contact>
369 m_partnerContactsHasBeenSet = true;
370 m_partnerContacts.emplace_back(std::forward<PartnerContactsT>(value));
371 return *this;
372 }
374
376
379 inline const Aws::Vector<FileDetail>& GetFileDetails() const { return m_fileDetails; }
380 template <typename FileDetailsT = Aws::Vector<FileDetail>>
381 void SetFileDetails(FileDetailsT&& value) {
382 m_fileDetailsHasBeenSet = true;
383 m_fileDetails = std::forward<FileDetailsT>(value);
384 }
385 template <typename FileDetailsT = Aws::Vector<FileDetail>>
387 SetFileDetails(std::forward<FileDetailsT>(value));
388 return *this;
389 }
390 template <typename FileDetailsT = FileDetail>
392 m_fileDetailsHasBeenSet = true;
393 m_fileDetails.emplace_back(std::forward<FileDetailsT>(value));
394 return *this;
395 }
397
399
400 inline const Aws::String& GetRequestId() const { return m_requestId; }
401 template <typename RequestIdT = Aws::String>
402 void SetRequestId(RequestIdT&& value) {
403 m_requestIdHasBeenSet = true;
404 m_requestId = std::forward<RequestIdT>(value);
405 }
406 template <typename RequestIdT = Aws::String>
408 SetRequestId(std::forward<RequestIdT>(value));
409 return *this;
410 }
412 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
413
414 private:
415 Aws::String m_id;
416
417 Aws::String m_arn;
418
419 Aws::String m_catalog;
420
421 Aws::String m_benefitId;
422
423 Aws::String m_name;
424
425 Aws::String m_description;
426
427 Aws::Vector<FulfillmentType> m_fulfillmentTypes;
428
429 Aws::Utils::Document m_benefitApplicationDetails;
430
431 Aws::Vector<Aws::String> m_programs;
432
434
435 Aws::String m_stage;
436
437 Aws::String m_statusReason;
438
439 Aws::Vector<Aws::String> m_statusReasonCodes;
440
441 Aws::Utils::DateTime m_createdAt{};
442
443 Aws::Utils::DateTime m_updatedAt{};
444
445 Aws::String m_revision;
446
447 Aws::Vector<Aws::String> m_associatedResources;
448
449 Aws::Vector<Contact> m_partnerContacts;
450
451 Aws::Vector<FileDetail> m_fileDetails;
452
453 Aws::String m_requestId;
454 Aws::Http::HttpResponseCode m_HttpResponseCode;
455 bool m_idHasBeenSet = false;
456 bool m_arnHasBeenSet = false;
457 bool m_catalogHasBeenSet = false;
458 bool m_benefitIdHasBeenSet = false;
459 bool m_nameHasBeenSet = false;
460 bool m_descriptionHasBeenSet = false;
461 bool m_fulfillmentTypesHasBeenSet = false;
462 bool m_benefitApplicationDetailsHasBeenSet = false;
463 bool m_programsHasBeenSet = false;
464 bool m_statusHasBeenSet = false;
465 bool m_stageHasBeenSet = false;
466 bool m_statusReasonHasBeenSet = false;
467 bool m_statusReasonCodesHasBeenSet = false;
468 bool m_createdAtHasBeenSet = false;
469 bool m_updatedAtHasBeenSet = false;
470 bool m_revisionHasBeenSet = false;
471 bool m_associatedResourcesHasBeenSet = false;
472 bool m_partnerContactsHasBeenSet = false;
473 bool m_fileDetailsHasBeenSet = false;
474 bool m_requestIdHasBeenSet = false;
475};
476
477} // namespace Model
478} // namespace PartnerCentralBenefits
479} // namespace Aws
AWS_PARTNERCENTRALBENEFITS_API GetBenefitApplicationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBenefitApplicationResult & WithFileDetails(FileDetailsT &&value)
GetBenefitApplicationResult & WithBenefitApplicationDetails(BenefitApplicationDetailsT &&value)
GetBenefitApplicationResult & WithCreatedAt(CreatedAtT &&value)
GetBenefitApplicationResult & WithPartnerContacts(PartnerContactsT &&value)
GetBenefitApplicationResult & WithUpdatedAt(UpdatedAtT &&value)
GetBenefitApplicationResult & WithRequestId(RequestIdT &&value)
GetBenefitApplicationResult & WithAssociatedResources(AssociatedResourcesT &&value)
GetBenefitApplicationResult & AddFileDetails(FileDetailsT &&value)
GetBenefitApplicationResult & WithStatus(BenefitApplicationStatus value)
GetBenefitApplicationResult & AddPartnerContacts(PartnerContactsT &&value)
AWS_PARTNERCENTRALBENEFITS_API GetBenefitApplicationResult()=default
GetBenefitApplicationResult & WithBenefitId(BenefitIdT &&value)
GetBenefitApplicationResult & AddFulfillmentTypes(FulfillmentType value)
GetBenefitApplicationResult & WithDescription(DescriptionT &&value)
GetBenefitApplicationResult & WithStatusReason(StatusReasonT &&value)
GetBenefitApplicationResult & AddStatusReasonCodes(StatusReasonCodesT &&value)
AWS_PARTNERCENTRALBENEFITS_API GetBenefitApplicationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBenefitApplicationResult & WithStatusReasonCodes(StatusReasonCodesT &&value)
GetBenefitApplicationResult & AddAssociatedResources(AssociatedResourcesT &&value)
GetBenefitApplicationResult & WithFulfillmentTypes(FulfillmentTypesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue