AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
17
18namespace Aws
19{
20namespace LicenseManager
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_LICENSEMANAGER_API CreateLicenseRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateLicense"; }
37
38 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
39
40 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
41
42
44
47 inline const Aws::String& GetLicenseName() const{ return m_licenseName; }
48 inline bool LicenseNameHasBeenSet() const { return m_licenseNameHasBeenSet; }
49 inline void SetLicenseName(const Aws::String& value) { m_licenseNameHasBeenSet = true; m_licenseName = value; }
50 inline void SetLicenseName(Aws::String&& value) { m_licenseNameHasBeenSet = true; m_licenseName = std::move(value); }
51 inline void SetLicenseName(const char* value) { m_licenseNameHasBeenSet = true; m_licenseName.assign(value); }
52 inline CreateLicenseRequest& WithLicenseName(const Aws::String& value) { SetLicenseName(value); return *this;}
53 inline CreateLicenseRequest& WithLicenseName(Aws::String&& value) { SetLicenseName(std::move(value)); return *this;}
54 inline CreateLicenseRequest& WithLicenseName(const char* value) { SetLicenseName(value); return *this;}
56
58
61 inline const Aws::String& GetProductName() const{ return m_productName; }
62 inline bool ProductNameHasBeenSet() const { return m_productNameHasBeenSet; }
63 inline void SetProductName(const Aws::String& value) { m_productNameHasBeenSet = true; m_productName = value; }
64 inline void SetProductName(Aws::String&& value) { m_productNameHasBeenSet = true; m_productName = std::move(value); }
65 inline void SetProductName(const char* value) { m_productNameHasBeenSet = true; m_productName.assign(value); }
66 inline CreateLicenseRequest& WithProductName(const Aws::String& value) { SetProductName(value); return *this;}
67 inline CreateLicenseRequest& WithProductName(Aws::String&& value) { SetProductName(std::move(value)); return *this;}
68 inline CreateLicenseRequest& WithProductName(const char* value) { SetProductName(value); return *this;}
70
72
75 inline const Aws::String& GetProductSKU() const{ return m_productSKU; }
76 inline bool ProductSKUHasBeenSet() const { return m_productSKUHasBeenSet; }
77 inline void SetProductSKU(const Aws::String& value) { m_productSKUHasBeenSet = true; m_productSKU = value; }
78 inline void SetProductSKU(Aws::String&& value) { m_productSKUHasBeenSet = true; m_productSKU = std::move(value); }
79 inline void SetProductSKU(const char* value) { m_productSKUHasBeenSet = true; m_productSKU.assign(value); }
80 inline CreateLicenseRequest& WithProductSKU(const Aws::String& value) { SetProductSKU(value); return *this;}
81 inline CreateLicenseRequest& WithProductSKU(Aws::String&& value) { SetProductSKU(std::move(value)); return *this;}
82 inline CreateLicenseRequest& WithProductSKU(const char* value) { SetProductSKU(value); return *this;}
84
86
89 inline const Issuer& GetIssuer() const{ return m_issuer; }
90 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
91 inline void SetIssuer(const Issuer& value) { m_issuerHasBeenSet = true; m_issuer = value; }
92 inline void SetIssuer(Issuer&& value) { m_issuerHasBeenSet = true; m_issuer = std::move(value); }
93 inline CreateLicenseRequest& WithIssuer(const Issuer& value) { SetIssuer(value); return *this;}
94 inline CreateLicenseRequest& WithIssuer(Issuer&& value) { SetIssuer(std::move(value)); return *this;}
96
98
101 inline const Aws::String& GetHomeRegion() const{ return m_homeRegion; }
102 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
103 inline void SetHomeRegion(const Aws::String& value) { m_homeRegionHasBeenSet = true; m_homeRegion = value; }
104 inline void SetHomeRegion(Aws::String&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::move(value); }
105 inline void SetHomeRegion(const char* value) { m_homeRegionHasBeenSet = true; m_homeRegion.assign(value); }
106 inline CreateLicenseRequest& WithHomeRegion(const Aws::String& value) { SetHomeRegion(value); return *this;}
107 inline CreateLicenseRequest& WithHomeRegion(Aws::String&& value) { SetHomeRegion(std::move(value)); return *this;}
108 inline CreateLicenseRequest& WithHomeRegion(const char* value) { SetHomeRegion(value); return *this;}
110
112
116 inline const DatetimeRange& GetValidity() const{ return m_validity; }
117 inline bool ValidityHasBeenSet() const { return m_validityHasBeenSet; }
118 inline void SetValidity(const DatetimeRange& value) { m_validityHasBeenSet = true; m_validity = value; }
119 inline void SetValidity(DatetimeRange&& value) { m_validityHasBeenSet = true; m_validity = std::move(value); }
120 inline CreateLicenseRequest& WithValidity(const DatetimeRange& value) { SetValidity(value); return *this;}
121 inline CreateLicenseRequest& WithValidity(DatetimeRange&& value) { SetValidity(std::move(value)); return *this;}
123
125
128 inline const Aws::Vector<Entitlement>& GetEntitlements() const{ return m_entitlements; }
129 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
130 inline void SetEntitlements(const Aws::Vector<Entitlement>& value) { m_entitlementsHasBeenSet = true; m_entitlements = value; }
131 inline void SetEntitlements(Aws::Vector<Entitlement>&& value) { m_entitlementsHasBeenSet = true; m_entitlements = std::move(value); }
133 inline CreateLicenseRequest& WithEntitlements(Aws::Vector<Entitlement>&& value) { SetEntitlements(std::move(value)); return *this;}
134 inline CreateLicenseRequest& AddEntitlements(const Entitlement& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(value); return *this; }
135 inline CreateLicenseRequest& AddEntitlements(Entitlement&& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(std::move(value)); return *this; }
137
139
142 inline const Aws::String& GetBeneficiary() const{ return m_beneficiary; }
143 inline bool BeneficiaryHasBeenSet() const { return m_beneficiaryHasBeenSet; }
144 inline void SetBeneficiary(const Aws::String& value) { m_beneficiaryHasBeenSet = true; m_beneficiary = value; }
145 inline void SetBeneficiary(Aws::String&& value) { m_beneficiaryHasBeenSet = true; m_beneficiary = std::move(value); }
146 inline void SetBeneficiary(const char* value) { m_beneficiaryHasBeenSet = true; m_beneficiary.assign(value); }
147 inline CreateLicenseRequest& WithBeneficiary(const Aws::String& value) { SetBeneficiary(value); return *this;}
148 inline CreateLicenseRequest& WithBeneficiary(Aws::String&& value) { SetBeneficiary(std::move(value)); return *this;}
149 inline CreateLicenseRequest& WithBeneficiary(const char* value) { SetBeneficiary(value); return *this;}
151
153
158 inline const ConsumptionConfiguration& GetConsumptionConfiguration() const{ return m_consumptionConfiguration; }
159 inline bool ConsumptionConfigurationHasBeenSet() const { return m_consumptionConfigurationHasBeenSet; }
160 inline void SetConsumptionConfiguration(const ConsumptionConfiguration& value) { m_consumptionConfigurationHasBeenSet = true; m_consumptionConfiguration = value; }
161 inline void SetConsumptionConfiguration(ConsumptionConfiguration&& value) { m_consumptionConfigurationHasBeenSet = true; m_consumptionConfiguration = std::move(value); }
165
167
170 inline const Aws::Vector<Metadata>& GetLicenseMetadata() const{ return m_licenseMetadata; }
171 inline bool LicenseMetadataHasBeenSet() const { return m_licenseMetadataHasBeenSet; }
172 inline void SetLicenseMetadata(const Aws::Vector<Metadata>& value) { m_licenseMetadataHasBeenSet = true; m_licenseMetadata = value; }
173 inline void SetLicenseMetadata(Aws::Vector<Metadata>&& value) { m_licenseMetadataHasBeenSet = true; m_licenseMetadata = std::move(value); }
175 inline CreateLicenseRequest& WithLicenseMetadata(Aws::Vector<Metadata>&& value) { SetLicenseMetadata(std::move(value)); return *this;}
176 inline CreateLicenseRequest& AddLicenseMetadata(const Metadata& value) { m_licenseMetadataHasBeenSet = true; m_licenseMetadata.push_back(value); return *this; }
177 inline CreateLicenseRequest& AddLicenseMetadata(Metadata&& value) { m_licenseMetadataHasBeenSet = true; m_licenseMetadata.push_back(std::move(value)); return *this; }
179
181
185 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
186 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
187 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
188 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
189 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
190 inline CreateLicenseRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
191 inline CreateLicenseRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
192 inline CreateLicenseRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
194 private:
195
196 Aws::String m_licenseName;
197 bool m_licenseNameHasBeenSet = false;
198
199 Aws::String m_productName;
200 bool m_productNameHasBeenSet = false;
201
202 Aws::String m_productSKU;
203 bool m_productSKUHasBeenSet = false;
204
205 Issuer m_issuer;
206 bool m_issuerHasBeenSet = false;
207
208 Aws::String m_homeRegion;
209 bool m_homeRegionHasBeenSet = false;
210
211 DatetimeRange m_validity;
212 bool m_validityHasBeenSet = false;
213
214 Aws::Vector<Entitlement> m_entitlements;
215 bool m_entitlementsHasBeenSet = false;
216
217 Aws::String m_beneficiary;
218 bool m_beneficiaryHasBeenSet = false;
219
220 ConsumptionConfiguration m_consumptionConfiguration;
221 bool m_consumptionConfigurationHasBeenSet = false;
222
223 Aws::Vector<Metadata> m_licenseMetadata;
224 bool m_licenseMetadataHasBeenSet = false;
225
226 Aws::String m_clientToken;
227 bool m_clientTokenHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace LicenseManager
232} // namespace Aws
CreateLicenseRequest & WithLicenseMetadata(Aws::Vector< Metadata > &&value)
CreateLicenseRequest & AddLicenseMetadata(const Metadata &value)
CreateLicenseRequest & WithClientToken(Aws::String &&value)
void SetLicenseMetadata(Aws::Vector< Metadata > &&value)
CreateLicenseRequest & WithHomeRegion(const char *value)
CreateLicenseRequest & WithProductSKU(const char *value)
CreateLicenseRequest & WithProductName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetEntitlements(Aws::Vector< Entitlement > &&value)
void SetConsumptionConfiguration(const ConsumptionConfiguration &value)
CreateLicenseRequest & WithConsumptionConfiguration(const ConsumptionConfiguration &value)
CreateLicenseRequest & WithLicenseName(const char *value)
CreateLicenseRequest & WithBeneficiary(const Aws::String &value)
CreateLicenseRequest & WithHomeRegion(Aws::String &&value)
CreateLicenseRequest & WithBeneficiary(const char *value)
const Aws::Vector< Metadata > & GetLicenseMetadata() const
CreateLicenseRequest & WithProductSKU(const Aws::String &value)
CreateLicenseRequest & WithLicenseName(const Aws::String &value)
void SetLicenseMetadata(const Aws::Vector< Metadata > &value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
CreateLicenseRequest & WithProductSKU(Aws::String &&value)
CreateLicenseRequest & WithValidity(const DatetimeRange &value)
void SetConsumptionConfiguration(ConsumptionConfiguration &&value)
CreateLicenseRequest & WithBeneficiary(Aws::String &&value)
CreateLicenseRequest & WithLicenseMetadata(const Aws::Vector< Metadata > &value)
CreateLicenseRequest & WithIssuer(const Issuer &value)
CreateLicenseRequest & AddEntitlements(Entitlement &&value)
CreateLicenseRequest & WithLicenseName(Aws::String &&value)
const ConsumptionConfiguration & GetConsumptionConfiguration() const
CreateLicenseRequest & WithIssuer(Issuer &&value)
CreateLicenseRequest & WithValidity(DatetimeRange &&value)
CreateLicenseRequest & WithConsumptionConfiguration(ConsumptionConfiguration &&value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Vector< Entitlement > & GetEntitlements() const
CreateLicenseRequest & WithProductName(Aws::String &&value)
CreateLicenseRequest & WithEntitlements(const Aws::Vector< Entitlement > &value)
CreateLicenseRequest & WithProductName(const char *value)
CreateLicenseRequest & WithHomeRegion(const Aws::String &value)
CreateLicenseRequest & AddEntitlements(const Entitlement &value)
CreateLicenseRequest & WithClientToken(const Aws::String &value)
CreateLicenseRequest & WithEntitlements(Aws::Vector< Entitlement > &&value)
CreateLicenseRequest & WithClientToken(const char *value)
void SetEntitlements(const Aws::Vector< Entitlement > &value)
CreateLicenseRequest & AddLicenseMetadata(Metadata &&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