AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GrantedLicense.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#include <aws/license-manager/model/ReceivedMetadata.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Utils {
22namespace Json {
23class JsonValue;
24class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace LicenseManager {
28namespace Model {
29
37 public:
38 AWS_LICENSEMANAGER_API GrantedLicense() = default;
39 AWS_LICENSEMANAGER_API GrantedLicense(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LICENSEMANAGER_API GrantedLicense& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetLicenseArn() const { return m_licenseArn; }
48 inline bool LicenseArnHasBeenSet() const { return m_licenseArnHasBeenSet; }
49 template <typename LicenseArnT = Aws::String>
50 void SetLicenseArn(LicenseArnT&& value) {
51 m_licenseArnHasBeenSet = true;
52 m_licenseArn = std::forward<LicenseArnT>(value);
53 }
54 template <typename LicenseArnT = Aws::String>
55 GrantedLicense& WithLicenseArn(LicenseArnT&& value) {
56 SetLicenseArn(std::forward<LicenseArnT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetLicenseName() const { return m_licenseName; }
66 inline bool LicenseNameHasBeenSet() const { return m_licenseNameHasBeenSet; }
67 template <typename LicenseNameT = Aws::String>
68 void SetLicenseName(LicenseNameT&& value) {
69 m_licenseNameHasBeenSet = true;
70 m_licenseName = std::forward<LicenseNameT>(value);
71 }
72 template <typename LicenseNameT = Aws::String>
73 GrantedLicense& WithLicenseName(LicenseNameT&& value) {
74 SetLicenseName(std::forward<LicenseNameT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetProductName() const { return m_productName; }
84 inline bool ProductNameHasBeenSet() const { return m_productNameHasBeenSet; }
85 template <typename ProductNameT = Aws::String>
86 void SetProductName(ProductNameT&& value) {
87 m_productNameHasBeenSet = true;
88 m_productName = std::forward<ProductNameT>(value);
89 }
90 template <typename ProductNameT = Aws::String>
91 GrantedLicense& WithProductName(ProductNameT&& value) {
92 SetProductName(std::forward<ProductNameT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetProductSKU() const { return m_productSKU; }
102 inline bool ProductSKUHasBeenSet() const { return m_productSKUHasBeenSet; }
103 template <typename ProductSKUT = Aws::String>
104 void SetProductSKU(ProductSKUT&& value) {
105 m_productSKUHasBeenSet = true;
106 m_productSKU = std::forward<ProductSKUT>(value);
107 }
108 template <typename ProductSKUT = Aws::String>
109 GrantedLicense& WithProductSKU(ProductSKUT&& value) {
110 SetProductSKU(std::forward<ProductSKUT>(value));
111 return *this;
112 }
114
116
119 inline const IssuerDetails& GetIssuer() const { return m_issuer; }
120 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
121 template <typename IssuerT = IssuerDetails>
122 void SetIssuer(IssuerT&& value) {
123 m_issuerHasBeenSet = true;
124 m_issuer = std::forward<IssuerT>(value);
125 }
126 template <typename IssuerT = IssuerDetails>
127 GrantedLicense& WithIssuer(IssuerT&& value) {
128 SetIssuer(std::forward<IssuerT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::String& GetHomeRegion() const { return m_homeRegion; }
138 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
139 template <typename HomeRegionT = Aws::String>
140 void SetHomeRegion(HomeRegionT&& value) {
141 m_homeRegionHasBeenSet = true;
142 m_homeRegion = std::forward<HomeRegionT>(value);
143 }
144 template <typename HomeRegionT = Aws::String>
145 GrantedLicense& WithHomeRegion(HomeRegionT&& value) {
146 SetHomeRegion(std::forward<HomeRegionT>(value));
147 return *this;
148 }
150
152
155 inline LicenseStatus GetStatus() const { return m_status; }
156 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
157 inline void SetStatus(LicenseStatus value) {
158 m_statusHasBeenSet = true;
159 m_status = value;
160 }
162 SetStatus(value);
163 return *this;
164 }
166
168
172 inline const DatetimeRange& GetValidity() const { return m_validity; }
173 inline bool ValidityHasBeenSet() const { return m_validityHasBeenSet; }
174 template <typename ValidityT = DatetimeRange>
175 void SetValidity(ValidityT&& value) {
176 m_validityHasBeenSet = true;
177 m_validity = std::forward<ValidityT>(value);
178 }
179 template <typename ValidityT = DatetimeRange>
180 GrantedLicense& WithValidity(ValidityT&& value) {
181 SetValidity(std::forward<ValidityT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetBeneficiary() const { return m_beneficiary; }
191 inline bool BeneficiaryHasBeenSet() const { return m_beneficiaryHasBeenSet; }
192 template <typename BeneficiaryT = Aws::String>
193 void SetBeneficiary(BeneficiaryT&& value) {
194 m_beneficiaryHasBeenSet = true;
195 m_beneficiary = std::forward<BeneficiaryT>(value);
196 }
197 template <typename BeneficiaryT = Aws::String>
198 GrantedLicense& WithBeneficiary(BeneficiaryT&& value) {
199 SetBeneficiary(std::forward<BeneficiaryT>(value));
200 return *this;
201 }
203
205
208 inline const Aws::Vector<Entitlement>& GetEntitlements() const { return m_entitlements; }
209 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
210 template <typename EntitlementsT = Aws::Vector<Entitlement>>
211 void SetEntitlements(EntitlementsT&& value) {
212 m_entitlementsHasBeenSet = true;
213 m_entitlements = std::forward<EntitlementsT>(value);
214 }
215 template <typename EntitlementsT = Aws::Vector<Entitlement>>
216 GrantedLicense& WithEntitlements(EntitlementsT&& value) {
217 SetEntitlements(std::forward<EntitlementsT>(value));
218 return *this;
219 }
220 template <typename EntitlementsT = Entitlement>
221 GrantedLicense& AddEntitlements(EntitlementsT&& value) {
222 m_entitlementsHasBeenSet = true;
223 m_entitlements.emplace_back(std::forward<EntitlementsT>(value));
224 return *this;
225 }
227
229
232 inline const ConsumptionConfiguration& GetConsumptionConfiguration() const { return m_consumptionConfiguration; }
233 inline bool ConsumptionConfigurationHasBeenSet() const { return m_consumptionConfigurationHasBeenSet; }
234 template <typename ConsumptionConfigurationT = ConsumptionConfiguration>
235 void SetConsumptionConfiguration(ConsumptionConfigurationT&& value) {
236 m_consumptionConfigurationHasBeenSet = true;
237 m_consumptionConfiguration = std::forward<ConsumptionConfigurationT>(value);
238 }
239 template <typename ConsumptionConfigurationT = ConsumptionConfiguration>
240 GrantedLicense& WithConsumptionConfiguration(ConsumptionConfigurationT&& value) {
241 SetConsumptionConfiguration(std::forward<ConsumptionConfigurationT>(value));
242 return *this;
243 }
245
247
250 inline const Aws::Vector<Metadata>& GetLicenseMetadata() const { return m_licenseMetadata; }
251 inline bool LicenseMetadataHasBeenSet() const { return m_licenseMetadataHasBeenSet; }
252 template <typename LicenseMetadataT = Aws::Vector<Metadata>>
253 void SetLicenseMetadata(LicenseMetadataT&& value) {
254 m_licenseMetadataHasBeenSet = true;
255 m_licenseMetadata = std::forward<LicenseMetadataT>(value);
256 }
257 template <typename LicenseMetadataT = Aws::Vector<Metadata>>
258 GrantedLicense& WithLicenseMetadata(LicenseMetadataT&& value) {
259 SetLicenseMetadata(std::forward<LicenseMetadataT>(value));
260 return *this;
261 }
262 template <typename LicenseMetadataT = Metadata>
263 GrantedLicense& AddLicenseMetadata(LicenseMetadataT&& value) {
264 m_licenseMetadataHasBeenSet = true;
265 m_licenseMetadata.emplace_back(std::forward<LicenseMetadataT>(value));
266 return *this;
267 }
269
271
274 inline const Aws::String& GetCreateTime() const { return m_createTime; }
275 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
276 template <typename CreateTimeT = Aws::String>
277 void SetCreateTime(CreateTimeT&& value) {
278 m_createTimeHasBeenSet = true;
279 m_createTime = std::forward<CreateTimeT>(value);
280 }
281 template <typename CreateTimeT = Aws::String>
282 GrantedLicense& WithCreateTime(CreateTimeT&& value) {
283 SetCreateTime(std::forward<CreateTimeT>(value));
284 return *this;
285 }
287
289
292 inline const Aws::String& GetVersion() const { return m_version; }
293 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
294 template <typename VersionT = Aws::String>
295 void SetVersion(VersionT&& value) {
296 m_versionHasBeenSet = true;
297 m_version = std::forward<VersionT>(value);
298 }
299 template <typename VersionT = Aws::String>
300 GrantedLicense& WithVersion(VersionT&& value) {
301 SetVersion(std::forward<VersionT>(value));
302 return *this;
303 }
305
307
310 inline const ReceivedMetadata& GetReceivedMetadata() const { return m_receivedMetadata; }
311 inline bool ReceivedMetadataHasBeenSet() const { return m_receivedMetadataHasBeenSet; }
312 template <typename ReceivedMetadataT = ReceivedMetadata>
313 void SetReceivedMetadata(ReceivedMetadataT&& value) {
314 m_receivedMetadataHasBeenSet = true;
315 m_receivedMetadata = std::forward<ReceivedMetadataT>(value);
316 }
317 template <typename ReceivedMetadataT = ReceivedMetadata>
318 GrantedLicense& WithReceivedMetadata(ReceivedMetadataT&& value) {
319 SetReceivedMetadata(std::forward<ReceivedMetadataT>(value));
320 return *this;
321 }
323 private:
324 Aws::String m_licenseArn;
325
326 Aws::String m_licenseName;
327
328 Aws::String m_productName;
329
330 Aws::String m_productSKU;
331
332 IssuerDetails m_issuer;
333
334 Aws::String m_homeRegion;
335
337
338 DatetimeRange m_validity;
339
340 Aws::String m_beneficiary;
341
342 Aws::Vector<Entitlement> m_entitlements;
343
344 ConsumptionConfiguration m_consumptionConfiguration;
345
346 Aws::Vector<Metadata> m_licenseMetadata;
347
348 Aws::String m_createTime;
349
350 Aws::String m_version;
351
352 ReceivedMetadata m_receivedMetadata;
353 bool m_licenseArnHasBeenSet = false;
354 bool m_licenseNameHasBeenSet = false;
355 bool m_productNameHasBeenSet = false;
356 bool m_productSKUHasBeenSet = false;
357 bool m_issuerHasBeenSet = false;
358 bool m_homeRegionHasBeenSet = false;
359 bool m_statusHasBeenSet = false;
360 bool m_validityHasBeenSet = false;
361 bool m_beneficiaryHasBeenSet = false;
362 bool m_entitlementsHasBeenSet = false;
363 bool m_consumptionConfigurationHasBeenSet = false;
364 bool m_licenseMetadataHasBeenSet = false;
365 bool m_createTimeHasBeenSet = false;
366 bool m_versionHasBeenSet = false;
367 bool m_receivedMetadataHasBeenSet = false;
368};
369
370} // namespace Model
371} // namespace LicenseManager
372} // namespace Aws
GrantedLicense & WithReceivedMetadata(ReceivedMetadataT &&value)
const Aws::String & GetLicenseArn() const
const DatetimeRange & GetValidity() const
void SetLicenseName(LicenseNameT &&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)
const Aws::Vector< Entitlement > & GetEntitlements() const
GrantedLicense & AddEntitlements(EntitlementsT &&value)
void SetConsumptionConfiguration(ConsumptionConfigurationT &&value)
const Aws::String & GetProductSKU() const
const Aws::String & GetHomeRegion() const
void SetLicenseMetadata(LicenseMetadataT &&value)
const ConsumptionConfiguration & GetConsumptionConfiguration() const
const Aws::String & GetProductName() const
GrantedLicense & WithLicenseArn(LicenseArnT &&value)
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)
GrantedLicense & WithLicenseMetadata(LicenseMetadataT &&value)
const Aws::String & GetLicenseName() const
void SetBeneficiary(BeneficiaryT &&value)
GrantedLicense & WithHomeRegion(HomeRegionT &&value)
GrantedLicense & WithStatus(LicenseStatus value)
AWS_LICENSEMANAGER_API GrantedLicense()=default
GrantedLicense & AddLicenseMetadata(LicenseMetadataT &&value)
GrantedLicense & WithBeneficiary(BeneficiaryT &&value)
GrantedLicense & WithConsumptionConfiguration(ConsumptionConfigurationT &&value)
const IssuerDetails & GetIssuer() const
GrantedLicense & WithProductSKU(ProductSKUT &&value)
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