AWS SDK for C++

AWS SDK for C++ Version 1.11.712

Loading...
Searching...
No Matches
BenefitAllocationSummary.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/FulfillmentType.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PartnerCentralBenefits {
24namespace Model {
25
33 public:
34 AWS_PARTNERCENTRALBENEFITS_API BenefitAllocationSummary() = default;
35 AWS_PARTNERCENTRALBENEFITS_API BenefitAllocationSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PARTNERCENTRALBENEFITS_API BenefitAllocationSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PARTNERCENTRALBENEFITS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetCatalog() const { return m_catalog; }
62 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
63 template <typename CatalogT = Aws::String>
64 void SetCatalog(CatalogT&& value) {
65 m_catalogHasBeenSet = true;
66 m_catalog = std::forward<CatalogT>(value);
67 }
68 template <typename CatalogT = Aws::String>
70 SetCatalog(std::forward<CatalogT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetArn() const { return m_arn; }
80 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
81 template <typename ArnT = Aws::String>
82 void SetArn(ArnT&& value) {
83 m_arnHasBeenSet = true;
84 m_arn = std::forward<ArnT>(value);
85 }
86 template <typename ArnT = Aws::String>
88 SetArn(std::forward<ArnT>(value));
89 return *this;
90 }
92
94
97 inline BenefitAllocationStatus GetStatus() const { return m_status; }
98 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 m_statusHasBeenSet = true;
101 m_status = value;
102 }
104 SetStatus(value);
105 return *this;
106 }
108
110
114 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
115 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
116 template <typename StatusReasonT = Aws::String>
117 void SetStatusReason(StatusReasonT&& value) {
118 m_statusReasonHasBeenSet = true;
119 m_statusReason = std::forward<StatusReasonT>(value);
120 }
121 template <typename StatusReasonT = Aws::String>
123 SetStatusReason(std::forward<StatusReasonT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetName() const { return m_name; }
133 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
134 template <typename NameT = Aws::String>
135 void SetName(NameT&& value) {
136 m_nameHasBeenSet = true;
137 m_name = std::forward<NameT>(value);
138 }
139 template <typename NameT = Aws::String>
141 SetName(std::forward<NameT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetBenefitId() const { return m_benefitId; }
151 inline bool BenefitIdHasBeenSet() const { return m_benefitIdHasBeenSet; }
152 template <typename BenefitIdT = Aws::String>
153 void SetBenefitId(BenefitIdT&& value) {
154 m_benefitIdHasBeenSet = true;
155 m_benefitId = std::forward<BenefitIdT>(value);
156 }
157 template <typename BenefitIdT = Aws::String>
159 SetBenefitId(std::forward<BenefitIdT>(value));
160 return *this;
161 }
163
165
169 inline const Aws::String& GetBenefitApplicationId() const { return m_benefitApplicationId; }
170 inline bool BenefitApplicationIdHasBeenSet() const { return m_benefitApplicationIdHasBeenSet; }
171 template <typename BenefitApplicationIdT = Aws::String>
172 void SetBenefitApplicationId(BenefitApplicationIdT&& value) {
173 m_benefitApplicationIdHasBeenSet = true;
174 m_benefitApplicationId = std::forward<BenefitApplicationIdT>(value);
175 }
176 template <typename BenefitApplicationIdT = Aws::String>
177 BenefitAllocationSummary& WithBenefitApplicationId(BenefitApplicationIdT&& value) {
178 SetBenefitApplicationId(std::forward<BenefitApplicationIdT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::Vector<FulfillmentType>& GetFulfillmentTypes() const { return m_fulfillmentTypes; }
188 inline bool FulfillmentTypesHasBeenSet() const { return m_fulfillmentTypesHasBeenSet; }
189 template <typename FulfillmentTypesT = Aws::Vector<FulfillmentType>>
190 void SetFulfillmentTypes(FulfillmentTypesT&& value) {
191 m_fulfillmentTypesHasBeenSet = true;
192 m_fulfillmentTypes = std::forward<FulfillmentTypesT>(value);
193 }
194 template <typename FulfillmentTypesT = Aws::Vector<FulfillmentType>>
195 BenefitAllocationSummary& WithFulfillmentTypes(FulfillmentTypesT&& value) {
196 SetFulfillmentTypes(std::forward<FulfillmentTypesT>(value));
197 return *this;
198 }
200 m_fulfillmentTypesHasBeenSet = true;
201 m_fulfillmentTypes.push_back(value);
202 return *this;
203 }
205
207
210 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
211 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
212 template <typename CreatedAtT = Aws::Utils::DateTime>
213 void SetCreatedAt(CreatedAtT&& value) {
214 m_createdAtHasBeenSet = true;
215 m_createdAt = std::forward<CreatedAtT>(value);
216 }
217 template <typename CreatedAtT = Aws::Utils::DateTime>
219 SetCreatedAt(std::forward<CreatedAtT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
229 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
230 template <typename ExpiresAtT = Aws::Utils::DateTime>
231 void SetExpiresAt(ExpiresAtT&& value) {
232 m_expiresAtHasBeenSet = true;
233 m_expiresAt = std::forward<ExpiresAtT>(value);
234 }
235 template <typename ExpiresAtT = Aws::Utils::DateTime>
237 SetExpiresAt(std::forward<ExpiresAtT>(value));
238 return *this;
239 }
241
243
246 inline const Aws::Vector<Aws::String>& GetApplicableBenefitIds() const { return m_applicableBenefitIds; }
247 inline bool ApplicableBenefitIdsHasBeenSet() const { return m_applicableBenefitIdsHasBeenSet; }
248 template <typename ApplicableBenefitIdsT = Aws::Vector<Aws::String>>
249 void SetApplicableBenefitIds(ApplicableBenefitIdsT&& value) {
250 m_applicableBenefitIdsHasBeenSet = true;
251 m_applicableBenefitIds = std::forward<ApplicableBenefitIdsT>(value);
252 }
253 template <typename ApplicableBenefitIdsT = Aws::Vector<Aws::String>>
254 BenefitAllocationSummary& WithApplicableBenefitIds(ApplicableBenefitIdsT&& value) {
255 SetApplicableBenefitIds(std::forward<ApplicableBenefitIdsT>(value));
256 return *this;
257 }
258 template <typename ApplicableBenefitIdsT = Aws::String>
259 BenefitAllocationSummary& AddApplicableBenefitIds(ApplicableBenefitIdsT&& value) {
260 m_applicableBenefitIdsHasBeenSet = true;
261 m_applicableBenefitIds.emplace_back(std::forward<ApplicableBenefitIdsT>(value));
262 return *this;
263 }
265 private:
266 Aws::String m_id;
267
268 Aws::String m_catalog;
269
270 Aws::String m_arn;
271
273
274 Aws::String m_statusReason;
275
276 Aws::String m_name;
277
278 Aws::String m_benefitId;
279
280 Aws::String m_benefitApplicationId;
281
282 Aws::Vector<FulfillmentType> m_fulfillmentTypes;
283
284 Aws::Utils::DateTime m_createdAt{};
285
286 Aws::Utils::DateTime m_expiresAt{};
287
288 Aws::Vector<Aws::String> m_applicableBenefitIds;
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;
301};
302
303} // namespace Model
304} // namespace PartnerCentralBenefits
305} // namespace Aws
BenefitAllocationSummary & AddApplicableBenefitIds(ApplicableBenefitIdsT &&value)
AWS_PARTNERCENTRALBENEFITS_API BenefitAllocationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PARTNERCENTRALBENEFITS_API BenefitAllocationSummary()=default
BenefitAllocationSummary & WithStatus(BenefitAllocationStatus value)
BenefitAllocationSummary & WithFulfillmentTypes(FulfillmentTypesT &&value)
BenefitAllocationSummary & WithBenefitId(BenefitIdT &&value)
const Aws::Vector< Aws::String > & GetApplicableBenefitIds() const
BenefitAllocationSummary & WithBenefitApplicationId(BenefitApplicationIdT &&value)
BenefitAllocationSummary & WithExpiresAt(ExpiresAtT &&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::Vector< FulfillmentType > & GetFulfillmentTypes() const
BenefitAllocationSummary & AddFulfillmentTypes(FulfillmentType value)
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