AWS SDK for C++

AWS SDK for C++ Version 1.11.711

Loading...
Searching...
No Matches
CreateBenefitApplicationRequest.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/partnercentral-benefits/PartnerCentralBenefitsRequest.h>
11#include <aws/partnercentral-benefits/PartnerCentralBenefits_EXPORTS.h>
12#include <aws/partnercentral-benefits/model/Contact.h>
13#include <aws/partnercentral-benefits/model/FileInput.h>
14#include <aws/partnercentral-benefits/model/FulfillmentType.h>
15#include <aws/partnercentral-benefits/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace PartnerCentralBenefits {
21namespace Model {
22
26 public:
27 AWS_PARTNERCENTRALBENEFITS_API CreateBenefitApplicationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateBenefitApplication"; }
34
35 AWS_PARTNERCENTRALBENEFITS_API Aws::String SerializePayload() const override;
36
37 AWS_PARTNERCENTRALBENEFITS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
40
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
63 inline const Aws::String& GetClientToken() const { return m_clientToken; }
64 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
65 template <typename ClientTokenT = Aws::String>
66 void SetClientToken(ClientTokenT&& value) {
67 m_clientTokenHasBeenSet = true;
68 m_clientToken = std::forward<ClientTokenT>(value);
69 }
70 template <typename ClientTokenT = Aws::String>
72 SetClientToken(std::forward<ClientTokenT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetName() const { return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 template <typename NameT = Aws::String>
84 void SetName(NameT&& value) {
85 m_nameHasBeenSet = true;
86 m_name = std::forward<NameT>(value);
87 }
88 template <typename NameT = Aws::String>
90 SetName(std::forward<NameT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template <typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) {
103 m_descriptionHasBeenSet = true;
104 m_description = std::forward<DescriptionT>(value);
105 }
106 template <typename DescriptionT = Aws::String>
108 SetDescription(std::forward<DescriptionT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetBenefitIdentifier() const { return m_benefitIdentifier; }
118 inline bool BenefitIdentifierHasBeenSet() const { return m_benefitIdentifierHasBeenSet; }
119 template <typename BenefitIdentifierT = Aws::String>
120 void SetBenefitIdentifier(BenefitIdentifierT&& value) {
121 m_benefitIdentifierHasBeenSet = true;
122 m_benefitIdentifier = std::forward<BenefitIdentifierT>(value);
123 }
124 template <typename BenefitIdentifierT = Aws::String>
126 SetBenefitIdentifier(std::forward<BenefitIdentifierT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::Vector<FulfillmentType>& GetFulfillmentTypes() const { return m_fulfillmentTypes; }
137 inline bool FulfillmentTypesHasBeenSet() const { return m_fulfillmentTypesHasBeenSet; }
138 template <typename FulfillmentTypesT = Aws::Vector<FulfillmentType>>
139 void SetFulfillmentTypes(FulfillmentTypesT&& value) {
140 m_fulfillmentTypesHasBeenSet = true;
141 m_fulfillmentTypes = std::forward<FulfillmentTypesT>(value);
142 }
143 template <typename FulfillmentTypesT = Aws::Vector<FulfillmentType>>
145 SetFulfillmentTypes(std::forward<FulfillmentTypesT>(value));
146 return *this;
147 }
149 m_fulfillmentTypesHasBeenSet = true;
150 m_fulfillmentTypes.push_back(value);
151 return *this;
152 }
154
156
160 inline Aws::Utils::DocumentView GetBenefitApplicationDetails() const { return m_benefitApplicationDetails; }
161 inline bool BenefitApplicationDetailsHasBeenSet() const { return m_benefitApplicationDetailsHasBeenSet; }
162 template <typename BenefitApplicationDetailsT = Aws::Utils::Document>
163 void SetBenefitApplicationDetails(BenefitApplicationDetailsT&& value) {
164 m_benefitApplicationDetailsHasBeenSet = true;
165 m_benefitApplicationDetails = std::forward<BenefitApplicationDetailsT>(value);
166 }
167 template <typename BenefitApplicationDetailsT = Aws::Utils::Document>
169 SetBenefitApplicationDetails(std::forward<BenefitApplicationDetailsT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
179 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
180 template <typename TagsT = Aws::Vector<Tag>>
181 void SetTags(TagsT&& value) {
182 m_tagsHasBeenSet = true;
183 m_tags = std::forward<TagsT>(value);
184 }
185 template <typename TagsT = Aws::Vector<Tag>>
187 SetTags(std::forward<TagsT>(value));
188 return *this;
189 }
190 template <typename TagsT = Tag>
192 m_tagsHasBeenSet = true;
193 m_tags.emplace_back(std::forward<TagsT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::Vector<Aws::String>& GetAssociatedResources() const { return m_associatedResources; }
203 inline bool AssociatedResourcesHasBeenSet() const { return m_associatedResourcesHasBeenSet; }
204 template <typename AssociatedResourcesT = Aws::Vector<Aws::String>>
205 void SetAssociatedResources(AssociatedResourcesT&& value) {
206 m_associatedResourcesHasBeenSet = true;
207 m_associatedResources = std::forward<AssociatedResourcesT>(value);
208 }
209 template <typename AssociatedResourcesT = Aws::Vector<Aws::String>>
211 SetAssociatedResources(std::forward<AssociatedResourcesT>(value));
212 return *this;
213 }
214 template <typename AssociatedResourcesT = Aws::String>
216 m_associatedResourcesHasBeenSet = true;
217 m_associatedResources.emplace_back(std::forward<AssociatedResourcesT>(value));
218 return *this;
219 }
221
223
227 inline const Aws::Vector<Contact>& GetPartnerContacts() const { return m_partnerContacts; }
228 inline bool PartnerContactsHasBeenSet() const { return m_partnerContactsHasBeenSet; }
229 template <typename PartnerContactsT = Aws::Vector<Contact>>
230 void SetPartnerContacts(PartnerContactsT&& value) {
231 m_partnerContactsHasBeenSet = true;
232 m_partnerContacts = std::forward<PartnerContactsT>(value);
233 }
234 template <typename PartnerContactsT = Aws::Vector<Contact>>
236 SetPartnerContacts(std::forward<PartnerContactsT>(value));
237 return *this;
238 }
239 template <typename PartnerContactsT = Contact>
241 m_partnerContactsHasBeenSet = true;
242 m_partnerContacts.emplace_back(std::forward<PartnerContactsT>(value));
243 return *this;
244 }
246
248
251 inline const Aws::Vector<FileInput>& GetFileDetails() const { return m_fileDetails; }
252 inline bool FileDetailsHasBeenSet() const { return m_fileDetailsHasBeenSet; }
253 template <typename FileDetailsT = Aws::Vector<FileInput>>
254 void SetFileDetails(FileDetailsT&& value) {
255 m_fileDetailsHasBeenSet = true;
256 m_fileDetails = std::forward<FileDetailsT>(value);
257 }
258 template <typename FileDetailsT = Aws::Vector<FileInput>>
260 SetFileDetails(std::forward<FileDetailsT>(value));
261 return *this;
262 }
263 template <typename FileDetailsT = FileInput>
265 m_fileDetailsHasBeenSet = true;
266 m_fileDetails.emplace_back(std::forward<FileDetailsT>(value));
267 return *this;
268 }
270 private:
271 Aws::String m_catalog;
272
273 Aws::String m_clientToken;
274
275 Aws::String m_name;
276
277 Aws::String m_description;
278
279 Aws::String m_benefitIdentifier;
280
281 Aws::Vector<FulfillmentType> m_fulfillmentTypes;
282
283 Aws::Utils::Document m_benefitApplicationDetails;
284
285 Aws::Vector<Tag> m_tags;
286
287 Aws::Vector<Aws::String> m_associatedResources;
288
289 Aws::Vector<Contact> m_partnerContacts;
290
291 Aws::Vector<FileInput> m_fileDetails;
292 bool m_catalogHasBeenSet = false;
293 bool m_clientTokenHasBeenSet = false;
294 bool m_nameHasBeenSet = false;
295 bool m_descriptionHasBeenSet = false;
296 bool m_benefitIdentifierHasBeenSet = false;
297 bool m_fulfillmentTypesHasBeenSet = false;
298 bool m_benefitApplicationDetailsHasBeenSet = false;
299 bool m_tagsHasBeenSet = false;
300 bool m_associatedResourcesHasBeenSet = false;
301 bool m_partnerContactsHasBeenSet = false;
302 bool m_fileDetailsHasBeenSet = false;
303};
304
305} // namespace Model
306} // namespace PartnerCentralBenefits
307} // namespace Aws
AWS_PARTNERCENTRALBENEFITS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateBenefitApplicationRequest & WithBenefitIdentifier(BenefitIdentifierT &&value)
CreateBenefitApplicationRequest & WithClientToken(ClientTokenT &&value)
CreateBenefitApplicationRequest & AddFulfillmentTypes(FulfillmentType value)
CreateBenefitApplicationRequest & AddFileDetails(FileDetailsT &&value)
CreateBenefitApplicationRequest & WithBenefitApplicationDetails(BenefitApplicationDetailsT &&value)
CreateBenefitApplicationRequest & WithFileDetails(FileDetailsT &&value)
CreateBenefitApplicationRequest & WithFulfillmentTypes(FulfillmentTypesT &&value)
AWS_PARTNERCENTRALBENEFITS_API CreateBenefitApplicationRequest()=default
CreateBenefitApplicationRequest & AddAssociatedResources(AssociatedResourcesT &&value)
AWS_PARTNERCENTRALBENEFITS_API Aws::String SerializePayload() const override
CreateBenefitApplicationRequest & WithDescription(DescriptionT &&value)
CreateBenefitApplicationRequest & WithPartnerContacts(PartnerContactsT &&value)
CreateBenefitApplicationRequest & WithAssociatedResources(AssociatedResourcesT &&value)
CreateBenefitApplicationRequest & AddPartnerContacts(PartnerContactsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector