AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateLicenseVersionRequest.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/LicenseStatus.h>
15#include <aws/license-manager/model/Metadata.h>
16#include <aws/license-manager/model/Entitlement.h>
17#include <utility>
18
19namespace Aws
20{
21namespace LicenseManager
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_LICENSEMANAGER_API CreateLicenseVersionRequest() = 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 "CreateLicenseVersion"; }
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& GetLicenseArn() const { return m_licenseArn; }
49 inline bool LicenseArnHasBeenSet() const { return m_licenseArnHasBeenSet; }
50 template<typename LicenseArnT = Aws::String>
51 void SetLicenseArn(LicenseArnT&& value) { m_licenseArnHasBeenSet = true; m_licenseArn = std::forward<LicenseArnT>(value); }
52 template<typename LicenseArnT = Aws::String>
53 CreateLicenseVersionRequest& WithLicenseArn(LicenseArnT&& value) { SetLicenseArn(std::forward<LicenseArnT>(value)); return *this;}
55
57
60 inline const Aws::String& GetLicenseName() const { return m_licenseName; }
61 inline bool LicenseNameHasBeenSet() const { return m_licenseNameHasBeenSet; }
62 template<typename LicenseNameT = Aws::String>
63 void SetLicenseName(LicenseNameT&& value) { m_licenseNameHasBeenSet = true; m_licenseName = std::forward<LicenseNameT>(value); }
64 template<typename LicenseNameT = Aws::String>
65 CreateLicenseVersionRequest& WithLicenseName(LicenseNameT&& value) { SetLicenseName(std::forward<LicenseNameT>(value)); return *this;}
67
69
72 inline const Aws::String& GetProductName() const { return m_productName; }
73 inline bool ProductNameHasBeenSet() const { return m_productNameHasBeenSet; }
74 template<typename ProductNameT = Aws::String>
75 void SetProductName(ProductNameT&& value) { m_productNameHasBeenSet = true; m_productName = std::forward<ProductNameT>(value); }
76 template<typename ProductNameT = Aws::String>
77 CreateLicenseVersionRequest& WithProductName(ProductNameT&& value) { SetProductName(std::forward<ProductNameT>(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 CreateLicenseVersionRequest& 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 CreateLicenseVersionRequest& 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 CreateLicenseVersionRequest& WithValidity(ValidityT&& value) { SetValidity(std::forward<ValidityT>(value)); return *this;}
116
118
121 inline const Aws::Vector<Metadata>& GetLicenseMetadata() const { return m_licenseMetadata; }
122 inline bool LicenseMetadataHasBeenSet() const { return m_licenseMetadataHasBeenSet; }
123 template<typename LicenseMetadataT = Aws::Vector<Metadata>>
124 void SetLicenseMetadata(LicenseMetadataT&& value) { m_licenseMetadataHasBeenSet = true; m_licenseMetadata = std::forward<LicenseMetadataT>(value); }
125 template<typename LicenseMetadataT = Aws::Vector<Metadata>>
126 CreateLicenseVersionRequest& WithLicenseMetadata(LicenseMetadataT&& value) { SetLicenseMetadata(std::forward<LicenseMetadataT>(value)); return *this;}
127 template<typename LicenseMetadataT = Metadata>
128 CreateLicenseVersionRequest& AddLicenseMetadata(LicenseMetadataT&& value) { m_licenseMetadataHasBeenSet = true; m_licenseMetadata.emplace_back(std::forward<LicenseMetadataT>(value)); return *this; }
130
132
135 inline const Aws::Vector<Entitlement>& GetEntitlements() const { return m_entitlements; }
136 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
137 template<typename EntitlementsT = Aws::Vector<Entitlement>>
138 void SetEntitlements(EntitlementsT&& value) { m_entitlementsHasBeenSet = true; m_entitlements = std::forward<EntitlementsT>(value); }
139 template<typename EntitlementsT = Aws::Vector<Entitlement>>
140 CreateLicenseVersionRequest& WithEntitlements(EntitlementsT&& value) { SetEntitlements(std::forward<EntitlementsT>(value)); return *this;}
141 template<typename EntitlementsT = Entitlement>
142 CreateLicenseVersionRequest& AddEntitlements(EntitlementsT&& value) { m_entitlementsHasBeenSet = true; m_entitlements.emplace_back(std::forward<EntitlementsT>(value)); return *this; }
144
146
151 inline const ConsumptionConfiguration& GetConsumptionConfiguration() const { return m_consumptionConfiguration; }
152 inline bool ConsumptionConfigurationHasBeenSet() const { return m_consumptionConfigurationHasBeenSet; }
153 template<typename ConsumptionConfigurationT = ConsumptionConfiguration>
154 void SetConsumptionConfiguration(ConsumptionConfigurationT&& value) { m_consumptionConfigurationHasBeenSet = true; m_consumptionConfiguration = std::forward<ConsumptionConfigurationT>(value); }
155 template<typename ConsumptionConfigurationT = ConsumptionConfiguration>
156 CreateLicenseVersionRequest& WithConsumptionConfiguration(ConsumptionConfigurationT&& value) { SetConsumptionConfiguration(std::forward<ConsumptionConfigurationT>(value)); return *this;}
158
160
163 inline LicenseStatus GetStatus() const { return m_status; }
164 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
165 inline void SetStatus(LicenseStatus value) { m_statusHasBeenSet = true; m_status = value; }
166 inline CreateLicenseVersionRequest& WithStatus(LicenseStatus value) { SetStatus(value); return *this;}
168
170
174 inline const Aws::String& GetClientToken() const { return m_clientToken; }
175 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
176 template<typename ClientTokenT = Aws::String>
177 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
178 template<typename ClientTokenT = Aws::String>
179 CreateLicenseVersionRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
181
183
186 inline const Aws::String& GetSourceVersion() const { return m_sourceVersion; }
187 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
188 template<typename SourceVersionT = Aws::String>
189 void SetSourceVersion(SourceVersionT&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::forward<SourceVersionT>(value); }
190 template<typename SourceVersionT = Aws::String>
191 CreateLicenseVersionRequest& WithSourceVersion(SourceVersionT&& value) { SetSourceVersion(std::forward<SourceVersionT>(value)); return *this;}
193 private:
194
195 Aws::String m_licenseArn;
196 bool m_licenseArnHasBeenSet = false;
197
198 Aws::String m_licenseName;
199 bool m_licenseNameHasBeenSet = false;
200
201 Aws::String m_productName;
202 bool m_productNameHasBeenSet = false;
203
204 Issuer m_issuer;
205 bool m_issuerHasBeenSet = false;
206
207 Aws::String m_homeRegion;
208 bool m_homeRegionHasBeenSet = false;
209
210 DatetimeRange m_validity;
211 bool m_validityHasBeenSet = false;
212
213 Aws::Vector<Metadata> m_licenseMetadata;
214 bool m_licenseMetadataHasBeenSet = false;
215
216 Aws::Vector<Entitlement> m_entitlements;
217 bool m_entitlementsHasBeenSet = false;
218
219 ConsumptionConfiguration m_consumptionConfiguration;
220 bool m_consumptionConfigurationHasBeenSet = false;
221
223 bool m_statusHasBeenSet = false;
224
225 Aws::String m_clientToken;
226 bool m_clientTokenHasBeenSet = false;
227
228 Aws::String m_sourceVersion;
229 bool m_sourceVersionHasBeenSet = false;
230 };
231
232} // namespace Model
233} // namespace LicenseManager
234} // 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