AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
GetBenefitAllocationResult.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/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/BenefitAllocationStatus.h>
13#include <aws/partnercentral-benefits/model/FulfillmentDetails.h>
14#include <aws/partnercentral-benefits/model/FulfillmentType.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 PartnerCentralBenefits {
28namespace Model {
30 public:
31 AWS_PARTNERCENTRALBENEFITS_API GetBenefitAllocationResult() = default;
33 AWS_PARTNERCENTRALBENEFITS_API GetBenefitAllocationResult& operator=(
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 template <typename IdT = Aws::String>
42 void SetId(IdT&& value) {
43 m_idHasBeenSet = true;
44 m_id = std::forward<IdT>(value);
45 }
46 template <typename IdT = Aws::String>
48 SetId(std::forward<IdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCatalog() const { return m_catalog; }
58 template <typename CatalogT = Aws::String>
59 void SetCatalog(CatalogT&& value) {
60 m_catalogHasBeenSet = true;
61 m_catalog = std::forward<CatalogT>(value);
62 }
63 template <typename CatalogT = Aws::String>
65 SetCatalog(std::forward<CatalogT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetArn() const { return m_arn; }
75 template <typename ArnT = Aws::String>
76 void SetArn(ArnT&& value) {
77 m_arnHasBeenSet = true;
78 m_arn = std::forward<ArnT>(value);
79 }
80 template <typename ArnT = Aws::String>
82 SetArn(std::forward<ArnT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetName() const { return m_name; }
92 template <typename NameT = Aws::String>
93 void SetName(NameT&& value) {
94 m_nameHasBeenSet = true;
95 m_name = std::forward<NameT>(value);
96 }
97 template <typename NameT = Aws::String>
99 SetName(std::forward<NameT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetDescription() const { return m_description; }
109 template <typename DescriptionT = Aws::String>
110 void SetDescription(DescriptionT&& value) {
111 m_descriptionHasBeenSet = true;
112 m_description = std::forward<DescriptionT>(value);
113 }
114 template <typename DescriptionT = Aws::String>
116 SetDescription(std::forward<DescriptionT>(value));
117 return *this;
118 }
120
122
126 inline BenefitAllocationStatus GetStatus() const { return m_status; }
128 m_statusHasBeenSet = true;
129 m_status = value;
130 }
132 SetStatus(value);
133 return *this;
134 }
136
138
142 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
143 template <typename StatusReasonT = Aws::String>
144 void SetStatusReason(StatusReasonT&& value) {
145 m_statusReasonHasBeenSet = true;
146 m_statusReason = std::forward<StatusReasonT>(value);
147 }
148 template <typename StatusReasonT = Aws::String>
150 SetStatusReason(std::forward<StatusReasonT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::String& GetBenefitApplicationId() const { return m_benefitApplicationId; }
161 template <typename BenefitApplicationIdT = Aws::String>
162 void SetBenefitApplicationId(BenefitApplicationIdT&& value) {
163 m_benefitApplicationIdHasBeenSet = true;
164 m_benefitApplicationId = std::forward<BenefitApplicationIdT>(value);
165 }
166 template <typename BenefitApplicationIdT = Aws::String>
167 GetBenefitAllocationResult& WithBenefitApplicationId(BenefitApplicationIdT&& value) {
168 SetBenefitApplicationId(std::forward<BenefitApplicationIdT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetBenefitId() const { return m_benefitId; }
178 template <typename BenefitIdT = Aws::String>
179 void SetBenefitId(BenefitIdT&& value) {
180 m_benefitIdHasBeenSet = true;
181 m_benefitId = std::forward<BenefitIdT>(value);
182 }
183 template <typename BenefitIdT = Aws::String>
185 SetBenefitId(std::forward<BenefitIdT>(value));
186 return *this;
187 }
189
191
194 inline FulfillmentType GetFulfillmentType() const { return m_fulfillmentType; }
196 m_fulfillmentTypeHasBeenSet = true;
197 m_fulfillmentType = value;
198 }
200 SetFulfillmentType(value);
201 return *this;
202 }
204
206
209 inline const Aws::Vector<Aws::String>& GetApplicableBenefitIds() const { return m_applicableBenefitIds; }
210 template <typename ApplicableBenefitIdsT = Aws::Vector<Aws::String>>
211 void SetApplicableBenefitIds(ApplicableBenefitIdsT&& value) {
212 m_applicableBenefitIdsHasBeenSet = true;
213 m_applicableBenefitIds = std::forward<ApplicableBenefitIdsT>(value);
214 }
215 template <typename ApplicableBenefitIdsT = Aws::Vector<Aws::String>>
216 GetBenefitAllocationResult& WithApplicableBenefitIds(ApplicableBenefitIdsT&& value) {
217 SetApplicableBenefitIds(std::forward<ApplicableBenefitIdsT>(value));
218 return *this;
219 }
220 template <typename ApplicableBenefitIdsT = Aws::String>
221 GetBenefitAllocationResult& AddApplicableBenefitIds(ApplicableBenefitIdsT&& value) {
222 m_applicableBenefitIdsHasBeenSet = true;
223 m_applicableBenefitIds.emplace_back(std::forward<ApplicableBenefitIdsT>(value));
224 return *this;
225 }
227
229
232 inline const FulfillmentDetails& GetFulfillmentDetail() const { return m_fulfillmentDetail; }
233 template <typename FulfillmentDetailT = FulfillmentDetails>
234 void SetFulfillmentDetail(FulfillmentDetailT&& value) {
235 m_fulfillmentDetailHasBeenSet = true;
236 m_fulfillmentDetail = std::forward<FulfillmentDetailT>(value);
237 }
238 template <typename FulfillmentDetailT = FulfillmentDetails>
240 SetFulfillmentDetail(std::forward<FulfillmentDetailT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
250 template <typename CreatedAtT = Aws::Utils::DateTime>
251 void SetCreatedAt(CreatedAtT&& value) {
252 m_createdAtHasBeenSet = true;
253 m_createdAt = std::forward<CreatedAtT>(value);
254 }
255 template <typename CreatedAtT = Aws::Utils::DateTime>
257 SetCreatedAt(std::forward<CreatedAtT>(value));
258 return *this;
259 }
261
263
266 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
267 template <typename UpdatedAtT = Aws::Utils::DateTime>
268 void SetUpdatedAt(UpdatedAtT&& value) {
269 m_updatedAtHasBeenSet = true;
270 m_updatedAt = std::forward<UpdatedAtT>(value);
271 }
272 template <typename UpdatedAtT = Aws::Utils::DateTime>
274 SetUpdatedAt(std::forward<UpdatedAtT>(value));
275 return *this;
276 }
278
280
283 inline const Aws::Utils::DateTime& GetStartsAt() const { return m_startsAt; }
284 template <typename StartsAtT = Aws::Utils::DateTime>
285 void SetStartsAt(StartsAtT&& value) {
286 m_startsAtHasBeenSet = true;
287 m_startsAt = std::forward<StartsAtT>(value);
288 }
289 template <typename StartsAtT = Aws::Utils::DateTime>
291 SetStartsAt(std::forward<StartsAtT>(value));
292 return *this;
293 }
295
297
301 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
302 template <typename ExpiresAtT = Aws::Utils::DateTime>
303 void SetExpiresAt(ExpiresAtT&& value) {
304 m_expiresAtHasBeenSet = true;
305 m_expiresAt = std::forward<ExpiresAtT>(value);
306 }
307 template <typename ExpiresAtT = Aws::Utils::DateTime>
309 SetExpiresAt(std::forward<ExpiresAtT>(value));
310 return *this;
311 }
313
315
316 inline const Aws::String& GetRequestId() const { return m_requestId; }
317 template <typename RequestIdT = Aws::String>
318 void SetRequestId(RequestIdT&& value) {
319 m_requestIdHasBeenSet = true;
320 m_requestId = std::forward<RequestIdT>(value);
321 }
322 template <typename RequestIdT = Aws::String>
324 SetRequestId(std::forward<RequestIdT>(value));
325 return *this;
326 }
328 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
329
330 private:
331 Aws::String m_id;
332
333 Aws::String m_catalog;
334
335 Aws::String m_arn;
336
337 Aws::String m_name;
338
339 Aws::String m_description;
340
342
343 Aws::String m_statusReason;
344
345 Aws::String m_benefitApplicationId;
346
347 Aws::String m_benefitId;
348
349 FulfillmentType m_fulfillmentType{FulfillmentType::NOT_SET};
350
351 Aws::Vector<Aws::String> m_applicableBenefitIds;
352
353 FulfillmentDetails m_fulfillmentDetail;
354
355 Aws::Utils::DateTime m_createdAt{};
356
357 Aws::Utils::DateTime m_updatedAt{};
358
359 Aws::Utils::DateTime m_startsAt{};
360
361 Aws::Utils::DateTime m_expiresAt{};
362
363 Aws::String m_requestId;
364 Aws::Http::HttpResponseCode m_HttpResponseCode;
365 bool m_idHasBeenSet = false;
366 bool m_catalogHasBeenSet = false;
367 bool m_arnHasBeenSet = false;
368 bool m_nameHasBeenSet = false;
369 bool m_descriptionHasBeenSet = false;
370 bool m_statusHasBeenSet = false;
371 bool m_statusReasonHasBeenSet = false;
372 bool m_benefitApplicationIdHasBeenSet = false;
373 bool m_benefitIdHasBeenSet = false;
374 bool m_fulfillmentTypeHasBeenSet = false;
375 bool m_applicableBenefitIdsHasBeenSet = false;
376 bool m_fulfillmentDetailHasBeenSet = false;
377 bool m_createdAtHasBeenSet = false;
378 bool m_updatedAtHasBeenSet = false;
379 bool m_startsAtHasBeenSet = false;
380 bool m_expiresAtHasBeenSet = false;
381 bool m_requestIdHasBeenSet = false;
382};
383
384} // namespace Model
385} // namespace PartnerCentralBenefits
386} // 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