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/ReceivedMetadata.h>
15#include <aws/license-manager/model/Entitlement.h>
16#include <aws/license-manager/model/Metadata.h>
29namespace LicenseManager
55 template<
typename LicenseArnT = Aws::String>
56 void SetLicenseArn(LicenseArnT&& value) { m_licenseArnHasBeenSet =
true; m_licenseArn = std::forward<LicenseArnT>(value); }
57 template<
typename LicenseArnT = Aws::String>
67 template<
typename LicenseNameT = Aws::String>
68 void SetLicenseName(LicenseNameT&& value) { m_licenseNameHasBeenSet =
true; m_licenseName = std::forward<LicenseNameT>(value); }
69 template<
typename LicenseNameT = Aws::String>
79 template<
typename ProductNameT = Aws::String>
80 void SetProductName(ProductNameT&& value) { m_productNameHasBeenSet =
true; m_productName = std::forward<ProductNameT>(value); }
81 template<
typename ProductNameT = Aws::String>
91 template<
typename ProductSKUT = Aws::String>
92 void SetProductSKU(ProductSKUT&& value) { m_productSKUHasBeenSet =
true; m_productSKU = std::forward<ProductSKUT>(value); }
93 template<
typename ProductSKUT = Aws::String>
103 template<
typename IssuerT = IssuerDetails>
104 void SetIssuer(IssuerT&& value) { m_issuerHasBeenSet =
true; m_issuer = std::forward<IssuerT>(value); }
105 template<
typename IssuerT = IssuerDetails>
115 template<
typename HomeRegionT = Aws::String>
116 void SetHomeRegion(HomeRegionT&& value) { m_homeRegionHasBeenSet =
true; m_homeRegion = std::forward<HomeRegionT>(value); }
117 template<
typename HomeRegionT = Aws::String>
138 template<
typename Val
idityT = DatetimeRange>
139 void SetValidity(ValidityT&& value) { m_validityHasBeenSet =
true; m_validity = std::forward<ValidityT>(value); }
140 template<
typename Val
idityT = DatetimeRange>
150 template<
typename BeneficiaryT = Aws::String>
151 void SetBeneficiary(BeneficiaryT&& value) { m_beneficiaryHasBeenSet =
true; m_beneficiary = std::forward<BeneficiaryT>(value); }
152 template<
typename BeneficiaryT = Aws::String>
162 template<
typename EntitlementsT = Aws::Vector<Entitlement>>
163 void SetEntitlements(EntitlementsT&& value) { m_entitlementsHasBeenSet =
true; m_entitlements = std::forward<EntitlementsT>(value); }
164 template<
typename EntitlementsT = Aws::Vector<Entitlement>>
166 template<
typename EntitlementsT = Entitlement>
167 GrantedLicense&
AddEntitlements(EntitlementsT&& value) { m_entitlementsHasBeenSet =
true; m_entitlements.emplace_back(std::forward<EntitlementsT>(value));
return *
this; }
176 template<
typename ConsumptionConfigurationT = ConsumptionConfiguration>
177 void SetConsumptionConfiguration(ConsumptionConfigurationT&& value) { m_consumptionConfigurationHasBeenSet =
true; m_consumptionConfiguration = std::forward<ConsumptionConfigurationT>(value); }
178 template<
typename ConsumptionConfigurationT = ConsumptionConfiguration>
188 template<
typename LicenseMetadataT = Aws::Vector<Metadata>>
189 void SetLicenseMetadata(LicenseMetadataT&& value) { m_licenseMetadataHasBeenSet =
true; m_licenseMetadata = std::forward<LicenseMetadataT>(value); }
190 template<
typename LicenseMetadataT = Aws::Vector<Metadata>>
192 template<
typename LicenseMetadataT = Metadata>
193 GrantedLicense&
AddLicenseMetadata(LicenseMetadataT&& value) { m_licenseMetadataHasBeenSet =
true; m_licenseMetadata.emplace_back(std::forward<LicenseMetadataT>(value));
return *
this; }
202 template<
typename CreateTimeT = Aws::String>
203 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet =
true; m_createTime = std::forward<CreateTimeT>(value); }
204 template<
typename CreateTimeT = Aws::String>
214 template<
typename VersionT = Aws::String>
215 void SetVersion(VersionT&& value) { m_versionHasBeenSet =
true; m_version = std::forward<VersionT>(value); }
216 template<
typename VersionT = Aws::String>
226 template<
typename ReceivedMetadataT = ReceivedMetadata>
227 void SetReceivedMetadata(ReceivedMetadataT&& value) { m_receivedMetadataHasBeenSet =
true; m_receivedMetadata = std::forward<ReceivedMetadataT>(value); }
228 template<
typename ReceivedMetadataT = ReceivedMetadata>
234 bool m_licenseArnHasBeenSet =
false;
237 bool m_licenseNameHasBeenSet =
false;
240 bool m_productNameHasBeenSet =
false;
243 bool m_productSKUHasBeenSet =
false;
246 bool m_issuerHasBeenSet =
false;
249 bool m_homeRegionHasBeenSet =
false;
252 bool m_statusHasBeenSet =
false;
254 DatetimeRange m_validity;
255 bool m_validityHasBeenSet =
false;
258 bool m_beneficiaryHasBeenSet =
false;
261 bool m_entitlementsHasBeenSet =
false;
263 ConsumptionConfiguration m_consumptionConfiguration;
264 bool m_consumptionConfigurationHasBeenSet =
false;
267 bool m_licenseMetadataHasBeenSet =
false;
270 bool m_createTimeHasBeenSet =
false;
273 bool m_versionHasBeenSet =
false;
275 ReceivedMetadata m_receivedMetadata;
276 bool m_receivedMetadataHasBeenSet =
false;
GrantedLicense & WithReceivedMetadata(ReceivedMetadataT &&value)
const Aws::String & GetLicenseArn() const
void SetIssuer(IssuerT &&value)
const DatetimeRange & GetValidity() const
void SetLicenseName(LicenseNameT &&value)
bool CreateTimeHasBeenSet() const
bool HomeRegionHasBeenSet() const
void SetStatus(LicenseStatus value)
GrantedLicense & WithVersion(VersionT &&value)
AWS_LICENSEMANAGER_API GrantedLicense & operator=(Aws::Utils::Json::JsonView jsonValue)
GrantedLicense & WithEntitlements(EntitlementsT &&value)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEntitlements(EntitlementsT &&value)
void SetProductSKU(ProductSKUT &&value)
const Aws::Vector< Entitlement > & GetEntitlements() const
GrantedLicense & AddEntitlements(EntitlementsT &&value)
bool BeneficiaryHasBeenSet() const
void SetConsumptionConfiguration(ConsumptionConfigurationT &&value)
bool StatusHasBeenSet() const
bool ConsumptionConfigurationHasBeenSet() const
const Aws::String & GetProductSKU() const
const Aws::String & GetHomeRegion() const
void SetLicenseMetadata(LicenseMetadataT &&value)
const ConsumptionConfiguration & GetConsumptionConfiguration() const
bool LicenseMetadataHasBeenSet() const
void SetCreateTime(CreateTimeT &&value)
const Aws::String & GetProductName() const
GrantedLicense & WithLicenseArn(LicenseArnT &&value)
bool ReceivedMetadataHasBeenSet() const
AWS_LICENSEMANAGER_API GrantedLicense(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCreateTime() const
const ReceivedMetadata & GetReceivedMetadata() const
GrantedLicense & WithProductName(ProductNameT &&value)
GrantedLicense & WithIssuer(IssuerT &&value)
void SetReceivedMetadata(ReceivedMetadataT &&value)
void SetProductName(ProductNameT &&value)
GrantedLicense & WithValidity(ValidityT &&value)
LicenseStatus GetStatus() const
GrantedLicense & WithLicenseMetadata(LicenseMetadataT &&value)
bool ProductSKUHasBeenSet() const
const Aws::String & GetLicenseName() const
void SetLicenseArn(LicenseArnT &&value)
bool EntitlementsHasBeenSet() const
void SetBeneficiary(BeneficiaryT &&value)
GrantedLicense & WithHomeRegion(HomeRegionT &&value)
GrantedLicense & WithStatus(LicenseStatus value)
bool ProductNameHasBeenSet() const
AWS_LICENSEMANAGER_API GrantedLicense()=default
void SetValidity(ValidityT &&value)
bool LicenseNameHasBeenSet() const
bool IssuerHasBeenSet() const
GrantedLicense & AddLicenseMetadata(LicenseMetadataT &&value)
const Aws::String & GetVersion() const
void SetHomeRegion(HomeRegionT &&value)
void SetVersion(VersionT &&value)
GrantedLicense & WithBeneficiary(BeneficiaryT &&value)
GrantedLicense & WithConsumptionConfiguration(ConsumptionConfigurationT &&value)
const IssuerDetails & GetIssuer() const
bool ValidityHasBeenSet() const
bool LicenseArnHasBeenSet() const
GrantedLicense & WithProductSKU(ProductSKUT &&value)
bool VersionHasBeenSet() const
const Aws::String & GetBeneficiary() const
GrantedLicense & WithLicenseName(LicenseNameT &&value)
const Aws::Vector< Metadata > & GetLicenseMetadata() const
GrantedLicense & WithCreateTime(CreateTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue