AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
License.h
1
6#pragma once
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>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace LicenseManager {
27namespace Model {
28
35class License {
36 public:
37 AWS_LICENSEMANAGER_API License() = default;
38 AWS_LICENSEMANAGER_API License(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LICENSEMANAGER_API License& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetLicenseArn() const { return m_licenseArn; }
47 inline bool LicenseArnHasBeenSet() const { return m_licenseArnHasBeenSet; }
48 template <typename LicenseArnT = Aws::String>
49 void SetLicenseArn(LicenseArnT&& value) {
50 m_licenseArnHasBeenSet = true;
51 m_licenseArn = std::forward<LicenseArnT>(value);
52 }
53 template <typename LicenseArnT = Aws::String>
54 License& WithLicenseArn(LicenseArnT&& value) {
55 SetLicenseArn(std::forward<LicenseArnT>(value));
56 return *this;
57 }
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) {
68 m_licenseNameHasBeenSet = true;
69 m_licenseName = std::forward<LicenseNameT>(value);
70 }
71 template <typename LicenseNameT = Aws::String>
72 License& WithLicenseName(LicenseNameT&& value) {
73 SetLicenseName(std::forward<LicenseNameT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetProductName() const { return m_productName; }
83 inline bool ProductNameHasBeenSet() const { return m_productNameHasBeenSet; }
84 template <typename ProductNameT = Aws::String>
85 void SetProductName(ProductNameT&& value) {
86 m_productNameHasBeenSet = true;
87 m_productName = std::forward<ProductNameT>(value);
88 }
89 template <typename ProductNameT = Aws::String>
90 License& WithProductName(ProductNameT&& value) {
91 SetProductName(std::forward<ProductNameT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetProductSKU() const { return m_productSKU; }
101 inline bool ProductSKUHasBeenSet() const { return m_productSKUHasBeenSet; }
102 template <typename ProductSKUT = Aws::String>
103 void SetProductSKU(ProductSKUT&& value) {
104 m_productSKUHasBeenSet = true;
105 m_productSKU = std::forward<ProductSKUT>(value);
106 }
107 template <typename ProductSKUT = Aws::String>
108 License& WithProductSKU(ProductSKUT&& value) {
109 SetProductSKU(std::forward<ProductSKUT>(value));
110 return *this;
111 }
113
115
118 inline const IssuerDetails& GetIssuer() const { return m_issuer; }
119 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
120 template <typename IssuerT = IssuerDetails>
121 void SetIssuer(IssuerT&& value) {
122 m_issuerHasBeenSet = true;
123 m_issuer = std::forward<IssuerT>(value);
124 }
125 template <typename IssuerT = IssuerDetails>
126 License& WithIssuer(IssuerT&& value) {
127 SetIssuer(std::forward<IssuerT>(value));
128 return *this;
129 }
131
133
136 inline const Aws::String& GetHomeRegion() const { return m_homeRegion; }
137 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
138 template <typename HomeRegionT = Aws::String>
139 void SetHomeRegion(HomeRegionT&& value) {
140 m_homeRegionHasBeenSet = true;
141 m_homeRegion = std::forward<HomeRegionT>(value);
142 }
143 template <typename HomeRegionT = Aws::String>
144 License& WithHomeRegion(HomeRegionT&& value) {
145 SetHomeRegion(std::forward<HomeRegionT>(value));
146 return *this;
147 }
149
151
154 inline LicenseStatus GetStatus() const { return m_status; }
155 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
156 inline void SetStatus(LicenseStatus value) {
157 m_statusHasBeenSet = true;
158 m_status = value;
159 }
161 SetStatus(value);
162 return *this;
163 }
165
167
171 inline const DatetimeRange& GetValidity() const { return m_validity; }
172 inline bool ValidityHasBeenSet() const { return m_validityHasBeenSet; }
173 template <typename ValidityT = DatetimeRange>
174 void SetValidity(ValidityT&& value) {
175 m_validityHasBeenSet = true;
176 m_validity = std::forward<ValidityT>(value);
177 }
178 template <typename ValidityT = DatetimeRange>
179 License& WithValidity(ValidityT&& value) {
180 SetValidity(std::forward<ValidityT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::String& GetBeneficiary() const { return m_beneficiary; }
190 inline bool BeneficiaryHasBeenSet() const { return m_beneficiaryHasBeenSet; }
191 template <typename BeneficiaryT = Aws::String>
192 void SetBeneficiary(BeneficiaryT&& value) {
193 m_beneficiaryHasBeenSet = true;
194 m_beneficiary = std::forward<BeneficiaryT>(value);
195 }
196 template <typename BeneficiaryT = Aws::String>
197 License& WithBeneficiary(BeneficiaryT&& value) {
198 SetBeneficiary(std::forward<BeneficiaryT>(value));
199 return *this;
200 }
202
204
207 inline const Aws::Vector<Entitlement>& GetEntitlements() const { return m_entitlements; }
208 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
209 template <typename EntitlementsT = Aws::Vector<Entitlement>>
210 void SetEntitlements(EntitlementsT&& value) {
211 m_entitlementsHasBeenSet = true;
212 m_entitlements = std::forward<EntitlementsT>(value);
213 }
214 template <typename EntitlementsT = Aws::Vector<Entitlement>>
215 License& WithEntitlements(EntitlementsT&& value) {
216 SetEntitlements(std::forward<EntitlementsT>(value));
217 return *this;
218 }
219 template <typename EntitlementsT = Entitlement>
220 License& AddEntitlements(EntitlementsT&& value) {
221 m_entitlementsHasBeenSet = true;
222 m_entitlements.emplace_back(std::forward<EntitlementsT>(value));
223 return *this;
224 }
226
228
231 inline const ConsumptionConfiguration& GetConsumptionConfiguration() const { return m_consumptionConfiguration; }
232 inline bool ConsumptionConfigurationHasBeenSet() const { return m_consumptionConfigurationHasBeenSet; }
233 template <typename ConsumptionConfigurationT = ConsumptionConfiguration>
234 void SetConsumptionConfiguration(ConsumptionConfigurationT&& value) {
235 m_consumptionConfigurationHasBeenSet = true;
236 m_consumptionConfiguration = std::forward<ConsumptionConfigurationT>(value);
237 }
238 template <typename ConsumptionConfigurationT = ConsumptionConfiguration>
239 License& WithConsumptionConfiguration(ConsumptionConfigurationT&& value) {
240 SetConsumptionConfiguration(std::forward<ConsumptionConfigurationT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::Vector<Metadata>& GetLicenseMetadata() const { return m_licenseMetadata; }
250 inline bool LicenseMetadataHasBeenSet() const { return m_licenseMetadataHasBeenSet; }
251 template <typename LicenseMetadataT = Aws::Vector<Metadata>>
252 void SetLicenseMetadata(LicenseMetadataT&& value) {
253 m_licenseMetadataHasBeenSet = true;
254 m_licenseMetadata = std::forward<LicenseMetadataT>(value);
255 }
256 template <typename LicenseMetadataT = Aws::Vector<Metadata>>
257 License& WithLicenseMetadata(LicenseMetadataT&& value) {
258 SetLicenseMetadata(std::forward<LicenseMetadataT>(value));
259 return *this;
260 }
261 template <typename LicenseMetadataT = Metadata>
262 License& AddLicenseMetadata(LicenseMetadataT&& value) {
263 m_licenseMetadataHasBeenSet = true;
264 m_licenseMetadata.emplace_back(std::forward<LicenseMetadataT>(value));
265 return *this;
266 }
268
270
273 inline const Aws::String& GetCreateTime() const { return m_createTime; }
274 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
275 template <typename CreateTimeT = Aws::String>
276 void SetCreateTime(CreateTimeT&& value) {
277 m_createTimeHasBeenSet = true;
278 m_createTime = std::forward<CreateTimeT>(value);
279 }
280 template <typename CreateTimeT = Aws::String>
281 License& WithCreateTime(CreateTimeT&& value) {
282 SetCreateTime(std::forward<CreateTimeT>(value));
283 return *this;
284 }
286
288
291 inline const Aws::String& GetVersion() const { return m_version; }
292 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
293 template <typename VersionT = Aws::String>
294 void SetVersion(VersionT&& value) {
295 m_versionHasBeenSet = true;
296 m_version = std::forward<VersionT>(value);
297 }
298 template <typename VersionT = Aws::String>
299 License& WithVersion(VersionT&& value) {
300 SetVersion(std::forward<VersionT>(value));
301 return *this;
302 }
304 private:
305 Aws::String m_licenseArn;
306
307 Aws::String m_licenseName;
308
309 Aws::String m_productName;
310
311 Aws::String m_productSKU;
312
313 IssuerDetails m_issuer;
314
315 Aws::String m_homeRegion;
316
318
319 DatetimeRange m_validity;
320
321 Aws::String m_beneficiary;
322
323 Aws::Vector<Entitlement> m_entitlements;
324
325 ConsumptionConfiguration m_consumptionConfiguration;
326
327 Aws::Vector<Metadata> m_licenseMetadata;
328
329 Aws::String m_createTime;
330
331 Aws::String m_version;
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;
346};
347
348} // namespace Model
349} // namespace LicenseManager
350} // namespace Aws
void SetProductSKU(ProductSKUT &&value)
Definition License.h:103
const DatetimeRange & GetValidity() const
Definition License.h:171
void SetConsumptionConfiguration(ConsumptionConfigurationT &&value)
Definition License.h:234
License & WithEntitlements(EntitlementsT &&value)
Definition License.h:215
void SetLicenseName(LicenseNameT &&value)
Definition License.h:67
void SetValidity(ValidityT &&value)
Definition License.h:174
AWS_LICENSEMANAGER_API License & operator=(Aws::Utils::Json::JsonView jsonValue)
License & WithProductName(ProductNameT &&value)
Definition License.h:90
License & WithVersion(VersionT &&value)
Definition License.h:299
License & WithStatus(LicenseStatus value)
Definition License.h:160
License & AddLicenseMetadata(LicenseMetadataT &&value)
Definition License.h:262
AWS_LICENSEMANAGER_API License()=default
void SetVersion(VersionT &&value)
Definition License.h:294
const Aws::String & GetHomeRegion() const
Definition License.h:136
const Aws::String & GetProductSKU() const
Definition License.h:100
void SetIssuer(IssuerT &&value)
Definition License.h:121
License & WithHomeRegion(HomeRegionT &&value)
Definition License.h:144
const Aws::String & GetCreateTime() const
Definition License.h:273
License & WithLicenseName(LicenseNameT &&value)
Definition License.h:72
License & WithCreateTime(CreateTimeT &&value)
Definition License.h:281
const Aws::String & GetLicenseArn() const
Definition License.h:46
const Aws::String & GetVersion() const
Definition License.h:291
void SetEntitlements(EntitlementsT &&value)
Definition License.h:210
License & AddEntitlements(EntitlementsT &&value)
Definition License.h:220
void SetCreateTime(CreateTimeT &&value)
Definition License.h:276
const IssuerDetails & GetIssuer() const
Definition License.h:118
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLicenseArn(LicenseArnT &&value)
Definition License.h:49
const Aws::Vector< Entitlement > & GetEntitlements() const
Definition License.h:207
AWS_LICENSEMANAGER_API License(Aws::Utils::Json::JsonView jsonValue)
bool ConsumptionConfigurationHasBeenSet() const
Definition License.h:232
void SetStatus(LicenseStatus value)
Definition License.h:156
void SetProductName(ProductNameT &&value)
Definition License.h:85
void SetLicenseMetadata(LicenseMetadataT &&value)
Definition License.h:252
License & WithProductSKU(ProductSKUT &&value)
Definition License.h:108
const Aws::String & GetProductName() const
Definition License.h:82
const Aws::String & GetLicenseName() const
Definition License.h:64
License & WithIssuer(IssuerT &&value)
Definition License.h:126
License & WithValidity(ValidityT &&value)
Definition License.h:179
const ConsumptionConfiguration & GetConsumptionConfiguration() const
Definition License.h:231
const Aws::Vector< Metadata > & GetLicenseMetadata() const
Definition License.h:249
License & WithLicenseArn(LicenseArnT &&value)
Definition License.h:54
void SetHomeRegion(HomeRegionT &&value)
Definition License.h:139
License & WithLicenseMetadata(LicenseMetadataT &&value)
Definition License.h:257
License & WithBeneficiary(BeneficiaryT &&value)
Definition License.h:197
LicenseStatus GetStatus() const
Definition License.h:154
License & WithConsumptionConfiguration(ConsumptionConfigurationT &&value)
Definition License.h:239
void SetBeneficiary(BeneficiaryT &&value)
Definition License.h:192
const Aws::String & GetBeneficiary() const
Definition License.h:189
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue