AWS SDK for C++

AWS SDK for C++ Version 1.11.711

Loading...
Searching...
No Matches
BenefitSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/partnercentral-benefits/PartnerCentralBenefits_EXPORTS.h>
10#include <aws/partnercentral-benefits/model/BenefitStatus.h>
11#include <aws/partnercentral-benefits/model/FulfillmentType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace PartnerCentralBenefits {
23namespace Model {
24
32 public:
33 AWS_PARTNERCENTRALBENEFITS_API BenefitSummary() = default;
34 AWS_PARTNERCENTRALBENEFITS_API BenefitSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_PARTNERCENTRALBENEFITS_API BenefitSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PARTNERCENTRALBENEFITS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetId() const { return m_id; }
43 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
44 template <typename IdT = Aws::String>
45 void SetId(IdT&& value) {
46 m_idHasBeenSet = true;
47 m_id = std::forward<IdT>(value);
48 }
49 template <typename IdT = Aws::String>
50 BenefitSummary& WithId(IdT&& value) {
51 SetId(std::forward<IdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetCatalog() const { return m_catalog; }
61 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
62 template <typename CatalogT = Aws::String>
63 void SetCatalog(CatalogT&& value) {
64 m_catalogHasBeenSet = true;
65 m_catalog = std::forward<CatalogT>(value);
66 }
67 template <typename CatalogT = Aws::String>
68 BenefitSummary& WithCatalog(CatalogT&& value) {
69 SetCatalog(std::forward<CatalogT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetArn() const { return m_arn; }
79 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
80 template <typename ArnT = Aws::String>
81 void SetArn(ArnT&& value) {
82 m_arnHasBeenSet = true;
83 m_arn = std::forward<ArnT>(value);
84 }
85 template <typename ArnT = Aws::String>
86 BenefitSummary& WithArn(ArnT&& value) {
87 SetArn(std::forward<ArnT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetName() const { return m_name; }
97 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 template <typename NameT = Aws::String>
99 void SetName(NameT&& value) {
100 m_nameHasBeenSet = true;
101 m_name = std::forward<NameT>(value);
102 }
103 template <typename NameT = Aws::String>
104 BenefitSummary& WithName(NameT&& value) {
105 SetName(std::forward<NameT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetDescription() const { return m_description; }
115 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
116 template <typename DescriptionT = Aws::String>
117 void SetDescription(DescriptionT&& value) {
118 m_descriptionHasBeenSet = true;
119 m_description = std::forward<DescriptionT>(value);
120 }
121 template <typename DescriptionT = Aws::String>
122 BenefitSummary& WithDescription(DescriptionT&& value) {
123 SetDescription(std::forward<DescriptionT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Vector<Aws::String>& GetPrograms() const { return m_programs; }
133 inline bool ProgramsHasBeenSet() const { return m_programsHasBeenSet; }
134 template <typename ProgramsT = Aws::Vector<Aws::String>>
135 void SetPrograms(ProgramsT&& value) {
136 m_programsHasBeenSet = true;
137 m_programs = std::forward<ProgramsT>(value);
138 }
139 template <typename ProgramsT = Aws::Vector<Aws::String>>
140 BenefitSummary& WithPrograms(ProgramsT&& value) {
141 SetPrograms(std::forward<ProgramsT>(value));
142 return *this;
143 }
144 template <typename ProgramsT = Aws::String>
145 BenefitSummary& AddPrograms(ProgramsT&& value) {
146 m_programsHasBeenSet = true;
147 m_programs.emplace_back(std::forward<ProgramsT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::Vector<FulfillmentType>& GetFulfillmentTypes() const { return m_fulfillmentTypes; }
157 inline bool FulfillmentTypesHasBeenSet() const { return m_fulfillmentTypesHasBeenSet; }
158 template <typename FulfillmentTypesT = Aws::Vector<FulfillmentType>>
159 void SetFulfillmentTypes(FulfillmentTypesT&& value) {
160 m_fulfillmentTypesHasBeenSet = true;
161 m_fulfillmentTypes = std::forward<FulfillmentTypesT>(value);
162 }
163 template <typename FulfillmentTypesT = Aws::Vector<FulfillmentType>>
164 BenefitSummary& WithFulfillmentTypes(FulfillmentTypesT&& value) {
165 SetFulfillmentTypes(std::forward<FulfillmentTypesT>(value));
166 return *this;
167 }
169 m_fulfillmentTypesHasBeenSet = true;
170 m_fulfillmentTypes.push_back(value);
171 return *this;
172 }
174
176
179 inline BenefitStatus GetStatus() const { return m_status; }
180 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
181 inline void SetStatus(BenefitStatus value) {
182 m_statusHasBeenSet = true;
183 m_status = value;
184 }
186 SetStatus(value);
187 return *this;
188 }
190 private:
191 Aws::String m_id;
192
193 Aws::String m_catalog;
194
195 Aws::String m_arn;
196
197 Aws::String m_name;
198
199 Aws::String m_description;
200
201 Aws::Vector<Aws::String> m_programs;
202
203 Aws::Vector<FulfillmentType> m_fulfillmentTypes;
204
206 bool m_idHasBeenSet = false;
207 bool m_catalogHasBeenSet = false;
208 bool m_arnHasBeenSet = false;
209 bool m_nameHasBeenSet = false;
210 bool m_descriptionHasBeenSet = false;
211 bool m_programsHasBeenSet = false;
212 bool m_fulfillmentTypesHasBeenSet = false;
213 bool m_statusHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace PartnerCentralBenefits
218} // namespace Aws
AWS_PARTNERCENTRALBENEFITS_API BenefitSummary(Aws::Utils::Json::JsonView jsonValue)
BenefitSummary & WithPrograms(ProgramsT &&value)
BenefitSummary & WithDescription(DescriptionT &&value)
AWS_PARTNERCENTRALBENEFITS_API BenefitSummary()=default
AWS_PARTNERCENTRALBENEFITS_API BenefitSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetPrograms() const
const Aws::Vector< FulfillmentType > & GetFulfillmentTypes() const
BenefitSummary & WithFulfillmentTypes(FulfillmentTypesT &&value)
BenefitSummary & WithCatalog(CatalogT &&value)
BenefitSummary & AddPrograms(ProgramsT &&value)
void SetFulfillmentTypes(FulfillmentTypesT &&value)
AWS_PARTNERCENTRALBENEFITS_API Aws::Utils::Json::JsonValue Jsonize() const
BenefitSummary & WithStatus(BenefitStatus value)
BenefitSummary & AddFulfillmentTypes(FulfillmentType 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