AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLicenseArn(const Aws::String& value) { m_licenseArnHasBeenSet = true; m_licenseArn = value; }
51 inline void SetLicenseArn(Aws::String&& value) { m_licenseArnHasBeenSet = true; m_licenseArn = std::move(value); }
52 inline void SetLicenseArn(const char* value) { m_licenseArnHasBeenSet = true; m_licenseArn.assign(value); }
53 inline CreateLicenseVersionRequest& WithLicenseArn(const Aws::String& value) { SetLicenseArn(value); return *this;}
54 inline CreateLicenseVersionRequest& WithLicenseArn(Aws::String&& value) { SetLicenseArn(std::move(value)); return *this;}
55 inline CreateLicenseVersionRequest& WithLicenseArn(const char* value) { SetLicenseArn(value); return *this;}
57
59
62 inline const Aws::String& GetLicenseName() const{ return m_licenseName; }
63 inline bool LicenseNameHasBeenSet() const { return m_licenseNameHasBeenSet; }
64 inline void SetLicenseName(const Aws::String& value) { m_licenseNameHasBeenSet = true; m_licenseName = value; }
65 inline void SetLicenseName(Aws::String&& value) { m_licenseNameHasBeenSet = true; m_licenseName = std::move(value); }
66 inline void SetLicenseName(const char* value) { m_licenseNameHasBeenSet = true; m_licenseName.assign(value); }
67 inline CreateLicenseVersionRequest& WithLicenseName(const Aws::String& value) { SetLicenseName(value); return *this;}
68 inline CreateLicenseVersionRequest& WithLicenseName(Aws::String&& value) { SetLicenseName(std::move(value)); return *this;}
69 inline CreateLicenseVersionRequest& WithLicenseName(const char* value) { SetLicenseName(value); return *this;}
71
73
76 inline const Aws::String& GetProductName() const{ return m_productName; }
77 inline bool ProductNameHasBeenSet() const { return m_productNameHasBeenSet; }
78 inline void SetProductName(const Aws::String& value) { m_productNameHasBeenSet = true; m_productName = value; }
79 inline void SetProductName(Aws::String&& value) { m_productNameHasBeenSet = true; m_productName = std::move(value); }
80 inline void SetProductName(const char* value) { m_productNameHasBeenSet = true; m_productName.assign(value); }
81 inline CreateLicenseVersionRequest& WithProductName(const Aws::String& value) { SetProductName(value); return *this;}
82 inline CreateLicenseVersionRequest& WithProductName(Aws::String&& value) { SetProductName(std::move(value)); return *this;}
83 inline CreateLicenseVersionRequest& WithProductName(const char* value) { SetProductName(value); return *this;}
85
87
90 inline const Issuer& GetIssuer() const{ return m_issuer; }
91 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
92 inline void SetIssuer(const Issuer& value) { m_issuerHasBeenSet = true; m_issuer = value; }
93 inline void SetIssuer(Issuer&& value) { m_issuerHasBeenSet = true; m_issuer = std::move(value); }
94 inline CreateLicenseVersionRequest& WithIssuer(const Issuer& value) { SetIssuer(value); return *this;}
95 inline CreateLicenseVersionRequest& WithIssuer(Issuer&& value) { SetIssuer(std::move(value)); return *this;}
97
99
102 inline const Aws::String& GetHomeRegion() const{ return m_homeRegion; }
103 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
104 inline void SetHomeRegion(const Aws::String& value) { m_homeRegionHasBeenSet = true; m_homeRegion = value; }
105 inline void SetHomeRegion(Aws::String&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::move(value); }
106 inline void SetHomeRegion(const char* value) { m_homeRegionHasBeenSet = true; m_homeRegion.assign(value); }
107 inline CreateLicenseVersionRequest& WithHomeRegion(const Aws::String& value) { SetHomeRegion(value); return *this;}
108 inline CreateLicenseVersionRequest& WithHomeRegion(Aws::String&& value) { SetHomeRegion(std::move(value)); return *this;}
109 inline CreateLicenseVersionRequest& WithHomeRegion(const char* value) { SetHomeRegion(value); return *this;}
111
113
117 inline const DatetimeRange& GetValidity() const{ return m_validity; }
118 inline bool ValidityHasBeenSet() const { return m_validityHasBeenSet; }
119 inline void SetValidity(const DatetimeRange& value) { m_validityHasBeenSet = true; m_validity = value; }
120 inline void SetValidity(DatetimeRange&& value) { m_validityHasBeenSet = true; m_validity = std::move(value); }
121 inline CreateLicenseVersionRequest& WithValidity(const DatetimeRange& value) { SetValidity(value); return *this;}
122 inline CreateLicenseVersionRequest& WithValidity(DatetimeRange&& value) { SetValidity(std::move(value)); return *this;}
124
126
129 inline const Aws::Vector<Metadata>& GetLicenseMetadata() const{ return m_licenseMetadata; }
130 inline bool LicenseMetadataHasBeenSet() const { return m_licenseMetadataHasBeenSet; }
131 inline void SetLicenseMetadata(const Aws::Vector<Metadata>& value) { m_licenseMetadataHasBeenSet = true; m_licenseMetadata = value; }
132 inline void SetLicenseMetadata(Aws::Vector<Metadata>&& value) { m_licenseMetadataHasBeenSet = true; m_licenseMetadata = std::move(value); }
135 inline CreateLicenseVersionRequest& AddLicenseMetadata(const Metadata& value) { m_licenseMetadataHasBeenSet = true; m_licenseMetadata.push_back(value); return *this; }
136 inline CreateLicenseVersionRequest& AddLicenseMetadata(Metadata&& value) { m_licenseMetadataHasBeenSet = true; m_licenseMetadata.push_back(std::move(value)); return *this; }
138
140
143 inline const Aws::Vector<Entitlement>& GetEntitlements() const{ return m_entitlements; }
144 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
145 inline void SetEntitlements(const Aws::Vector<Entitlement>& value) { m_entitlementsHasBeenSet = true; m_entitlements = value; }
146 inline void SetEntitlements(Aws::Vector<Entitlement>&& value) { m_entitlementsHasBeenSet = true; m_entitlements = std::move(value); }
149 inline CreateLicenseVersionRequest& AddEntitlements(const Entitlement& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(value); return *this; }
150 inline CreateLicenseVersionRequest& AddEntitlements(Entitlement&& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(std::move(value)); return *this; }
152
154
159 inline const ConsumptionConfiguration& GetConsumptionConfiguration() const{ return m_consumptionConfiguration; }
160 inline bool ConsumptionConfigurationHasBeenSet() const { return m_consumptionConfigurationHasBeenSet; }
161 inline void SetConsumptionConfiguration(const ConsumptionConfiguration& value) { m_consumptionConfigurationHasBeenSet = true; m_consumptionConfiguration = value; }
162 inline void SetConsumptionConfiguration(ConsumptionConfiguration&& value) { m_consumptionConfigurationHasBeenSet = true; m_consumptionConfiguration = std::move(value); }
166
168
171 inline const LicenseStatus& GetStatus() const{ return m_status; }
172 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
173 inline void SetStatus(const LicenseStatus& value) { m_statusHasBeenSet = true; m_status = value; }
174 inline void SetStatus(LicenseStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
175 inline CreateLicenseVersionRequest& WithStatus(const LicenseStatus& value) { SetStatus(value); return *this;}
176 inline CreateLicenseVersionRequest& WithStatus(LicenseStatus&& value) { SetStatus(std::move(value)); return *this;}
178
180
184 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
185 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
186 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
187 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
188 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
189 inline CreateLicenseVersionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
190 inline CreateLicenseVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
191 inline CreateLicenseVersionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
193
195
198 inline const Aws::String& GetSourceVersion() const{ return m_sourceVersion; }
199 inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; }
200 inline void SetSourceVersion(const Aws::String& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = value; }
201 inline void SetSourceVersion(Aws::String&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::move(value); }
202 inline void SetSourceVersion(const char* value) { m_sourceVersionHasBeenSet = true; m_sourceVersion.assign(value); }
203 inline CreateLicenseVersionRequest& WithSourceVersion(const Aws::String& value) { SetSourceVersion(value); return *this;}
204 inline CreateLicenseVersionRequest& WithSourceVersion(Aws::String&& value) { SetSourceVersion(std::move(value)); return *this;}
205 inline CreateLicenseVersionRequest& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;}
207 private:
208
209 Aws::String m_licenseArn;
210 bool m_licenseArnHasBeenSet = false;
211
212 Aws::String m_licenseName;
213 bool m_licenseNameHasBeenSet = false;
214
215 Aws::String m_productName;
216 bool m_productNameHasBeenSet = false;
217
218 Issuer m_issuer;
219 bool m_issuerHasBeenSet = false;
220
221 Aws::String m_homeRegion;
222 bool m_homeRegionHasBeenSet = false;
223
224 DatetimeRange m_validity;
225 bool m_validityHasBeenSet = false;
226
227 Aws::Vector<Metadata> m_licenseMetadata;
228 bool m_licenseMetadataHasBeenSet = false;
229
230 Aws::Vector<Entitlement> m_entitlements;
231 bool m_entitlementsHasBeenSet = false;
232
233 ConsumptionConfiguration m_consumptionConfiguration;
234 bool m_consumptionConfigurationHasBeenSet = false;
235
236 LicenseStatus m_status;
237 bool m_statusHasBeenSet = false;
238
239 Aws::String m_clientToken;
240 bool m_clientTokenHasBeenSet = false;
241
242 Aws::String m_sourceVersion;
243 bool m_sourceVersionHasBeenSet = false;
244 };
245
246} // namespace Model
247} // namespace LicenseManager
248} // namespace Aws
CreateLicenseVersionRequest & WithEntitlements(Aws::Vector< Entitlement > &&value)
CreateLicenseVersionRequest & WithClientToken(const Aws::String &value)
CreateLicenseVersionRequest & WithConsumptionConfiguration(const ConsumptionConfiguration &value)
CreateLicenseVersionRequest & WithLicenseMetadata(const Aws::Vector< Metadata > &value)
CreateLicenseVersionRequest & WithValidity(const DatetimeRange &value)
const ConsumptionConfiguration & GetConsumptionConfiguration() const
CreateLicenseVersionRequest & WithConsumptionConfiguration(ConsumptionConfiguration &&value)
CreateLicenseVersionRequest & WithIssuer(Issuer &&value)
CreateLicenseVersionRequest & WithSourceVersion(Aws::String &&value)
CreateLicenseVersionRequest & WithValidity(DatetimeRange &&value)
CreateLicenseVersionRequest & WithStatus(LicenseStatus &&value)
void SetLicenseMetadata(const Aws::Vector< Metadata > &value)
CreateLicenseVersionRequest & AddLicenseMetadata(const Metadata &value)
CreateLicenseVersionRequest & WithIssuer(const Issuer &value)
CreateLicenseVersionRequest & WithEntitlements(const Aws::Vector< Entitlement > &value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
CreateLicenseVersionRequest & WithLicenseArn(const char *value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLicenseVersionRequest & WithHomeRegion(Aws::String &&value)
CreateLicenseVersionRequest & AddLicenseMetadata(Metadata &&value)
CreateLicenseVersionRequest & WithHomeRegion(const char *value)
CreateLicenseVersionRequest & WithStatus(const LicenseStatus &value)
CreateLicenseVersionRequest & AddEntitlements(Entitlement &&value)
CreateLicenseVersionRequest & WithProductName(const char *value)
CreateLicenseVersionRequest & WithLicenseMetadata(Aws::Vector< Metadata > &&value)
CreateLicenseVersionRequest & WithLicenseName(Aws::String &&value)
CreateLicenseVersionRequest & WithProductName(const Aws::String &value)
CreateLicenseVersionRequest & WithHomeRegion(const Aws::String &value)
CreateLicenseVersionRequest & AddEntitlements(const Entitlement &value)
CreateLicenseVersionRequest & WithLicenseName(const Aws::String &value)
CreateLicenseVersionRequest & WithSourceVersion(const char *value)
CreateLicenseVersionRequest & WithSourceVersion(const Aws::String &value)
CreateLicenseVersionRequest & WithLicenseArn(const Aws::String &value)
CreateLicenseVersionRequest & WithProductName(Aws::String &&value)
CreateLicenseVersionRequest & WithClientToken(const char *value)
void SetEntitlements(const Aws::Vector< Entitlement > &value)
void SetConsumptionConfiguration(const ConsumptionConfiguration &value)
CreateLicenseVersionRequest & WithLicenseName(const char *value)
CreateLicenseVersionRequest & WithLicenseArn(Aws::String &&value)
CreateLicenseVersionRequest & WithClientToken(Aws::String &&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