AWS SDK for C++

AWS SDK for C++ Version 1.11.711

Loading...
Searching...
No Matches
BenefitApplicationSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.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/FulfillmentType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace PartnerCentralBenefits {
25namespace Model {
26
34 public:
35 AWS_PARTNERCENTRALBENEFITS_API BenefitApplicationSummary() = default;
36 AWS_PARTNERCENTRALBENEFITS_API BenefitApplicationSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PARTNERCENTRALBENEFITS_API BenefitApplicationSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PARTNERCENTRALBENEFITS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetCatalog() const { return m_catalog; }
45 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
46 template <typename CatalogT = Aws::String>
47 void SetCatalog(CatalogT&& value) {
48 m_catalogHasBeenSet = true;
49 m_catalog = std::forward<CatalogT>(value);
50 }
51 template <typename CatalogT = Aws::String>
53 SetCatalog(std::forward<CatalogT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetId() const { return m_id; }
81 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
82 template <typename IdT = Aws::String>
83 void SetId(IdT&& value) {
84 m_idHasBeenSet = true;
85 m_id = std::forward<IdT>(value);
86 }
87 template <typename IdT = Aws::String>
89 SetId(std::forward<IdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetArn() const { return m_arn; }
99 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
100 template <typename ArnT = Aws::String>
101 void SetArn(ArnT&& value) {
102 m_arnHasBeenSet = true;
103 m_arn = std::forward<ArnT>(value);
104 }
105 template <typename ArnT = Aws::String>
107 SetArn(std::forward<ArnT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetBenefitId() const { return m_benefitId; }
117 inline bool BenefitIdHasBeenSet() const { return m_benefitIdHasBeenSet; }
118 template <typename BenefitIdT = Aws::String>
119 void SetBenefitId(BenefitIdT&& value) {
120 m_benefitIdHasBeenSet = true;
121 m_benefitId = std::forward<BenefitIdT>(value);
122 }
123 template <typename BenefitIdT = Aws::String>
125 SetBenefitId(std::forward<BenefitIdT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Vector<Aws::String>& GetPrograms() const { return m_programs; }
135 inline bool ProgramsHasBeenSet() const { return m_programsHasBeenSet; }
136 template <typename ProgramsT = Aws::Vector<Aws::String>>
137 void SetPrograms(ProgramsT&& value) {
138 m_programsHasBeenSet = true;
139 m_programs = std::forward<ProgramsT>(value);
140 }
141 template <typename ProgramsT = Aws::Vector<Aws::String>>
143 SetPrograms(std::forward<ProgramsT>(value));
144 return *this;
145 }
146 template <typename ProgramsT = Aws::String>
148 m_programsHasBeenSet = true;
149 m_programs.emplace_back(std::forward<ProgramsT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Vector<FulfillmentType>& GetFulfillmentTypes() const { return m_fulfillmentTypes; }
159 inline bool FulfillmentTypesHasBeenSet() const { return m_fulfillmentTypesHasBeenSet; }
160 template <typename FulfillmentTypesT = Aws::Vector<FulfillmentType>>
161 void SetFulfillmentTypes(FulfillmentTypesT&& value) {
162 m_fulfillmentTypesHasBeenSet = true;
163 m_fulfillmentTypes = std::forward<FulfillmentTypesT>(value);
164 }
165 template <typename FulfillmentTypesT = Aws::Vector<FulfillmentType>>
167 SetFulfillmentTypes(std::forward<FulfillmentTypesT>(value));
168 return *this;
169 }
171 m_fulfillmentTypesHasBeenSet = true;
172 m_fulfillmentTypes.push_back(value);
173 return *this;
174 }
176
178
181 inline BenefitApplicationStatus GetStatus() const { return m_status; }
182 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
184 m_statusHasBeenSet = true;
185 m_status = value;
186 }
188 SetStatus(value);
189 return *this;
190 }
192
194
197 inline const Aws::String& GetStage() const { return m_stage; }
198 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
199 template <typename StageT = Aws::String>
200 void SetStage(StageT&& value) {
201 m_stageHasBeenSet = true;
202 m_stage = std::forward<StageT>(value);
203 }
204 template <typename StageT = Aws::String>
206 SetStage(std::forward<StageT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
216 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
217 template <typename CreatedAtT = Aws::Utils::DateTime>
218 void SetCreatedAt(CreatedAtT&& value) {
219 m_createdAtHasBeenSet = true;
220 m_createdAt = std::forward<CreatedAtT>(value);
221 }
222 template <typename CreatedAtT = Aws::Utils::DateTime>
224 SetCreatedAt(std::forward<CreatedAtT>(value));
225 return *this;
226 }
228
230
233 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
234 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
235 template <typename UpdatedAtT = Aws::Utils::DateTime>
236 void SetUpdatedAt(UpdatedAtT&& value) {
237 m_updatedAtHasBeenSet = true;
238 m_updatedAt = std::forward<UpdatedAtT>(value);
239 }
240 template <typename UpdatedAtT = Aws::Utils::DateTime>
242 SetUpdatedAt(std::forward<UpdatedAtT>(value));
243 return *this;
244 }
246
248
252 inline const Aws::Map<Aws::String, Aws::String>& GetBenefitApplicationDetails() const { return m_benefitApplicationDetails; }
253 inline bool BenefitApplicationDetailsHasBeenSet() const { return m_benefitApplicationDetailsHasBeenSet; }
254 template <typename BenefitApplicationDetailsT = Aws::Map<Aws::String, Aws::String>>
255 void SetBenefitApplicationDetails(BenefitApplicationDetailsT&& value) {
256 m_benefitApplicationDetailsHasBeenSet = true;
257 m_benefitApplicationDetails = std::forward<BenefitApplicationDetailsT>(value);
258 }
259 template <typename BenefitApplicationDetailsT = Aws::Map<Aws::String, Aws::String>>
260 BenefitApplicationSummary& WithBenefitApplicationDetails(BenefitApplicationDetailsT&& value) {
261 SetBenefitApplicationDetails(std::forward<BenefitApplicationDetailsT>(value));
262 return *this;
263 }
264 template <typename BenefitApplicationDetailsKeyT = Aws::String, typename BenefitApplicationDetailsValueT = Aws::String>
265 BenefitApplicationSummary& AddBenefitApplicationDetails(BenefitApplicationDetailsKeyT&& key, BenefitApplicationDetailsValueT&& value) {
266 m_benefitApplicationDetailsHasBeenSet = true;
267 m_benefitApplicationDetails.emplace(std::forward<BenefitApplicationDetailsKeyT>(key),
268 std::forward<BenefitApplicationDetailsValueT>(value));
269 return *this;
270 }
272
274
277 inline const Aws::Vector<Aws::String>& GetAssociatedResources() const { return m_associatedResources; }
278 inline bool AssociatedResourcesHasBeenSet() const { return m_associatedResourcesHasBeenSet; }
279 template <typename AssociatedResourcesT = Aws::Vector<Aws::String>>
280 void SetAssociatedResources(AssociatedResourcesT&& value) {
281 m_associatedResourcesHasBeenSet = true;
282 m_associatedResources = std::forward<AssociatedResourcesT>(value);
283 }
284 template <typename AssociatedResourcesT = Aws::Vector<Aws::String>>
285 BenefitApplicationSummary& WithAssociatedResources(AssociatedResourcesT&& value) {
286 SetAssociatedResources(std::forward<AssociatedResourcesT>(value));
287 return *this;
288 }
289 template <typename AssociatedResourcesT = Aws::String>
290 BenefitApplicationSummary& AddAssociatedResources(AssociatedResourcesT&& value) {
291 m_associatedResourcesHasBeenSet = true;
292 m_associatedResources.emplace_back(std::forward<AssociatedResourcesT>(value));
293 return *this;
294 }
296 private:
297 Aws::String m_catalog;
298
299 Aws::String m_name;
300
301 Aws::String m_id;
302
303 Aws::String m_arn;
304
305 Aws::String m_benefitId;
306
307 Aws::Vector<Aws::String> m_programs;
308
309 Aws::Vector<FulfillmentType> m_fulfillmentTypes;
310
312
313 Aws::String m_stage;
314
315 Aws::Utils::DateTime m_createdAt{};
316
317 Aws::Utils::DateTime m_updatedAt{};
318
319 Aws::Map<Aws::String, Aws::String> m_benefitApplicationDetails;
320
321 Aws::Vector<Aws::String> m_associatedResources;
322 bool m_catalogHasBeenSet = false;
323 bool m_nameHasBeenSet = false;
324 bool m_idHasBeenSet = false;
325 bool m_arnHasBeenSet = false;
326 bool m_benefitIdHasBeenSet = false;
327 bool m_programsHasBeenSet = false;
328 bool m_fulfillmentTypesHasBeenSet = false;
329 bool m_statusHasBeenSet = false;
330 bool m_stageHasBeenSet = false;
331 bool m_createdAtHasBeenSet = false;
332 bool m_updatedAtHasBeenSet = false;
333 bool m_benefitApplicationDetailsHasBeenSet = false;
334 bool m_associatedResourcesHasBeenSet = false;
335};
336
337} // namespace Model
338} // namespace PartnerCentralBenefits
339} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetBenefitApplicationDetails() const
BenefitApplicationSummary & WithCreatedAt(CreatedAtT &&value)
BenefitApplicationSummary & AddBenefitApplicationDetails(BenefitApplicationDetailsKeyT &&key, BenefitApplicationDetailsValueT &&value)
BenefitApplicationSummary & WithFulfillmentTypes(FulfillmentTypesT &&value)
BenefitApplicationSummary & AddAssociatedResources(AssociatedResourcesT &&value)
BenefitApplicationSummary & WithAssociatedResources(AssociatedResourcesT &&value)
const Aws::Vector< FulfillmentType > & GetFulfillmentTypes() const
BenefitApplicationSummary & WithStatus(BenefitApplicationStatus value)
AWS_PARTNERCENTRALBENEFITS_API BenefitApplicationSummary()=default
AWS_PARTNERCENTRALBENEFITS_API BenefitApplicationSummary(Aws::Utils::Json::JsonView jsonValue)
BenefitApplicationSummary & WithUpdatedAt(UpdatedAtT &&value)
AWS_PARTNERCENTRALBENEFITS_API Aws::Utils::Json::JsonValue Jsonize() const
BenefitApplicationSummary & WithBenefitApplicationDetails(BenefitApplicationDetailsT &&value)
BenefitApplicationSummary & WithBenefitId(BenefitIdT &&value)
AWS_PARTNERCENTRALBENEFITS_API BenefitApplicationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
BenefitApplicationSummary & AddFulfillmentTypes(FulfillmentType value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue