AWS SDK for C++

AWS SDK for C++ Version 1.11.711

Loading...
Searching...
No Matches
GetBenefitApplicationResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/Document.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/partnercentral-benefits/PartnerCentralBenefits_EXPORTS.h>
12#include <aws/partnercentral-benefits/model/BenefitApplicationStatus.h>
13#include <aws/partnercentral-benefits/model/Contact.h>
14#include <aws/partnercentral-benefits/model/FileDetail.h>
15#include <aws/partnercentral-benefits/model/FulfillmentType.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace PartnerCentralBenefits {
29namespace Model {
31 public:
32 AWS_PARTNERCENTRALBENEFITS_API GetBenefitApplicationResult() = default;
34 AWS_PARTNERCENTRALBENEFITS_API GetBenefitApplicationResult& operator=(
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetArn() const { return m_arn; }
59 template <typename ArnT = Aws::String>
60 void SetArn(ArnT&& value) {
61 m_arnHasBeenSet = true;
62 m_arn = std::forward<ArnT>(value);
63 }
64 template <typename ArnT = Aws::String>
66 SetArn(std::forward<ArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetCatalog() const { return m_catalog; }
76 template <typename CatalogT = Aws::String>
77 void SetCatalog(CatalogT&& value) {
78 m_catalogHasBeenSet = true;
79 m_catalog = std::forward<CatalogT>(value);
80 }
81 template <typename CatalogT = Aws::String>
83 SetCatalog(std::forward<CatalogT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetBenefitId() const { return m_benefitId; }
93 template <typename BenefitIdT = Aws::String>
94 void SetBenefitId(BenefitIdT&& value) {
95 m_benefitIdHasBeenSet = true;
96 m_benefitId = std::forward<BenefitIdT>(value);
97 }
98 template <typename BenefitIdT = Aws::String>
100 SetBenefitId(std::forward<BenefitIdT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetName() const { return m_name; }
110 template <typename NameT = Aws::String>
111 void SetName(NameT&& value) {
112 m_nameHasBeenSet = true;
113 m_name = std::forward<NameT>(value);
114 }
115 template <typename NameT = Aws::String>
117 SetName(std::forward<NameT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetDescription() const { return m_description; }
127 template <typename DescriptionT = Aws::String>
128 void SetDescription(DescriptionT&& value) {
129 m_descriptionHasBeenSet = true;
130 m_description = std::forward<DescriptionT>(value);
131 }
132 template <typename DescriptionT = Aws::String>
134 SetDescription(std::forward<DescriptionT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::Vector<FulfillmentType>& GetFulfillmentTypes() const { return m_fulfillmentTypes; }
144 template <typename FulfillmentTypesT = Aws::Vector<FulfillmentType>>
145 void SetFulfillmentTypes(FulfillmentTypesT&& value) {
146 m_fulfillmentTypesHasBeenSet = true;
147 m_fulfillmentTypes = std::forward<FulfillmentTypesT>(value);
148 }
149 template <typename FulfillmentTypesT = Aws::Vector<FulfillmentType>>
151 SetFulfillmentTypes(std::forward<FulfillmentTypesT>(value));
152 return *this;
153 }
155 m_fulfillmentTypesHasBeenSet = true;
156 m_fulfillmentTypes.push_back(value);
157 return *this;
158 }
160
162
166 inline Aws::Utils::DocumentView GetBenefitApplicationDetails() const { return m_benefitApplicationDetails; }
167 template <typename BenefitApplicationDetailsT = Aws::Utils::Document>
168 void SetBenefitApplicationDetails(BenefitApplicationDetailsT&& value) {
169 m_benefitApplicationDetailsHasBeenSet = true;
170 m_benefitApplicationDetails = std::forward<BenefitApplicationDetailsT>(value);
171 }
172 template <typename BenefitApplicationDetailsT = Aws::Utils::Document>
173 GetBenefitApplicationResult& WithBenefitApplicationDetails(BenefitApplicationDetailsT&& value) {
174 SetBenefitApplicationDetails(std::forward<BenefitApplicationDetailsT>(value));
175 return *this;
176 }
178
180
183 inline const Aws::Vector<Aws::String>& GetPrograms() const { return m_programs; }
184 template <typename ProgramsT = Aws::Vector<Aws::String>>
185 void SetPrograms(ProgramsT&& value) {
186 m_programsHasBeenSet = true;
187 m_programs = std::forward<ProgramsT>(value);
188 }
189 template <typename ProgramsT = Aws::Vector<Aws::String>>
191 SetPrograms(std::forward<ProgramsT>(value));
192 return *this;
193 }
194 template <typename ProgramsT = Aws::String>
196 m_programsHasBeenSet = true;
197 m_programs.emplace_back(std::forward<ProgramsT>(value));
198 return *this;
199 }
201
203
206 inline BenefitApplicationStatus GetStatus() const { return m_status; }
208 m_statusHasBeenSet = true;
209 m_status = value;
210 }
212 SetStatus(value);
213 return *this;
214 }
216
218
221 inline const Aws::String& GetStage() const { return m_stage; }
222 template <typename StageT = Aws::String>
223 void SetStage(StageT&& value) {
224 m_stageHasBeenSet = true;
225 m_stage = std::forward<StageT>(value);
226 }
227 template <typename StageT = Aws::String>
229 SetStage(std::forward<StageT>(value));
230 return *this;
231 }
233
235
239 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
240 template <typename StatusReasonT = Aws::String>
241 void SetStatusReason(StatusReasonT&& value) {
242 m_statusReasonHasBeenSet = true;
243 m_statusReason = std::forward<StatusReasonT>(value);
244 }
245 template <typename StatusReasonT = Aws::String>
247 SetStatusReason(std::forward<StatusReasonT>(value));
248 return *this;
249 }
251
253
257 inline const Aws::Vector<Aws::String>& GetStatusReasonCodes() const { return m_statusReasonCodes; }
258 template <typename StatusReasonCodesT = Aws::Vector<Aws::String>>
259 void SetStatusReasonCodes(StatusReasonCodesT&& value) {
260 m_statusReasonCodesHasBeenSet = true;
261 m_statusReasonCodes = std::forward<StatusReasonCodesT>(value);
262 }
263 template <typename StatusReasonCodesT = Aws::Vector<Aws::String>>
265 SetStatusReasonCodes(std::forward<StatusReasonCodesT>(value));
266 return *this;
267 }
268 template <typename StatusReasonCodesT = Aws::String>
270 m_statusReasonCodesHasBeenSet = true;
271 m_statusReasonCodes.emplace_back(std::forward<StatusReasonCodesT>(value));
272 return *this;
273 }
275
277
280 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
281 template <typename CreatedAtT = Aws::Utils::DateTime>
282 void SetCreatedAt(CreatedAtT&& value) {
283 m_createdAtHasBeenSet = true;
284 m_createdAt = std::forward<CreatedAtT>(value);
285 }
286 template <typename CreatedAtT = Aws::Utils::DateTime>
288 SetCreatedAt(std::forward<CreatedAtT>(value));
289 return *this;
290 }
292
294
297 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
298 template <typename UpdatedAtT = Aws::Utils::DateTime>
299 void SetUpdatedAt(UpdatedAtT&& value) {
300 m_updatedAtHasBeenSet = true;
301 m_updatedAt = std::forward<UpdatedAtT>(value);
302 }
303 template <typename UpdatedAtT = Aws::Utils::DateTime>
305 SetUpdatedAt(std::forward<UpdatedAtT>(value));
306 return *this;
307 }
309
311
314 inline const Aws::String& GetRevision() const { return m_revision; }
315 template <typename RevisionT = Aws::String>
316 void SetRevision(RevisionT&& value) {
317 m_revisionHasBeenSet = true;
318 m_revision = std::forward<RevisionT>(value);
319 }
320 template <typename RevisionT = Aws::String>
322 SetRevision(std::forward<RevisionT>(value));
323 return *this;
324 }
326
328
331 inline const Aws::Vector<Aws::String>& GetAssociatedResources() const { return m_associatedResources; }
332 template <typename AssociatedResourcesT = Aws::Vector<Aws::String>>
333 void SetAssociatedResources(AssociatedResourcesT&& value) {
334 m_associatedResourcesHasBeenSet = true;
335 m_associatedResources = std::forward<AssociatedResourcesT>(value);
336 }
337 template <typename AssociatedResourcesT = Aws::Vector<Aws::String>>
339 SetAssociatedResources(std::forward<AssociatedResourcesT>(value));
340 return *this;
341 }
342 template <typename AssociatedResourcesT = Aws::String>
344 m_associatedResourcesHasBeenSet = true;
345 m_associatedResources.emplace_back(std::forward<AssociatedResourcesT>(value));
346 return *this;
347 }
349
351
355 inline const Aws::Vector<Contact>& GetPartnerContacts() const { return m_partnerContacts; }
356 template <typename PartnerContactsT = Aws::Vector<Contact>>
357 void SetPartnerContacts(PartnerContactsT&& value) {
358 m_partnerContactsHasBeenSet = true;
359 m_partnerContacts = std::forward<PartnerContactsT>(value);
360 }
361 template <typename PartnerContactsT = Aws::Vector<Contact>>
363 SetPartnerContacts(std::forward<PartnerContactsT>(value));
364 return *this;
365 }
366 template <typename PartnerContactsT = Contact>
368 m_partnerContactsHasBeenSet = true;
369 m_partnerContacts.emplace_back(std::forward<PartnerContactsT>(value));
370 return *this;
371 }
373
375
378 inline const Aws::Vector<FileDetail>& GetFileDetails() const { return m_fileDetails; }
379 template <typename FileDetailsT = Aws::Vector<FileDetail>>
380 void SetFileDetails(FileDetailsT&& value) {
381 m_fileDetailsHasBeenSet = true;
382 m_fileDetails = std::forward<FileDetailsT>(value);
383 }
384 template <typename FileDetailsT = Aws::Vector<FileDetail>>
386 SetFileDetails(std::forward<FileDetailsT>(value));
387 return *this;
388 }
389 template <typename FileDetailsT = FileDetail>
391 m_fileDetailsHasBeenSet = true;
392 m_fileDetails.emplace_back(std::forward<FileDetailsT>(value));
393 return *this;
394 }
396
398
399 inline const Aws::String& GetRequestId() const { return m_requestId; }
400 template <typename RequestIdT = Aws::String>
401 void SetRequestId(RequestIdT&& value) {
402 m_requestIdHasBeenSet = true;
403 m_requestId = std::forward<RequestIdT>(value);
404 }
405 template <typename RequestIdT = Aws::String>
407 SetRequestId(std::forward<RequestIdT>(value));
408 return *this;
409 }
411 private:
412 Aws::String m_id;
413
414 Aws::String m_arn;
415
416 Aws::String m_catalog;
417
418 Aws::String m_benefitId;
419
420 Aws::String m_name;
421
422 Aws::String m_description;
423
424 Aws::Vector<FulfillmentType> m_fulfillmentTypes;
425
426 Aws::Utils::Document m_benefitApplicationDetails;
427
428 Aws::Vector<Aws::String> m_programs;
429
431
432 Aws::String m_stage;
433
434 Aws::String m_statusReason;
435
436 Aws::Vector<Aws::String> m_statusReasonCodes;
437
438 Aws::Utils::DateTime m_createdAt{};
439
440 Aws::Utils::DateTime m_updatedAt{};
441
442 Aws::String m_revision;
443
444 Aws::Vector<Aws::String> m_associatedResources;
445
446 Aws::Vector<Contact> m_partnerContacts;
447
448 Aws::Vector<FileDetail> m_fileDetails;
449
450 Aws::String m_requestId;
451 bool m_idHasBeenSet = false;
452 bool m_arnHasBeenSet = false;
453 bool m_catalogHasBeenSet = false;
454 bool m_benefitIdHasBeenSet = false;
455 bool m_nameHasBeenSet = false;
456 bool m_descriptionHasBeenSet = false;
457 bool m_fulfillmentTypesHasBeenSet = false;
458 bool m_benefitApplicationDetailsHasBeenSet = false;
459 bool m_programsHasBeenSet = false;
460 bool m_statusHasBeenSet = false;
461 bool m_stageHasBeenSet = false;
462 bool m_statusReasonHasBeenSet = false;
463 bool m_statusReasonCodesHasBeenSet = false;
464 bool m_createdAtHasBeenSet = false;
465 bool m_updatedAtHasBeenSet = false;
466 bool m_revisionHasBeenSet = false;
467 bool m_associatedResourcesHasBeenSet = false;
468 bool m_partnerContactsHasBeenSet = false;
469 bool m_fileDetailsHasBeenSet = false;
470 bool m_requestIdHasBeenSet = false;
471};
472
473} // namespace Model
474} // namespace PartnerCentralBenefits
475} // 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