7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/license-manager/model/IssuerDetails.h>
10#include <aws/license-manager/model/LicenseStatus.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>
28namespace LicenseManager
42 AWS_LICENSEMANAGER_API
License() =
default;
54 template<
typename LicenseArnT = Aws::String>
55 void SetLicenseArn(LicenseArnT&& value) { m_licenseArnHasBeenSet =
true; m_licenseArn = std::forward<LicenseArnT>(value); }
56 template<
typename LicenseArnT = Aws::String>
66 template<
typename LicenseNameT = Aws::String>
67 void SetLicenseName(LicenseNameT&& value) { m_licenseNameHasBeenSet =
true; m_licenseName = std::forward<LicenseNameT>(value); }
68 template<
typename LicenseNameT = Aws::String>
78 template<
typename ProductNameT = Aws::String>
79 void SetProductName(ProductNameT&& value) { m_productNameHasBeenSet =
true; m_productName = std::forward<ProductNameT>(value); }
80 template<
typename ProductNameT = Aws::String>
90 template<
typename ProductSKUT = Aws::String>
91 void SetProductSKU(ProductSKUT&& value) { m_productSKUHasBeenSet =
true; m_productSKU = std::forward<ProductSKUT>(value); }
92 template<
typename ProductSKUT = Aws::String>
102 template<
typename IssuerT = IssuerDetails>
103 void SetIssuer(IssuerT&& value) { m_issuerHasBeenSet =
true; m_issuer = std::forward<IssuerT>(value); }
104 template<
typename IssuerT = IssuerDetails>
114 template<
typename HomeRegionT = Aws::String>
115 void SetHomeRegion(HomeRegionT&& value) { m_homeRegionHasBeenSet =
true; m_homeRegion = std::forward<HomeRegionT>(value); }
116 template<
typename HomeRegionT = Aws::String>
137 template<
typename Val
idityT = DatetimeRange>
138 void SetValidity(ValidityT&& value) { m_validityHasBeenSet =
true; m_validity = std::forward<ValidityT>(value); }
139 template<
typename Val
idityT = DatetimeRange>
149 template<
typename BeneficiaryT = Aws::String>
150 void SetBeneficiary(BeneficiaryT&& value) { m_beneficiaryHasBeenSet =
true; m_beneficiary = std::forward<BeneficiaryT>(value); }
151 template<
typename BeneficiaryT = Aws::String>
161 template<
typename EntitlementsT = Aws::Vector<Entitlement>>
162 void SetEntitlements(EntitlementsT&& value) { m_entitlementsHasBeenSet =
true; m_entitlements = std::forward<EntitlementsT>(value); }
163 template<
typename EntitlementsT = Aws::Vector<Entitlement>>
165 template<
typename EntitlementsT = Entitlement>
166 License&
AddEntitlements(EntitlementsT&& value) { m_entitlementsHasBeenSet =
true; m_entitlements.emplace_back(std::forward<EntitlementsT>(value));
return *
this; }
175 template<
typename ConsumptionConfigurationT = ConsumptionConfiguration>
176 void SetConsumptionConfiguration(ConsumptionConfigurationT&& value) { m_consumptionConfigurationHasBeenSet =
true; m_consumptionConfiguration = std::forward<ConsumptionConfigurationT>(value); }
177 template<
typename ConsumptionConfigurationT = ConsumptionConfiguration>
187 template<
typename LicenseMetadataT = Aws::Vector<Metadata>>
188 void SetLicenseMetadata(LicenseMetadataT&& value) { m_licenseMetadataHasBeenSet =
true; m_licenseMetadata = std::forward<LicenseMetadataT>(value); }
189 template<
typename LicenseMetadataT = Aws::Vector<Metadata>>
191 template<
typename LicenseMetadataT = Metadata>
192 License&
AddLicenseMetadata(LicenseMetadataT&& value) { m_licenseMetadataHasBeenSet =
true; m_licenseMetadata.emplace_back(std::forward<LicenseMetadataT>(value));
return *
this; }
201 template<
typename CreateTimeT = Aws::String>
202 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet =
true; m_createTime = std::forward<CreateTimeT>(value); }
203 template<
typename CreateTimeT = Aws::String>
213 template<
typename VersionT = Aws::String>
214 void SetVersion(VersionT&& value) { m_versionHasBeenSet =
true; m_version = std::forward<VersionT>(value); }
215 template<
typename VersionT = Aws::String>
221 bool m_licenseArnHasBeenSet =
false;
224 bool m_licenseNameHasBeenSet =
false;
227 bool m_productNameHasBeenSet =
false;
230 bool m_productSKUHasBeenSet =
false;
233 bool m_issuerHasBeenSet =
false;
236 bool m_homeRegionHasBeenSet =
false;
239 bool m_statusHasBeenSet =
false;
241 DatetimeRange m_validity;
242 bool m_validityHasBeenSet =
false;
245 bool m_beneficiaryHasBeenSet =
false;
248 bool m_entitlementsHasBeenSet =
false;
250 ConsumptionConfiguration m_consumptionConfiguration;
251 bool m_consumptionConfigurationHasBeenSet =
false;
254 bool m_licenseMetadataHasBeenSet =
false;
257 bool m_createTimeHasBeenSet =
false;
260 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