AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GrantedLicense.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/ReceivedMetadata.h>
15#include <aws/license-manager/model/Entitlement.h>
16#include <aws/license-manager/model/Metadata.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace LicenseManager
30{
31namespace Model
32{
33
41 {
42 public:
43 AWS_LICENSEMANAGER_API GrantedLicense() = default;
44 AWS_LICENSEMANAGER_API GrantedLicense(Aws::Utils::Json::JsonView jsonValue);
45 AWS_LICENSEMANAGER_API GrantedLicense& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetLicenseArn() const { return m_licenseArn; }
54 inline bool LicenseArnHasBeenSet() const { return m_licenseArnHasBeenSet; }
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>
58 GrantedLicense& WithLicenseArn(LicenseArnT&& value) { SetLicenseArn(std::forward<LicenseArnT>(value)); return *this;}
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) { m_licenseNameHasBeenSet = true; m_licenseName = std::forward<LicenseNameT>(value); }
69 template<typename LicenseNameT = Aws::String>
70 GrantedLicense& WithLicenseName(LicenseNameT&& value) { SetLicenseName(std::forward<LicenseNameT>(value)); return *this;}
72
74
77 inline const Aws::String& GetProductName() const { return m_productName; }
78 inline bool ProductNameHasBeenSet() const { return m_productNameHasBeenSet; }
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>
82 GrantedLicense& WithProductName(ProductNameT&& value) { SetProductName(std::forward<ProductNameT>(value)); return *this;}
84
86
89 inline const Aws::String& GetProductSKU() const { return m_productSKU; }
90 inline bool ProductSKUHasBeenSet() const { return m_productSKUHasBeenSet; }
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>
94 GrantedLicense& WithProductSKU(ProductSKUT&& value) { SetProductSKU(std::forward<ProductSKUT>(value)); return *this;}
96
98
101 inline const IssuerDetails& GetIssuer() const { return m_issuer; }
102 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
103 template<typename IssuerT = IssuerDetails>
104 void SetIssuer(IssuerT&& value) { m_issuerHasBeenSet = true; m_issuer = std::forward<IssuerT>(value); }
105 template<typename IssuerT = IssuerDetails>
106 GrantedLicense& WithIssuer(IssuerT&& value) { SetIssuer(std::forward<IssuerT>(value)); return *this;}
108
110
113 inline const Aws::String& GetHomeRegion() const { return m_homeRegion; }
114 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
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>
118 GrantedLicense& WithHomeRegion(HomeRegionT&& value) { SetHomeRegion(std::forward<HomeRegionT>(value)); return *this;}
120
122
125 inline LicenseStatus GetStatus() const { return m_status; }
126 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
127 inline void SetStatus(LicenseStatus value) { m_statusHasBeenSet = true; m_status = value; }
128 inline GrantedLicense& WithStatus(LicenseStatus value) { SetStatus(value); return *this;}
130
132
136 inline const DatetimeRange& GetValidity() const { return m_validity; }
137 inline bool ValidityHasBeenSet() const { return m_validityHasBeenSet; }
138 template<typename ValidityT = DatetimeRange>
139 void SetValidity(ValidityT&& value) { m_validityHasBeenSet = true; m_validity = std::forward<ValidityT>(value); }
140 template<typename ValidityT = DatetimeRange>
141 GrantedLicense& WithValidity(ValidityT&& value) { SetValidity(std::forward<ValidityT>(value)); return *this;}
143
145
148 inline const Aws::String& GetBeneficiary() const { return m_beneficiary; }
149 inline bool BeneficiaryHasBeenSet() const { return m_beneficiaryHasBeenSet; }
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>
153 GrantedLicense& WithBeneficiary(BeneficiaryT&& value) { SetBeneficiary(std::forward<BeneficiaryT>(value)); return *this;}
155
157
160 inline const Aws::Vector<Entitlement>& GetEntitlements() const { return m_entitlements; }
161 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
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>>
165 GrantedLicense& WithEntitlements(EntitlementsT&& value) { SetEntitlements(std::forward<EntitlementsT>(value)); return *this;}
166 template<typename EntitlementsT = Entitlement>
167 GrantedLicense& AddEntitlements(EntitlementsT&& value) { m_entitlementsHasBeenSet = true; m_entitlements.emplace_back(std::forward<EntitlementsT>(value)); return *this; }
169
171
174 inline const ConsumptionConfiguration& GetConsumptionConfiguration() const { return m_consumptionConfiguration; }
175 inline bool ConsumptionConfigurationHasBeenSet() const { return m_consumptionConfigurationHasBeenSet; }
176 template<typename ConsumptionConfigurationT = ConsumptionConfiguration>
177 void SetConsumptionConfiguration(ConsumptionConfigurationT&& value) { m_consumptionConfigurationHasBeenSet = true; m_consumptionConfiguration = std::forward<ConsumptionConfigurationT>(value); }
178 template<typename ConsumptionConfigurationT = ConsumptionConfiguration>
179 GrantedLicense& WithConsumptionConfiguration(ConsumptionConfigurationT&& value) { SetConsumptionConfiguration(std::forward<ConsumptionConfigurationT>(value)); return *this;}
181
183
186 inline const Aws::Vector<Metadata>& GetLicenseMetadata() const { return m_licenseMetadata; }
187 inline bool LicenseMetadataHasBeenSet() const { return m_licenseMetadataHasBeenSet; }
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>>
191 GrantedLicense& WithLicenseMetadata(LicenseMetadataT&& value) { SetLicenseMetadata(std::forward<LicenseMetadataT>(value)); return *this;}
192 template<typename LicenseMetadataT = Metadata>
193 GrantedLicense& AddLicenseMetadata(LicenseMetadataT&& value) { m_licenseMetadataHasBeenSet = true; m_licenseMetadata.emplace_back(std::forward<LicenseMetadataT>(value)); return *this; }
195
197
200 inline const Aws::String& GetCreateTime() const { return m_createTime; }
201 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
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>
205 GrantedLicense& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
207
209
212 inline const Aws::String& GetVersion() const { return m_version; }
213 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
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>
217 GrantedLicense& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
219
221
224 inline const ReceivedMetadata& GetReceivedMetadata() const { return m_receivedMetadata; }
225 inline bool ReceivedMetadataHasBeenSet() const { return m_receivedMetadataHasBeenSet; }
226 template<typename ReceivedMetadataT = ReceivedMetadata>
227 void SetReceivedMetadata(ReceivedMetadataT&& value) { m_receivedMetadataHasBeenSet = true; m_receivedMetadata = std::forward<ReceivedMetadataT>(value); }
228 template<typename ReceivedMetadataT = ReceivedMetadata>
229 GrantedLicense& WithReceivedMetadata(ReceivedMetadataT&& value) { SetReceivedMetadata(std::forward<ReceivedMetadataT>(value)); return *this;}
231 private:
232
233 Aws::String m_licenseArn;
234 bool m_licenseArnHasBeenSet = false;
235
236 Aws::String m_licenseName;
237 bool m_licenseNameHasBeenSet = false;
238
239 Aws::String m_productName;
240 bool m_productNameHasBeenSet = false;
241
242 Aws::String m_productSKU;
243 bool m_productSKUHasBeenSet = false;
244
245 IssuerDetails m_issuer;
246 bool m_issuerHasBeenSet = false;
247
248 Aws::String m_homeRegion;
249 bool m_homeRegionHasBeenSet = false;
250
252 bool m_statusHasBeenSet = false;
253
254 DatetimeRange m_validity;
255 bool m_validityHasBeenSet = false;
256
257 Aws::String m_beneficiary;
258 bool m_beneficiaryHasBeenSet = false;
259
260 Aws::Vector<Entitlement> m_entitlements;
261 bool m_entitlementsHasBeenSet = false;
262
263 ConsumptionConfiguration m_consumptionConfiguration;
264 bool m_consumptionConfigurationHasBeenSet = false;
265
266 Aws::Vector<Metadata> m_licenseMetadata;
267 bool m_licenseMetadataHasBeenSet = false;
268
269 Aws::String m_createTime;
270 bool m_createTimeHasBeenSet = false;
271
272 Aws::String m_version;
273 bool m_versionHasBeenSet = false;
274
275 ReceivedMetadata m_receivedMetadata;
276 bool m_receivedMetadataHasBeenSet = false;
277 };
278
279} // namespace Model
280} // namespace LicenseManager
281} // 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