7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/license-manager/LicenseManager_EXPORTS.h>
10#include <aws/license-manager/model/ConsumptionConfiguration.h>
11#include <aws/license-manager/model/DatetimeRange.h>
12#include <aws/license-manager/model/Entitlement.h>
13#include <aws/license-manager/model/IssuerDetails.h>
14#include <aws/license-manager/model/LicenseStatus.h>
15#include <aws/license-manager/model/Metadata.h>
26namespace LicenseManager {
37 AWS_LICENSEMANAGER_API
License() =
default;
48 template <
typename LicenseArnT = Aws::String>
50 m_licenseArnHasBeenSet =
true;
51 m_licenseArn = std::forward<LicenseArnT>(value);
53 template <
typename LicenseArnT = Aws::String>
66 template <
typename LicenseNameT = Aws::String>
68 m_licenseNameHasBeenSet =
true;
69 m_licenseName = std::forward<LicenseNameT>(value);
71 template <
typename LicenseNameT = Aws::String>
84 template <
typename ProductNameT = Aws::String>
86 m_productNameHasBeenSet =
true;
87 m_productName = std::forward<ProductNameT>(value);
89 template <
typename ProductNameT = Aws::String>
102 template <
typename ProductSKUT = Aws::String>
104 m_productSKUHasBeenSet =
true;
105 m_productSKU = std::forward<ProductSKUT>(value);
107 template <
typename ProductSKUT = Aws::String>
120 template <
typename IssuerT = IssuerDetails>
122 m_issuerHasBeenSet =
true;
123 m_issuer = std::forward<IssuerT>(value);
125 template <
typename IssuerT = IssuerDetails>
138 template <
typename HomeRegionT = Aws::String>
140 m_homeRegionHasBeenSet =
true;
141 m_homeRegion = std::forward<HomeRegionT>(value);
143 template <
typename HomeRegionT = Aws::String>
157 m_statusHasBeenSet =
true;
173 template <
typename Val
idityT = DatetimeRange>
175 m_validityHasBeenSet =
true;
176 m_validity = std::forward<ValidityT>(value);
178 template <
typename Val
idityT = DatetimeRange>
191 template <
typename BeneficiaryT = Aws::String>
193 m_beneficiaryHasBeenSet =
true;
194 m_beneficiary = std::forward<BeneficiaryT>(value);
196 template <
typename BeneficiaryT = Aws::String>
209 template <
typename EntitlementsT = Aws::Vector<Entitlement>>
211 m_entitlementsHasBeenSet =
true;
212 m_entitlements = std::forward<EntitlementsT>(value);
214 template <
typename EntitlementsT = Aws::Vector<Entitlement>>
219 template <
typename EntitlementsT = Entitlement>
221 m_entitlementsHasBeenSet =
true;
222 m_entitlements.emplace_back(std::forward<EntitlementsT>(value));
233 template <
typename ConsumptionConfigurationT = ConsumptionConfiguration>
235 m_consumptionConfigurationHasBeenSet =
true;
236 m_consumptionConfiguration = std::forward<ConsumptionConfigurationT>(value);
238 template <
typename ConsumptionConfigurationT = ConsumptionConfiguration>
251 template <
typename LicenseMetadataT = Aws::Vector<Metadata>>
253 m_licenseMetadataHasBeenSet =
true;
254 m_licenseMetadata = std::forward<LicenseMetadataT>(value);
256 template <
typename LicenseMetadataT = Aws::Vector<Metadata>>
261 template <
typename LicenseMetadataT = Metadata>
263 m_licenseMetadataHasBeenSet =
true;
264 m_licenseMetadata.emplace_back(std::forward<LicenseMetadataT>(value));
275 template <
typename CreateTimeT = Aws::String>
277 m_createTimeHasBeenSet =
true;
278 m_createTime = std::forward<CreateTimeT>(value);
280 template <
typename CreateTimeT = Aws::String>
293 template <
typename VersionT = Aws::String>
295 m_versionHasBeenSet =
true;
296 m_version = std::forward<VersionT>(value);
298 template <
typename VersionT = Aws::String>
319 DatetimeRange m_validity;
325 ConsumptionConfiguration m_consumptionConfiguration;
332 bool m_licenseArnHasBeenSet =
false;
333 bool m_licenseNameHasBeenSet =
false;
334 bool m_productNameHasBeenSet =
false;
335 bool m_productSKUHasBeenSet =
false;
336 bool m_issuerHasBeenSet =
false;
337 bool m_homeRegionHasBeenSet =
false;
338 bool m_statusHasBeenSet =
false;
339 bool m_validityHasBeenSet =
false;
340 bool m_beneficiaryHasBeenSet =
false;
341 bool m_entitlementsHasBeenSet =
false;
342 bool m_consumptionConfigurationHasBeenSet =
false;
343 bool m_licenseMetadataHasBeenSet =
false;
344 bool m_createTimeHasBeenSet =
false;
345 bool m_versionHasBeenSet =
false;
bool ValidityHasBeenSet() const
void SetProductSKU(ProductSKUT &&value)
const DatetimeRange & GetValidity() const
bool EntitlementsHasBeenSet() const
void SetConsumptionConfiguration(ConsumptionConfigurationT &&value)
License & WithEntitlements(EntitlementsT &&value)
void SetLicenseName(LicenseNameT &&value)
void SetValidity(ValidityT &&value)
AWS_LICENSEMANAGER_API License & operator=(Aws::Utils::Json::JsonView jsonValue)
License & WithProductName(ProductNameT &&value)
License & WithVersion(VersionT &&value)
bool ProductSKUHasBeenSet() const
License & WithStatus(LicenseStatus value)
bool StatusHasBeenSet() const
License & AddLicenseMetadata(LicenseMetadataT &&value)
AWS_LICENSEMANAGER_API License()=default
void SetVersion(VersionT &&value)
const Aws::String & GetHomeRegion() const
const Aws::String & GetProductSKU() const
bool IssuerHasBeenSet() const
void SetIssuer(IssuerT &&value)
bool CreateTimeHasBeenSet() const
License & WithHomeRegion(HomeRegionT &&value)
const Aws::String & GetCreateTime() const
License & WithLicenseName(LicenseNameT &&value)
License & WithCreateTime(CreateTimeT &&value)
bool ProductNameHasBeenSet() const
const Aws::String & GetLicenseArn() const
const Aws::String & GetVersion() const
void SetEntitlements(EntitlementsT &&value)
License & AddEntitlements(EntitlementsT &&value)
void SetCreateTime(CreateTimeT &&value)
const IssuerDetails & GetIssuer() const
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLicenseArn(LicenseArnT &&value)
const Aws::Vector< Entitlement > & GetEntitlements() const
AWS_LICENSEMANAGER_API License(Aws::Utils::Json::JsonView jsonValue)
bool ConsumptionConfigurationHasBeenSet() const
void SetStatus(LicenseStatus value)
void SetProductName(ProductNameT &&value)
void SetLicenseMetadata(LicenseMetadataT &&value)
bool HomeRegionHasBeenSet() const
License & WithProductSKU(ProductSKUT &&value)
const Aws::String & GetProductName() const
const Aws::String & GetLicenseName() const
bool BeneficiaryHasBeenSet() const
License & WithIssuer(IssuerT &&value)
License & WithValidity(ValidityT &&value)
bool LicenseMetadataHasBeenSet() const
const ConsumptionConfiguration & GetConsumptionConfiguration() const
const Aws::Vector< Metadata > & GetLicenseMetadata() const
License & WithLicenseArn(LicenseArnT &&value)
void SetHomeRegion(HomeRegionT &&value)
License & WithLicenseMetadata(LicenseMetadataT &&value)
bool LicenseArnHasBeenSet() const
License & WithBeneficiary(BeneficiaryT &&value)
LicenseStatus GetStatus() const
License & WithConsumptionConfiguration(ConsumptionConfigurationT &&value)
bool LicenseNameHasBeenSet() const
bool VersionHasBeenSet() const
void SetBeneficiary(BeneficiaryT &&value)
const Aws::String & GetBeneficiary() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue