AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
CreateLicenseVersionRequest.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/LicenseStatus.h>
16#include <aws/license-manager/model/Metadata.h>
17
18#include <utility>
19
20namespace Aws {
21namespace LicenseManager {
22namespace Model {
23
27 public:
28 AWS_LICENSEMANAGER_API CreateLicenseVersionRequest() = 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 "CreateLicenseVersion"; }
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& GetLicenseArn() const { return m_licenseArn; }
45 inline bool LicenseArnHasBeenSet() const { return m_licenseArnHasBeenSet; }
46 template <typename LicenseArnT = Aws::String>
47 void SetLicenseArn(LicenseArnT&& value) {
48 m_licenseArnHasBeenSet = true;
49 m_licenseArn = std::forward<LicenseArnT>(value);
50 }
51 template <typename LicenseArnT = Aws::String>
53 SetLicenseArn(std::forward<LicenseArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetLicenseName() const { return m_licenseName; }
63 inline bool LicenseNameHasBeenSet() const { return m_licenseNameHasBeenSet; }
64 template <typename LicenseNameT = Aws::String>
65 void SetLicenseName(LicenseNameT&& value) {
66 m_licenseNameHasBeenSet = true;
67 m_licenseName = std::forward<LicenseNameT>(value);
68 }
69 template <typename LicenseNameT = Aws::String>
71 SetLicenseName(std::forward<LicenseNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetProductName() const { return m_productName; }
81 inline bool ProductNameHasBeenSet() const { return m_productNameHasBeenSet; }
82 template <typename ProductNameT = Aws::String>
83 void SetProductName(ProductNameT&& value) {
84 m_productNameHasBeenSet = true;
85 m_productName = std::forward<ProductNameT>(value);
86 }
87 template <typename ProductNameT = Aws::String>
89 SetProductName(std::forward<ProductNameT>(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>
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>
144 SetValidity(std::forward<ValidityT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::Vector<Metadata>& GetLicenseMetadata() const { return m_licenseMetadata; }
154 inline bool LicenseMetadataHasBeenSet() const { return m_licenseMetadataHasBeenSet; }
155 template <typename LicenseMetadataT = Aws::Vector<Metadata>>
156 void SetLicenseMetadata(LicenseMetadataT&& value) {
157 m_licenseMetadataHasBeenSet = true;
158 m_licenseMetadata = std::forward<LicenseMetadataT>(value);
159 }
160 template <typename LicenseMetadataT = Aws::Vector<Metadata>>
162 SetLicenseMetadata(std::forward<LicenseMetadataT>(value));
163 return *this;
164 }
165 template <typename LicenseMetadataT = Metadata>
167 m_licenseMetadataHasBeenSet = true;
168 m_licenseMetadata.emplace_back(std::forward<LicenseMetadataT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::Vector<Entitlement>& GetEntitlements() const { return m_entitlements; }
178 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
179 template <typename EntitlementsT = Aws::Vector<Entitlement>>
180 void SetEntitlements(EntitlementsT&& value) {
181 m_entitlementsHasBeenSet = true;
182 m_entitlements = std::forward<EntitlementsT>(value);
183 }
184 template <typename EntitlementsT = Aws::Vector<Entitlement>>
186 SetEntitlements(std::forward<EntitlementsT>(value));
187 return *this;
188 }
189 template <typename EntitlementsT = Entitlement>
191 m_entitlementsHasBeenSet = true;
192 m_entitlements.emplace_back(std::forward<EntitlementsT>(value));
193 return *this;
194 }
196
198
203 inline const ConsumptionConfiguration& GetConsumptionConfiguration() const { return m_consumptionConfiguration; }
204 inline bool ConsumptionConfigurationHasBeenSet() const { return m_consumptionConfigurationHasBeenSet; }
205 template <typename ConsumptionConfigurationT = ConsumptionConfiguration>
206 void SetConsumptionConfiguration(ConsumptionConfigurationT&& value) {
207 m_consumptionConfigurationHasBeenSet = true;
208 m_consumptionConfiguration = std::forward<ConsumptionConfigurationT>(value);
209 }
210 template <typename ConsumptionConfigurationT = ConsumptionConfiguration>
211 CreateLicenseVersionRequest& WithConsumptionConfiguration(ConsumptionConfigurationT&& value) {
212 SetConsumptionConfiguration(std::forward<ConsumptionConfigurationT>(value));
213 return *this;
214 }
216
218
221 inline LicenseStatus GetStatus() const { return m_status; }
222 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
223 inline void SetStatus(LicenseStatus value) {
224 m_statusHasBeenSet = true;
225 m_status = value;
226 }
228 SetStatus(value);
229 return *this;
230 }
232
234
238 inline const Aws::String& GetClientToken() const { return m_clientToken; }
239 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
240 template <typename ClientTokenT = Aws::String>
241 void SetClientToken(ClientTokenT&& value) {
242 m_clientTokenHasBeenSet = true;
243 m_clientToken = std::forward<ClientTokenT>(value);
244 }
245 template <typename ClientTokenT = Aws::String>
247 SetClientToken(std::forward<ClientTokenT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
257 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
258 template <typename SourceVersionT = Aws::String>
259 void SetSourceVersion(SourceVersionT&& value) {
260 m_sourceVersionHasBeenSet = true;
261 m_sourceVersion = std::forward<SourceVersionT>(value);
262 }
263 template <typename SourceVersionT = Aws::String>
265 SetSourceVersion(std::forward<SourceVersionT>(value));
266 return *this;
267 }
269 private:
270 Aws::String m_licenseArn;
271 bool m_licenseArnHasBeenSet = false;
272
273 Aws::String m_licenseName;
274 bool m_licenseNameHasBeenSet = false;
275
276 Aws::String m_productName;
277 bool m_productNameHasBeenSet = false;
278
279 Issuer m_issuer;
280 bool m_issuerHasBeenSet = false;
281
282 Aws::String m_homeRegion;
283 bool m_homeRegionHasBeenSet = false;
284
285 DatetimeRange m_validity;
286 bool m_validityHasBeenSet = false;
287
288 Aws::Vector<Metadata> m_licenseMetadata;
289 bool m_licenseMetadataHasBeenSet = false;
290
291 Aws::Vector<Entitlement> m_entitlements;
292 bool m_entitlementsHasBeenSet = false;
293
294 ConsumptionConfiguration m_consumptionConfiguration;
295 bool m_consumptionConfigurationHasBeenSet = false;
296
298 bool m_statusHasBeenSet = false;
299
300 Aws::String m_clientToken;
301 bool m_clientTokenHasBeenSet = false;
302
303 Aws::String m_sourceVersion;
304 bool m_sourceVersionHasBeenSet = false;
305};
306
307} // namespace Model
308} // namespace LicenseManager
309} // namespace Aws
CreateLicenseVersionRequest & WithProductName(ProductNameT &&value)
const ConsumptionConfiguration & GetConsumptionConfiguration() const
void SetConsumptionConfiguration(ConsumptionConfigurationT &&value)
CreateLicenseVersionRequest & AddLicenseMetadata(LicenseMetadataT &&value)
AWS_LICENSEMANAGER_API CreateLicenseVersionRequest()=default
CreateLicenseVersionRequest & WithValidity(ValidityT &&value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
CreateLicenseVersionRequest & WithLicenseMetadata(LicenseMetadataT &&value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLicenseVersionRequest & WithConsumptionConfiguration(ConsumptionConfigurationT &&value)
CreateLicenseVersionRequest & WithClientToken(ClientTokenT &&value)
CreateLicenseVersionRequest & WithIssuer(IssuerT &&value)
CreateLicenseVersionRequest & AddEntitlements(EntitlementsT &&value)
CreateLicenseVersionRequest & WithLicenseName(LicenseNameT &&value)
CreateLicenseVersionRequest & WithStatus(LicenseStatus value)
CreateLicenseVersionRequest & WithHomeRegion(HomeRegionT &&value)
CreateLicenseVersionRequest & WithEntitlements(EntitlementsT &&value)
CreateLicenseVersionRequest & WithSourceVersion(SourceVersionT &&value)
CreateLicenseVersionRequest & WithLicenseArn(LicenseArnT &&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