AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateLicenseRequest.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/license-manager/LicenseManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/license-manager/model/Issuer.h>
11#include <aws/license-manager/model/DatetimeRange.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/license-manager/model/ConsumptionConfiguration.h>
14#include <aws/license-manager/model/Entitlement.h>
15#include <aws/license-manager/model/Metadata.h>
16#include <aws/license-manager/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21namespace LicenseManager
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_LICENSEMANAGER_API CreateLicenseRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateLicense"; }
38
39 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
40
41 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
48 inline const Aws::String& GetLicenseName() const { return m_licenseName; }
49 inline bool LicenseNameHasBeenSet() const { return m_licenseNameHasBeenSet; }
50 template<typename LicenseNameT = Aws::String>
51 void SetLicenseName(LicenseNameT&& value) { m_licenseNameHasBeenSet = true; m_licenseName = std::forward<LicenseNameT>(value); }
52 template<typename LicenseNameT = Aws::String>
53 CreateLicenseRequest& WithLicenseName(LicenseNameT&& value) { SetLicenseName(std::forward<LicenseNameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetProductName() const { return m_productName; }
61 inline bool ProductNameHasBeenSet() const { return m_productNameHasBeenSet; }
62 template<typename ProductNameT = Aws::String>
63 void SetProductName(ProductNameT&& value) { m_productNameHasBeenSet = true; m_productName = std::forward<ProductNameT>(value); }
64 template<typename ProductNameT = Aws::String>
65 CreateLicenseRequest& WithProductName(ProductNameT&& value) { SetProductName(std::forward<ProductNameT>(value)); return *this;}
67
69
72 inline const Aws::String& GetProductSKU() const { return m_productSKU; }
73 inline bool ProductSKUHasBeenSet() const { return m_productSKUHasBeenSet; }
74 template<typename ProductSKUT = Aws::String>
75 void SetProductSKU(ProductSKUT&& value) { m_productSKUHasBeenSet = true; m_productSKU = std::forward<ProductSKUT>(value); }
76 template<typename ProductSKUT = Aws::String>
77 CreateLicenseRequest& WithProductSKU(ProductSKUT&& value) { SetProductSKU(std::forward<ProductSKUT>(value)); return *this;}
79
81
84 inline const Issuer& GetIssuer() const { return m_issuer; }
85 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
86 template<typename IssuerT = Issuer>
87 void SetIssuer(IssuerT&& value) { m_issuerHasBeenSet = true; m_issuer = std::forward<IssuerT>(value); }
88 template<typename IssuerT = Issuer>
89 CreateLicenseRequest& WithIssuer(IssuerT&& value) { SetIssuer(std::forward<IssuerT>(value)); return *this;}
91
93
96 inline const Aws::String& GetHomeRegion() const { return m_homeRegion; }
97 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
98 template<typename HomeRegionT = Aws::String>
99 void SetHomeRegion(HomeRegionT&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::forward<HomeRegionT>(value); }
100 template<typename HomeRegionT = Aws::String>
101 CreateLicenseRequest& WithHomeRegion(HomeRegionT&& value) { SetHomeRegion(std::forward<HomeRegionT>(value)); return *this;}
103
105
109 inline const DatetimeRange& GetValidity() const { return m_validity; }
110 inline bool ValidityHasBeenSet() const { return m_validityHasBeenSet; }
111 template<typename ValidityT = DatetimeRange>
112 void SetValidity(ValidityT&& value) { m_validityHasBeenSet = true; m_validity = std::forward<ValidityT>(value); }
113 template<typename ValidityT = DatetimeRange>
114 CreateLicenseRequest& WithValidity(ValidityT&& value) { SetValidity(std::forward<ValidityT>(value)); return *this;}
116
118
121 inline const Aws::Vector<Entitlement>& GetEntitlements() const { return m_entitlements; }
122 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
123 template<typename EntitlementsT = Aws::Vector<Entitlement>>
124 void SetEntitlements(EntitlementsT&& value) { m_entitlementsHasBeenSet = true; m_entitlements = std::forward<EntitlementsT>(value); }
125 template<typename EntitlementsT = Aws::Vector<Entitlement>>
126 CreateLicenseRequest& WithEntitlements(EntitlementsT&& value) { SetEntitlements(std::forward<EntitlementsT>(value)); return *this;}
127 template<typename EntitlementsT = Entitlement>
128 CreateLicenseRequest& AddEntitlements(EntitlementsT&& value) { m_entitlementsHasBeenSet = true; m_entitlements.emplace_back(std::forward<EntitlementsT>(value)); return *this; }
130
132
135 inline const Aws::String& GetBeneficiary() const { return m_beneficiary; }
136 inline bool BeneficiaryHasBeenSet() const { return m_beneficiaryHasBeenSet; }
137 template<typename BeneficiaryT = Aws::String>
138 void SetBeneficiary(BeneficiaryT&& value) { m_beneficiaryHasBeenSet = true; m_beneficiary = std::forward<BeneficiaryT>(value); }
139 template<typename BeneficiaryT = Aws::String>
140 CreateLicenseRequest& WithBeneficiary(BeneficiaryT&& value) { SetBeneficiary(std::forward<BeneficiaryT>(value)); return *this;}
142
144
149 inline const ConsumptionConfiguration& GetConsumptionConfiguration() const { return m_consumptionConfiguration; }
150 inline bool ConsumptionConfigurationHasBeenSet() const { return m_consumptionConfigurationHasBeenSet; }
151 template<typename ConsumptionConfigurationT = ConsumptionConfiguration>
152 void SetConsumptionConfiguration(ConsumptionConfigurationT&& value) { m_consumptionConfigurationHasBeenSet = true; m_consumptionConfiguration = std::forward<ConsumptionConfigurationT>(value); }
153 template<typename ConsumptionConfigurationT = ConsumptionConfiguration>
154 CreateLicenseRequest& WithConsumptionConfiguration(ConsumptionConfigurationT&& value) { SetConsumptionConfiguration(std::forward<ConsumptionConfigurationT>(value)); return *this;}
156
158
161 inline const Aws::Vector<Metadata>& GetLicenseMetadata() const { return m_licenseMetadata; }
162 inline bool LicenseMetadataHasBeenSet() const { return m_licenseMetadataHasBeenSet; }
163 template<typename LicenseMetadataT = Aws::Vector<Metadata>>
164 void SetLicenseMetadata(LicenseMetadataT&& value) { m_licenseMetadataHasBeenSet = true; m_licenseMetadata = std::forward<LicenseMetadataT>(value); }
165 template<typename LicenseMetadataT = Aws::Vector<Metadata>>
166 CreateLicenseRequest& WithLicenseMetadata(LicenseMetadataT&& value) { SetLicenseMetadata(std::forward<LicenseMetadataT>(value)); return *this;}
167 template<typename LicenseMetadataT = Metadata>
168 CreateLicenseRequest& AddLicenseMetadata(LicenseMetadataT&& value) { m_licenseMetadataHasBeenSet = true; m_licenseMetadata.emplace_back(std::forward<LicenseMetadataT>(value)); return *this; }
170
172
176 inline const Aws::String& GetClientToken() const { return m_clientToken; }
177 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
178 template<typename ClientTokenT = Aws::String>
179 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
180 template<typename ClientTokenT = Aws::String>
181 CreateLicenseRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
183
185
191 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
192 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
193 template<typename TagsT = Aws::Vector<Tag>>
194 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
195 template<typename TagsT = Aws::Vector<Tag>>
196 CreateLicenseRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
197 template<typename TagsT = Tag>
198 CreateLicenseRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
200 private:
201
202 Aws::String m_licenseName;
203 bool m_licenseNameHasBeenSet = false;
204
205 Aws::String m_productName;
206 bool m_productNameHasBeenSet = false;
207
208 Aws::String m_productSKU;
209 bool m_productSKUHasBeenSet = false;
210
211 Issuer m_issuer;
212 bool m_issuerHasBeenSet = false;
213
214 Aws::String m_homeRegion;
215 bool m_homeRegionHasBeenSet = false;
216
217 DatetimeRange m_validity;
218 bool m_validityHasBeenSet = false;
219
220 Aws::Vector<Entitlement> m_entitlements;
221 bool m_entitlementsHasBeenSet = false;
222
223 Aws::String m_beneficiary;
224 bool m_beneficiaryHasBeenSet = false;
225
226 ConsumptionConfiguration m_consumptionConfiguration;
227 bool m_consumptionConfigurationHasBeenSet = false;
228
229 Aws::Vector<Metadata> m_licenseMetadata;
230 bool m_licenseMetadataHasBeenSet = false;
231
232 Aws::String m_clientToken;
233 bool m_clientTokenHasBeenSet = false;
234
235 Aws::Vector<Tag> m_tags;
236 bool m_tagsHasBeenSet = false;
237 };
238
239} // namespace Model
240} // namespace LicenseManager
241} // 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