AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
License.h
1
6#pragma once
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>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace LicenseManager
29{
30namespace Model
31{
32
39 class License
40 {
41 public:
42 AWS_LICENSEMANAGER_API License() = default;
43 AWS_LICENSEMANAGER_API License(Aws::Utils::Json::JsonView jsonValue);
44 AWS_LICENSEMANAGER_API License& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetLicenseArn() const { return m_licenseArn; }
53 inline bool LicenseArnHasBeenSet() const { return m_licenseArnHasBeenSet; }
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>
57 License& WithLicenseArn(LicenseArnT&& value) { SetLicenseArn(std::forward<LicenseArnT>(value)); return *this;}
59
61
64 inline const Aws::String& GetLicenseName() const { return m_licenseName; }
65 inline bool LicenseNameHasBeenSet() const { return m_licenseNameHasBeenSet; }
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>
69 License& WithLicenseName(LicenseNameT&& value) { SetLicenseName(std::forward<LicenseNameT>(value)); return *this;}
71
73
76 inline const Aws::String& GetProductName() const { return m_productName; }
77 inline bool ProductNameHasBeenSet() const { return m_productNameHasBeenSet; }
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>
81 License& WithProductName(ProductNameT&& value) { SetProductName(std::forward<ProductNameT>(value)); return *this;}
83
85
88 inline const Aws::String& GetProductSKU() const { return m_productSKU; }
89 inline bool ProductSKUHasBeenSet() const { return m_productSKUHasBeenSet; }
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>
93 License& WithProductSKU(ProductSKUT&& value) { SetProductSKU(std::forward<ProductSKUT>(value)); return *this;}
95
97
100 inline const IssuerDetails& GetIssuer() const { return m_issuer; }
101 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
102 template<typename IssuerT = IssuerDetails>
103 void SetIssuer(IssuerT&& value) { m_issuerHasBeenSet = true; m_issuer = std::forward<IssuerT>(value); }
104 template<typename IssuerT = IssuerDetails>
105 License& WithIssuer(IssuerT&& value) { SetIssuer(std::forward<IssuerT>(value)); return *this;}
107
109
112 inline const Aws::String& GetHomeRegion() const { return m_homeRegion; }
113 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
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>
117 License& WithHomeRegion(HomeRegionT&& value) { SetHomeRegion(std::forward<HomeRegionT>(value)); return *this;}
119
121
124 inline LicenseStatus GetStatus() const { return m_status; }
125 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
126 inline void SetStatus(LicenseStatus value) { m_statusHasBeenSet = true; m_status = value; }
127 inline License& WithStatus(LicenseStatus value) { SetStatus(value); return *this;}
129
131
135 inline const DatetimeRange& GetValidity() const { return m_validity; }
136 inline bool ValidityHasBeenSet() const { return m_validityHasBeenSet; }
137 template<typename ValidityT = DatetimeRange>
138 void SetValidity(ValidityT&& value) { m_validityHasBeenSet = true; m_validity = std::forward<ValidityT>(value); }
139 template<typename ValidityT = DatetimeRange>
140 License& WithValidity(ValidityT&& value) { SetValidity(std::forward<ValidityT>(value)); return *this;}
142
144
147 inline const Aws::String& GetBeneficiary() const { return m_beneficiary; }
148 inline bool BeneficiaryHasBeenSet() const { return m_beneficiaryHasBeenSet; }
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>
152 License& WithBeneficiary(BeneficiaryT&& value) { SetBeneficiary(std::forward<BeneficiaryT>(value)); return *this;}
154
156
159 inline const Aws::Vector<Entitlement>& GetEntitlements() const { return m_entitlements; }
160 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
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>>
164 License& WithEntitlements(EntitlementsT&& value) { SetEntitlements(std::forward<EntitlementsT>(value)); return *this;}
165 template<typename EntitlementsT = Entitlement>
166 License& AddEntitlements(EntitlementsT&& value) { m_entitlementsHasBeenSet = true; m_entitlements.emplace_back(std::forward<EntitlementsT>(value)); return *this; }
168
170
173 inline const ConsumptionConfiguration& GetConsumptionConfiguration() const { return m_consumptionConfiguration; }
174 inline bool ConsumptionConfigurationHasBeenSet() const { return m_consumptionConfigurationHasBeenSet; }
175 template<typename ConsumptionConfigurationT = ConsumptionConfiguration>
176 void SetConsumptionConfiguration(ConsumptionConfigurationT&& value) { m_consumptionConfigurationHasBeenSet = true; m_consumptionConfiguration = std::forward<ConsumptionConfigurationT>(value); }
177 template<typename ConsumptionConfigurationT = ConsumptionConfiguration>
178 License& WithConsumptionConfiguration(ConsumptionConfigurationT&& value) { SetConsumptionConfiguration(std::forward<ConsumptionConfigurationT>(value)); return *this;}
180
182
185 inline const Aws::Vector<Metadata>& GetLicenseMetadata() const { return m_licenseMetadata; }
186 inline bool LicenseMetadataHasBeenSet() const { return m_licenseMetadataHasBeenSet; }
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>>
190 License& WithLicenseMetadata(LicenseMetadataT&& value) { SetLicenseMetadata(std::forward<LicenseMetadataT>(value)); return *this;}
191 template<typename LicenseMetadataT = Metadata>
192 License& AddLicenseMetadata(LicenseMetadataT&& value) { m_licenseMetadataHasBeenSet = true; m_licenseMetadata.emplace_back(std::forward<LicenseMetadataT>(value)); return *this; }
194
196
199 inline const Aws::String& GetCreateTime() const { return m_createTime; }
200 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
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>
204 License& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
206
208
211 inline const Aws::String& GetVersion() const { return m_version; }
212 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
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>
216 License& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
218 private:
219
220 Aws::String m_licenseArn;
221 bool m_licenseArnHasBeenSet = false;
222
223 Aws::String m_licenseName;
224 bool m_licenseNameHasBeenSet = false;
225
226 Aws::String m_productName;
227 bool m_productNameHasBeenSet = false;
228
229 Aws::String m_productSKU;
230 bool m_productSKUHasBeenSet = false;
231
232 IssuerDetails m_issuer;
233 bool m_issuerHasBeenSet = false;
234
235 Aws::String m_homeRegion;
236 bool m_homeRegionHasBeenSet = false;
237
239 bool m_statusHasBeenSet = false;
240
241 DatetimeRange m_validity;
242 bool m_validityHasBeenSet = false;
243
244 Aws::String m_beneficiary;
245 bool m_beneficiaryHasBeenSet = false;
246
247 Aws::Vector<Entitlement> m_entitlements;
248 bool m_entitlementsHasBeenSet = false;
249
250 ConsumptionConfiguration m_consumptionConfiguration;
251 bool m_consumptionConfigurationHasBeenSet = false;
252
253 Aws::Vector<Metadata> m_licenseMetadata;
254 bool m_licenseMetadataHasBeenSet = false;
255
256 Aws::String m_createTime;
257 bool m_createTimeHasBeenSet = false;
258
259 Aws::String m_version;
260 bool m_versionHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace LicenseManager
265} // namespace Aws
void SetProductSKU(ProductSKUT &&value)
Definition License.h:91
const DatetimeRange & GetValidity() const
Definition License.h:135
void SetConsumptionConfiguration(ConsumptionConfigurationT &&value)
Definition License.h:176
License & WithEntitlements(EntitlementsT &&value)
Definition License.h:164
void SetLicenseName(LicenseNameT &&value)
Definition License.h:67
void SetValidity(ValidityT &&value)
Definition License.h:138
AWS_LICENSEMANAGER_API License & operator=(Aws::Utils::Json::JsonView jsonValue)
License & WithProductName(ProductNameT &&value)
Definition License.h:81
License & WithVersion(VersionT &&value)
Definition License.h:216
License & WithStatus(LicenseStatus value)
Definition License.h:127
License & AddLicenseMetadata(LicenseMetadataT &&value)
Definition License.h:192
AWS_LICENSEMANAGER_API License()=default
void SetVersion(VersionT &&value)
Definition License.h:214
const Aws::String & GetHomeRegion() const
Definition License.h:112
const Aws::String & GetProductSKU() const
Definition License.h:88
void SetIssuer(IssuerT &&value)
Definition License.h:103
License & WithHomeRegion(HomeRegionT &&value)
Definition License.h:117
const Aws::String & GetCreateTime() const
Definition License.h:199
License & WithLicenseName(LicenseNameT &&value)
Definition License.h:69
License & WithCreateTime(CreateTimeT &&value)
Definition License.h:204
const Aws::String & GetLicenseArn() const
Definition License.h:52
const Aws::String & GetVersion() const
Definition License.h:211
void SetEntitlements(EntitlementsT &&value)
Definition License.h:162
License & AddEntitlements(EntitlementsT &&value)
Definition License.h:166
void SetCreateTime(CreateTimeT &&value)
Definition License.h:202
const IssuerDetails & GetIssuer() const
Definition License.h:100
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLicenseArn(LicenseArnT &&value)
Definition License.h:55
const Aws::Vector< Entitlement > & GetEntitlements() const
Definition License.h:159
AWS_LICENSEMANAGER_API License(Aws::Utils::Json::JsonView jsonValue)
bool ConsumptionConfigurationHasBeenSet() const
Definition License.h:174
void SetStatus(LicenseStatus value)
Definition License.h:126
void SetProductName(ProductNameT &&value)
Definition License.h:79
void SetLicenseMetadata(LicenseMetadataT &&value)
Definition License.h:188
License & WithProductSKU(ProductSKUT &&value)
Definition License.h:93
const Aws::String & GetProductName() const
Definition License.h:76
const Aws::String & GetLicenseName() const
Definition License.h:64
License & WithIssuer(IssuerT &&value)
Definition License.h:105
License & WithValidity(ValidityT &&value)
Definition License.h:140
const ConsumptionConfiguration & GetConsumptionConfiguration() const
Definition License.h:173
const Aws::Vector< Metadata > & GetLicenseMetadata() const
Definition License.h:185
License & WithLicenseArn(LicenseArnT &&value)
Definition License.h:57
void SetHomeRegion(HomeRegionT &&value)
Definition License.h:115
License & WithLicenseMetadata(LicenseMetadataT &&value)
Definition License.h:190
License & WithBeneficiary(BeneficiaryT &&value)
Definition License.h:152
LicenseStatus GetStatus() const
Definition License.h:124
License & WithConsumptionConfiguration(ConsumptionConfigurationT &&value)
Definition License.h:178
void SetBeneficiary(BeneficiaryT &&value)
Definition License.h:150
const Aws::String & GetBeneficiary() const
Definition License.h:147
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue