AWS SDK for C++

AWS SDK for C++ Version 1.11.711

Loading...
Searching...
No Matches
GetBenefitAllocationResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/partnercentral-benefits/PartnerCentralBenefits_EXPORTS.h>
11#include <aws/partnercentral-benefits/model/BenefitAllocationStatus.h>
12#include <aws/partnercentral-benefits/model/FulfillmentDetails.h>
13#include <aws/partnercentral-benefits/model/FulfillmentType.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace PartnerCentralBenefits {
27namespace Model {
29 public:
30 AWS_PARTNERCENTRALBENEFITS_API GetBenefitAllocationResult() = default;
32 AWS_PARTNERCENTRALBENEFITS_API GetBenefitAllocationResult& operator=(
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>
47 SetId(std::forward<IdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetCatalog() const { return m_catalog; }
57 template <typename CatalogT = Aws::String>
58 void SetCatalog(CatalogT&& value) {
59 m_catalogHasBeenSet = true;
60 m_catalog = std::forward<CatalogT>(value);
61 }
62 template <typename CatalogT = Aws::String>
64 SetCatalog(std::forward<CatalogT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetArn() const { return m_arn; }
74 template <typename ArnT = Aws::String>
75 void SetArn(ArnT&& value) {
76 m_arnHasBeenSet = true;
77 m_arn = std::forward<ArnT>(value);
78 }
79 template <typename ArnT = Aws::String>
81 SetArn(std::forward<ArnT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetName() const { return m_name; }
91 template <typename NameT = Aws::String>
92 void SetName(NameT&& value) {
93 m_nameHasBeenSet = true;
94 m_name = std::forward<NameT>(value);
95 }
96 template <typename NameT = Aws::String>
98 SetName(std::forward<NameT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetDescription() const { return m_description; }
108 template <typename DescriptionT = Aws::String>
109 void SetDescription(DescriptionT&& value) {
110 m_descriptionHasBeenSet = true;
111 m_description = std::forward<DescriptionT>(value);
112 }
113 template <typename DescriptionT = Aws::String>
115 SetDescription(std::forward<DescriptionT>(value));
116 return *this;
117 }
119
121
125 inline BenefitAllocationStatus GetStatus() const { return m_status; }
127 m_statusHasBeenSet = true;
128 m_status = value;
129 }
131 SetStatus(value);
132 return *this;
133 }
135
137
141 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
142 template <typename StatusReasonT = Aws::String>
143 void SetStatusReason(StatusReasonT&& value) {
144 m_statusReasonHasBeenSet = true;
145 m_statusReason = std::forward<StatusReasonT>(value);
146 }
147 template <typename StatusReasonT = Aws::String>
149 SetStatusReason(std::forward<StatusReasonT>(value));
150 return *this;
151 }
153
155
159 inline const Aws::String& GetBenefitApplicationId() const { return m_benefitApplicationId; }
160 template <typename BenefitApplicationIdT = Aws::String>
161 void SetBenefitApplicationId(BenefitApplicationIdT&& value) {
162 m_benefitApplicationIdHasBeenSet = true;
163 m_benefitApplicationId = std::forward<BenefitApplicationIdT>(value);
164 }
165 template <typename BenefitApplicationIdT = Aws::String>
166 GetBenefitAllocationResult& WithBenefitApplicationId(BenefitApplicationIdT&& value) {
167 SetBenefitApplicationId(std::forward<BenefitApplicationIdT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::String& GetBenefitId() const { return m_benefitId; }
177 template <typename BenefitIdT = Aws::String>
178 void SetBenefitId(BenefitIdT&& value) {
179 m_benefitIdHasBeenSet = true;
180 m_benefitId = std::forward<BenefitIdT>(value);
181 }
182 template <typename BenefitIdT = Aws::String>
184 SetBenefitId(std::forward<BenefitIdT>(value));
185 return *this;
186 }
188
190
193 inline FulfillmentType GetFulfillmentType() const { return m_fulfillmentType; }
195 m_fulfillmentTypeHasBeenSet = true;
196 m_fulfillmentType = value;
197 }
199 SetFulfillmentType(value);
200 return *this;
201 }
203
205
208 inline const Aws::Vector<Aws::String>& GetApplicableBenefitIds() const { return m_applicableBenefitIds; }
209 template <typename ApplicableBenefitIdsT = Aws::Vector<Aws::String>>
210 void SetApplicableBenefitIds(ApplicableBenefitIdsT&& value) {
211 m_applicableBenefitIdsHasBeenSet = true;
212 m_applicableBenefitIds = std::forward<ApplicableBenefitIdsT>(value);
213 }
214 template <typename ApplicableBenefitIdsT = Aws::Vector<Aws::String>>
215 GetBenefitAllocationResult& WithApplicableBenefitIds(ApplicableBenefitIdsT&& value) {
216 SetApplicableBenefitIds(std::forward<ApplicableBenefitIdsT>(value));
217 return *this;
218 }
219 template <typename ApplicableBenefitIdsT = Aws::String>
220 GetBenefitAllocationResult& AddApplicableBenefitIds(ApplicableBenefitIdsT&& value) {
221 m_applicableBenefitIdsHasBeenSet = true;
222 m_applicableBenefitIds.emplace_back(std::forward<ApplicableBenefitIdsT>(value));
223 return *this;
224 }
226
228
231 inline const FulfillmentDetails& GetFulfillmentDetail() const { return m_fulfillmentDetail; }
232 template <typename FulfillmentDetailT = FulfillmentDetails>
233 void SetFulfillmentDetail(FulfillmentDetailT&& value) {
234 m_fulfillmentDetailHasBeenSet = true;
235 m_fulfillmentDetail = std::forward<FulfillmentDetailT>(value);
236 }
237 template <typename FulfillmentDetailT = FulfillmentDetails>
239 SetFulfillmentDetail(std::forward<FulfillmentDetailT>(value));
240 return *this;
241 }
243
245
248 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
249 template <typename CreatedAtT = Aws::Utils::DateTime>
250 void SetCreatedAt(CreatedAtT&& value) {
251 m_createdAtHasBeenSet = true;
252 m_createdAt = std::forward<CreatedAtT>(value);
253 }
254 template <typename CreatedAtT = Aws::Utils::DateTime>
256 SetCreatedAt(std::forward<CreatedAtT>(value));
257 return *this;
258 }
260
262
265 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
266 template <typename UpdatedAtT = Aws::Utils::DateTime>
267 void SetUpdatedAt(UpdatedAtT&& value) {
268 m_updatedAtHasBeenSet = true;
269 m_updatedAt = std::forward<UpdatedAtT>(value);
270 }
271 template <typename UpdatedAtT = Aws::Utils::DateTime>
273 SetUpdatedAt(std::forward<UpdatedAtT>(value));
274 return *this;
275 }
277
279
282 inline const Aws::Utils::DateTime& GetStartsAt() const { return m_startsAt; }
283 template <typename StartsAtT = Aws::Utils::DateTime>
284 void SetStartsAt(StartsAtT&& value) {
285 m_startsAtHasBeenSet = true;
286 m_startsAt = std::forward<StartsAtT>(value);
287 }
288 template <typename StartsAtT = Aws::Utils::DateTime>
290 SetStartsAt(std::forward<StartsAtT>(value));
291 return *this;
292 }
294
296
300 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
301 template <typename ExpiresAtT = Aws::Utils::DateTime>
302 void SetExpiresAt(ExpiresAtT&& value) {
303 m_expiresAtHasBeenSet = true;
304 m_expiresAt = std::forward<ExpiresAtT>(value);
305 }
306 template <typename ExpiresAtT = Aws::Utils::DateTime>
308 SetExpiresAt(std::forward<ExpiresAtT>(value));
309 return *this;
310 }
312
314
315 inline const Aws::String& GetRequestId() const { return m_requestId; }
316 template <typename RequestIdT = Aws::String>
317 void SetRequestId(RequestIdT&& value) {
318 m_requestIdHasBeenSet = true;
319 m_requestId = std::forward<RequestIdT>(value);
320 }
321 template <typename RequestIdT = Aws::String>
323 SetRequestId(std::forward<RequestIdT>(value));
324 return *this;
325 }
327 private:
328 Aws::String m_id;
329
330 Aws::String m_catalog;
331
332 Aws::String m_arn;
333
334 Aws::String m_name;
335
336 Aws::String m_description;
337
339
340 Aws::String m_statusReason;
341
342 Aws::String m_benefitApplicationId;
343
344 Aws::String m_benefitId;
345
346 FulfillmentType m_fulfillmentType{FulfillmentType::NOT_SET};
347
348 Aws::Vector<Aws::String> m_applicableBenefitIds;
349
350 FulfillmentDetails m_fulfillmentDetail;
351
352 Aws::Utils::DateTime m_createdAt{};
353
354 Aws::Utils::DateTime m_updatedAt{};
355
356 Aws::Utils::DateTime m_startsAt{};
357
358 Aws::Utils::DateTime m_expiresAt{};
359
360 Aws::String m_requestId;
361 bool m_idHasBeenSet = false;
362 bool m_catalogHasBeenSet = false;
363 bool m_arnHasBeenSet = false;
364 bool m_nameHasBeenSet = false;
365 bool m_descriptionHasBeenSet = false;
366 bool m_statusHasBeenSet = false;
367 bool m_statusReasonHasBeenSet = false;
368 bool m_benefitApplicationIdHasBeenSet = false;
369 bool m_benefitIdHasBeenSet = false;
370 bool m_fulfillmentTypeHasBeenSet = false;
371 bool m_applicableBenefitIdsHasBeenSet = false;
372 bool m_fulfillmentDetailHasBeenSet = false;
373 bool m_createdAtHasBeenSet = false;
374 bool m_updatedAtHasBeenSet = false;
375 bool m_startsAtHasBeenSet = false;
376 bool m_expiresAtHasBeenSet = false;
377 bool m_requestIdHasBeenSet = false;
378};
379
380} // namespace Model
381} // namespace PartnerCentralBenefits
382} // namespace Aws
AWS_PARTNERCENTRALBENEFITS_API GetBenefitAllocationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBenefitAllocationResult & WithBenefitApplicationId(BenefitApplicationIdT &&value)
AWS_PARTNERCENTRALBENEFITS_API GetBenefitAllocationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetBenefitAllocationResult & WithDescription(DescriptionT &&value)
GetBenefitAllocationResult & WithCreatedAt(CreatedAtT &&value)
GetBenefitAllocationResult & WithStatus(BenefitAllocationStatus value)
GetBenefitAllocationResult & WithFulfillmentType(FulfillmentType value)
GetBenefitAllocationResult & AddApplicableBenefitIds(ApplicableBenefitIdsT &&value)
GetBenefitAllocationResult & WithApplicableBenefitIds(ApplicableBenefitIdsT &&value)
GetBenefitAllocationResult & WithRequestId(RequestIdT &&value)
GetBenefitAllocationResult & WithExpiresAt(ExpiresAtT &&value)
GetBenefitAllocationResult & WithBenefitId(BenefitIdT &&value)
GetBenefitAllocationResult & WithStatusReason(StatusReasonT &&value)
GetBenefitAllocationResult & WithFulfillmentDetail(FulfillmentDetailT &&value)
AWS_PARTNERCENTRALBENEFITS_API GetBenefitAllocationResult()=default
GetBenefitAllocationResult & WithUpdatedAt(UpdatedAtT &&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