AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
CreateLicenseRequest.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/license-manager/LicenseManagerRequest.h>
10#include <aws/license-manager/LicenseManager_EXPORTS.h>
11#include <aws/license-manager/model/ConsumptionConfiguration.h>
12#include <aws/license-manager/model/DatetimeRange.h>
13#include <aws/license-manager/model/Entitlement.h>
14#include <aws/license-manager/model/Issuer.h>
15#include <aws/license-manager/model/Metadata.h>
16#include <aws/license-manager/model/Tag.h>
17
18#include <utility>
19
20namespace Aws {
21namespace LicenseManager {
22namespace Model {
23
27 public:
28 AWS_LICENSEMANAGER_API CreateLicenseRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateLicense"; }
35
36 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
37
38 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
41
44 inline const Aws::String& GetLicenseName() const { return m_licenseName; }
45 inline bool LicenseNameHasBeenSet() const { return m_licenseNameHasBeenSet; }
46 template <typename LicenseNameT = Aws::String>
47 void SetLicenseName(LicenseNameT&& value) {
48 m_licenseNameHasBeenSet = true;
49 m_licenseName = std::forward<LicenseNameT>(value);
50 }
51 template <typename LicenseNameT = Aws::String>
52 CreateLicenseRequest& WithLicenseName(LicenseNameT&& value) {
53 SetLicenseName(std::forward<LicenseNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetProductName() const { return m_productName; }
63 inline bool ProductNameHasBeenSet() const { return m_productNameHasBeenSet; }
64 template <typename ProductNameT = Aws::String>
65 void SetProductName(ProductNameT&& value) {
66 m_productNameHasBeenSet = true;
67 m_productName = std::forward<ProductNameT>(value);
68 }
69 template <typename ProductNameT = Aws::String>
70 CreateLicenseRequest& WithProductName(ProductNameT&& value) {
71 SetProductName(std::forward<ProductNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetProductSKU() const { return m_productSKU; }
81 inline bool ProductSKUHasBeenSet() const { return m_productSKUHasBeenSet; }
82 template <typename ProductSKUT = Aws::String>
83 void SetProductSKU(ProductSKUT&& value) {
84 m_productSKUHasBeenSet = true;
85 m_productSKU = std::forward<ProductSKUT>(value);
86 }
87 template <typename ProductSKUT = Aws::String>
88 CreateLicenseRequest& WithProductSKU(ProductSKUT&& value) {
89 SetProductSKU(std::forward<ProductSKUT>(value));
90 return *this;
91 }
93
95
98 inline const Issuer& GetIssuer() const { return m_issuer; }
99 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
100 template <typename IssuerT = Issuer>
101 void SetIssuer(IssuerT&& value) {
102 m_issuerHasBeenSet = true;
103 m_issuer = std::forward<IssuerT>(value);
104 }
105 template <typename IssuerT = Issuer>
107 SetIssuer(std::forward<IssuerT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetHomeRegion() const { return m_homeRegion; }
117 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
118 template <typename HomeRegionT = Aws::String>
119 void SetHomeRegion(HomeRegionT&& value) {
120 m_homeRegionHasBeenSet = true;
121 m_homeRegion = std::forward<HomeRegionT>(value);
122 }
123 template <typename HomeRegionT = Aws::String>
124 CreateLicenseRequest& WithHomeRegion(HomeRegionT&& value) {
125 SetHomeRegion(std::forward<HomeRegionT>(value));
126 return *this;
127 }
129
131
135 inline const DatetimeRange& GetValidity() const { return m_validity; }
136 inline bool ValidityHasBeenSet() const { return m_validityHasBeenSet; }
137 template <typename ValidityT = DatetimeRange>
138 void SetValidity(ValidityT&& value) {
139 m_validityHasBeenSet = true;
140 m_validity = std::forward<ValidityT>(value);
141 }
142 template <typename ValidityT = DatetimeRange>
143 CreateLicenseRequest& WithValidity(ValidityT&& value) {
144 SetValidity(std::forward<ValidityT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Vector<Entitlement>& GetEntitlements() const { return m_entitlements; }
154 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
155 template <typename EntitlementsT = Aws::Vector<Entitlement>>
156 void SetEntitlements(EntitlementsT&& value) {
157 m_entitlementsHasBeenSet = true;
158 m_entitlements = std::forward<EntitlementsT>(value);
159 }
160 template <typename EntitlementsT = Aws::Vector<Entitlement>>
161 CreateLicenseRequest& WithEntitlements(EntitlementsT&& value) {
162 SetEntitlements(std::forward<EntitlementsT>(value));
163 return *this;
164 }
165 template <typename EntitlementsT = Entitlement>
166 CreateLicenseRequest& AddEntitlements(EntitlementsT&& value) {
167 m_entitlementsHasBeenSet = true;
168 m_entitlements.emplace_back(std::forward<EntitlementsT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetBeneficiary() const { return m_beneficiary; }
178 inline bool BeneficiaryHasBeenSet() const { return m_beneficiaryHasBeenSet; }
179 template <typename BeneficiaryT = Aws::String>
180 void SetBeneficiary(BeneficiaryT&& value) {
181 m_beneficiaryHasBeenSet = true;
182 m_beneficiary = std::forward<BeneficiaryT>(value);
183 }
184 template <typename BeneficiaryT = Aws::String>
185 CreateLicenseRequest& WithBeneficiary(BeneficiaryT&& value) {
186 SetBeneficiary(std::forward<BeneficiaryT>(value));
187 return *this;
188 }
190
192
197 inline const ConsumptionConfiguration& GetConsumptionConfiguration() const { return m_consumptionConfiguration; }
198 inline bool ConsumptionConfigurationHasBeenSet() const { return m_consumptionConfigurationHasBeenSet; }
199 template <typename ConsumptionConfigurationT = ConsumptionConfiguration>
200 void SetConsumptionConfiguration(ConsumptionConfigurationT&& value) {
201 m_consumptionConfigurationHasBeenSet = true;
202 m_consumptionConfiguration = std::forward<ConsumptionConfigurationT>(value);
203 }
204 template <typename ConsumptionConfigurationT = ConsumptionConfiguration>
205 CreateLicenseRequest& WithConsumptionConfiguration(ConsumptionConfigurationT&& value) {
206 SetConsumptionConfiguration(std::forward<ConsumptionConfigurationT>(value));
207 return *this;
208 }
210
212
215 inline const Aws::Vector<Metadata>& GetLicenseMetadata() const { return m_licenseMetadata; }
216 inline bool LicenseMetadataHasBeenSet() const { return m_licenseMetadataHasBeenSet; }
217 template <typename LicenseMetadataT = Aws::Vector<Metadata>>
218 void SetLicenseMetadata(LicenseMetadataT&& value) {
219 m_licenseMetadataHasBeenSet = true;
220 m_licenseMetadata = std::forward<LicenseMetadataT>(value);
221 }
222 template <typename LicenseMetadataT = Aws::Vector<Metadata>>
223 CreateLicenseRequest& WithLicenseMetadata(LicenseMetadataT&& value) {
224 SetLicenseMetadata(std::forward<LicenseMetadataT>(value));
225 return *this;
226 }
227 template <typename LicenseMetadataT = Metadata>
228 CreateLicenseRequest& AddLicenseMetadata(LicenseMetadataT&& value) {
229 m_licenseMetadataHasBeenSet = true;
230 m_licenseMetadata.emplace_back(std::forward<LicenseMetadataT>(value));
231 return *this;
232 }
234
236
240 inline const Aws::String& GetClientToken() const { return m_clientToken; }
241 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
242 template <typename ClientTokenT = Aws::String>
243 void SetClientToken(ClientTokenT&& value) {
244 m_clientTokenHasBeenSet = true;
245 m_clientToken = std::forward<ClientTokenT>(value);
246 }
247 template <typename ClientTokenT = Aws::String>
248 CreateLicenseRequest& WithClientToken(ClientTokenT&& value) {
249 SetClientToken(std::forward<ClientTokenT>(value));
250 return *this;
251 }
253
255
261 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
262 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
263 template <typename TagsT = Aws::Vector<Tag>>
264 void SetTags(TagsT&& value) {
265 m_tagsHasBeenSet = true;
266 m_tags = std::forward<TagsT>(value);
267 }
268 template <typename TagsT = Aws::Vector<Tag>>
270 SetTags(std::forward<TagsT>(value));
271 return *this;
272 }
273 template <typename TagsT = Tag>
275 m_tagsHasBeenSet = true;
276 m_tags.emplace_back(std::forward<TagsT>(value));
277 return *this;
278 }
280 private:
281 Aws::String m_licenseName;
282 bool m_licenseNameHasBeenSet = false;
283
284 Aws::String m_productName;
285 bool m_productNameHasBeenSet = false;
286
287 Aws::String m_productSKU;
288 bool m_productSKUHasBeenSet = false;
289
290 Issuer m_issuer;
291 bool m_issuerHasBeenSet = false;
292
293 Aws::String m_homeRegion;
294 bool m_homeRegionHasBeenSet = false;
295
296 DatetimeRange m_validity;
297 bool m_validityHasBeenSet = false;
298
299 Aws::Vector<Entitlement> m_entitlements;
300 bool m_entitlementsHasBeenSet = false;
301
302 Aws::String m_beneficiary;
303 bool m_beneficiaryHasBeenSet = false;
304
305 ConsumptionConfiguration m_consumptionConfiguration;
306 bool m_consumptionConfigurationHasBeenSet = false;
307
308 Aws::Vector<Metadata> m_licenseMetadata;
309 bool m_licenseMetadataHasBeenSet = false;
310
311 Aws::String m_clientToken;
312 bool m_clientTokenHasBeenSet = false;
313
314 Aws::Vector<Tag> m_tags;
315 bool m_tagsHasBeenSet = false;
316};
317
318} // namespace Model
319} // namespace LicenseManager
320} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateLicenseRequest & WithProductSKU(ProductSKUT &&value)
CreateLicenseRequest & WithIssuer(IssuerT &&value)
CreateLicenseRequest & WithLicenseName(LicenseNameT &&value)
CreateLicenseRequest & WithTags(TagsT &&value)
CreateLicenseRequest & AddEntitlements(EntitlementsT &&value)
AWS_LICENSEMANAGER_API CreateLicenseRequest()=default
CreateLicenseRequest & WithBeneficiary(BeneficiaryT &&value)
const Aws::Vector< Metadata > & GetLicenseMetadata() const
CreateLicenseRequest & WithLicenseMetadata(LicenseMetadataT &&value)
CreateLicenseRequest & WithHomeRegion(HomeRegionT &&value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
CreateLicenseRequest & WithProductName(ProductNameT &&value)
CreateLicenseRequest & WithEntitlements(EntitlementsT &&value)
const ConsumptionConfiguration & GetConsumptionConfiguration() const
CreateLicenseRequest & AddTags(TagsT &&value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Entitlement > & GetEntitlements() const
CreateLicenseRequest & WithClientToken(ClientTokenT &&value)
CreateLicenseRequest & WithConsumptionConfiguration(ConsumptionConfigurationT &&value)
void SetConsumptionConfiguration(ConsumptionConfigurationT &&value)
CreateLicenseRequest & WithValidity(ValidityT &&value)
CreateLicenseRequest & AddLicenseMetadata(LicenseMetadataT &&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