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/FulfillmentType.h>
23namespace PartnerCentralBenefits {
45 template <
typename IdT = Aws::String>
47 m_idHasBeenSet =
true;
48 m_id = std::forward<IdT>(value);
50 template <
typename IdT = Aws::String>
52 SetId(std::forward<IdT>(value));
63 template <
typename CatalogT = Aws::String>
65 m_catalogHasBeenSet =
true;
66 m_catalog = std::forward<CatalogT>(value);
68 template <
typename CatalogT = Aws::String>
81 template <
typename ArnT = Aws::String>
83 m_arnHasBeenSet =
true;
84 m_arn = std::forward<ArnT>(value);
86 template <
typename ArnT = Aws::String>
88 SetArn(std::forward<ArnT>(value));
100 m_statusHasBeenSet =
true;
116 template <
typename StatusReasonT = Aws::String>
118 m_statusReasonHasBeenSet =
true;
119 m_statusReason = std::forward<StatusReasonT>(value);
121 template <
typename StatusReasonT = Aws::String>
134 template <
typename NameT = Aws::String>
136 m_nameHasBeenSet =
true;
137 m_name = std::forward<NameT>(value);
139 template <
typename NameT = Aws::String>
141 SetName(std::forward<NameT>(value));
152 template <
typename BenefitIdT = Aws::String>
154 m_benefitIdHasBeenSet =
true;
155 m_benefitId = std::forward<BenefitIdT>(value);
157 template <
typename BenefitIdT = Aws::String>
171 template <
typename BenefitApplicationIdT = Aws::String>
173 m_benefitApplicationIdHasBeenSet =
true;
174 m_benefitApplicationId = std::forward<BenefitApplicationIdT>(value);
176 template <
typename BenefitApplicationIdT = Aws::String>
189 template <
typename FulfillmentTypesT = Aws::Vector<FulfillmentType>>
191 m_fulfillmentTypesHasBeenSet =
true;
192 m_fulfillmentTypes = std::forward<FulfillmentTypesT>(value);
194 template <
typename FulfillmentTypesT = Aws::Vector<FulfillmentType>>
200 m_fulfillmentTypesHasBeenSet =
true;
201 m_fulfillmentTypes.push_back(value);
212 template <
typename CreatedAtT = Aws::Utils::DateTime>
214 m_createdAtHasBeenSet =
true;
215 m_createdAt = std::forward<CreatedAtT>(value);
217 template <
typename CreatedAtT = Aws::Utils::DateTime>
230 template <
typename ExpiresAtT = Aws::Utils::DateTime>
232 m_expiresAtHasBeenSet =
true;
233 m_expiresAt = std::forward<ExpiresAtT>(value);
235 template <
typename ExpiresAtT = Aws::Utils::DateTime>
248 template <
typename ApplicableBenefitIdsT = Aws::Vector<Aws::String>>
250 m_applicableBenefitIdsHasBeenSet =
true;
251 m_applicableBenefitIds = std::forward<ApplicableBenefitIdsT>(value);
253 template <
typename ApplicableBenefitIdsT = Aws::Vector<Aws::String>>
258 template <
typename ApplicableBenefitIdsT = Aws::String>
260 m_applicableBenefitIdsHasBeenSet =
true;
261 m_applicableBenefitIds.emplace_back(std::forward<ApplicableBenefitIdsT>(value));
289 bool m_idHasBeenSet =
false;
290 bool m_catalogHasBeenSet =
false;
291 bool m_arnHasBeenSet =
false;
292 bool m_statusHasBeenSet =
false;
293 bool m_statusReasonHasBeenSet =
false;
294 bool m_nameHasBeenSet =
false;
295 bool m_benefitIdHasBeenSet =
false;
296 bool m_benefitApplicationIdHasBeenSet =
false;
297 bool m_fulfillmentTypesHasBeenSet =
false;
298 bool m_createdAtHasBeenSet =
false;
299 bool m_expiresAtHasBeenSet =
false;
300 bool m_applicableBenefitIdsHasBeenSet =
false;
BenefitAllocationSummary & AddApplicableBenefitIds(ApplicableBenefitIdsT &&value)
BenefitAllocationSummary & WithId(IdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
BenefitAllocationSummary & WithName(NameT &&value)
void SetExpiresAt(ExpiresAtT &&value)
BenefitAllocationSummary & WithCatalog(CatalogT &&value)
AWS_PARTNERCENTRALBENEFITS_API BenefitAllocationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
void SetApplicableBenefitIds(ApplicableBenefitIdsT &&value)
BenefitAllocationSummary & WithArn(ArnT &&value)
AWS_PARTNERCENTRALBENEFITS_API BenefitAllocationSummary()=default
const Aws::String & GetBenefitId() const
BenefitAllocationSummary & WithStatus(BenefitAllocationStatus value)
BenefitAllocationSummary & WithFulfillmentTypes(FulfillmentTypesT &&value)
void SetArn(ArnT &&value)
const Aws::Utils::DateTime & GetExpiresAt() const
bool StatusHasBeenSet() const
BenefitAllocationStatus GetStatus() const
void SetStatus(BenefitAllocationStatus value)
void SetStatusReason(StatusReasonT &&value)
const Aws::String & GetArn() const
bool ArnHasBeenSet() const
BenefitAllocationSummary & WithBenefitId(BenefitIdT &&value)
const Aws::Vector< Aws::String > & GetApplicableBenefitIds() const
const Aws::String & GetStatusReason() const
bool CreatedAtHasBeenSet() const
bool StatusReasonHasBeenSet() const
void SetCreatedAt(CreatedAtT &&value)
bool BenefitApplicationIdHasBeenSet() const
bool NameHasBeenSet() const
bool BenefitIdHasBeenSet() const
BenefitAllocationSummary & WithBenefitApplicationId(BenefitApplicationIdT &&value)
bool FulfillmentTypesHasBeenSet() const
BenefitAllocationSummary & WithExpiresAt(ExpiresAtT &&value)
void SetBenefitId(BenefitIdT &&value)
void SetCatalog(CatalogT &&value)
BenefitAllocationSummary & WithCreatedAt(CreatedAtT &&value)
AWS_PARTNERCENTRALBENEFITS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PARTNERCENTRALBENEFITS_API BenefitAllocationSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBenefitApplicationId() const
bool CatalogHasBeenSet() const
const Aws::Vector< FulfillmentType > & GetFulfillmentTypes() const
bool ExpiresAtHasBeenSet() const
bool IdHasBeenSet() const
BenefitAllocationSummary & AddFulfillmentTypes(FulfillmentType value)
const Aws::String & GetCatalog() const
void SetName(NameT &&value)
bool ApplicableBenefitIdsHasBeenSet() const
void SetBenefitApplicationId(BenefitApplicationIdT &&value)
void SetFulfillmentTypes(FulfillmentTypesT &&value)
const Aws::String & GetId() const
BenefitAllocationSummary & WithStatusReason(StatusReasonT &&value)
BenefitAllocationSummary & WithApplicableBenefitIds(ApplicableBenefitIdsT &&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