AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLicenseArn(const Aws::String& value) { m_licenseArnHasBeenSet = true; m_licenseArn = value; }
56 inline void SetLicenseArn(Aws::String&& value) { m_licenseArnHasBeenSet = true; m_licenseArn = std::move(value); }
57 inline void SetLicenseArn(const char* value) { m_licenseArnHasBeenSet = true; m_licenseArn.assign(value); }
58 inline GrantedLicense& WithLicenseArn(const Aws::String& value) { SetLicenseArn(value); return *this;}
59 inline GrantedLicense& WithLicenseArn(Aws::String&& value) { SetLicenseArn(std::move(value)); return *this;}
60 inline GrantedLicense& WithLicenseArn(const char* value) { SetLicenseArn(value); return *this;}
62
64
67 inline const Aws::String& GetLicenseName() const{ return m_licenseName; }
68 inline bool LicenseNameHasBeenSet() const { return m_licenseNameHasBeenSet; }
69 inline void SetLicenseName(const Aws::String& value) { m_licenseNameHasBeenSet = true; m_licenseName = value; }
70 inline void SetLicenseName(Aws::String&& value) { m_licenseNameHasBeenSet = true; m_licenseName = std::move(value); }
71 inline void SetLicenseName(const char* value) { m_licenseNameHasBeenSet = true; m_licenseName.assign(value); }
72 inline GrantedLicense& WithLicenseName(const Aws::String& value) { SetLicenseName(value); return *this;}
73 inline GrantedLicense& WithLicenseName(Aws::String&& value) { SetLicenseName(std::move(value)); return *this;}
74 inline GrantedLicense& WithLicenseName(const char* value) { SetLicenseName(value); return *this;}
76
78
81 inline const Aws::String& GetProductName() const{ return m_productName; }
82 inline bool ProductNameHasBeenSet() const { return m_productNameHasBeenSet; }
83 inline void SetProductName(const Aws::String& value) { m_productNameHasBeenSet = true; m_productName = value; }
84 inline void SetProductName(Aws::String&& value) { m_productNameHasBeenSet = true; m_productName = std::move(value); }
85 inline void SetProductName(const char* value) { m_productNameHasBeenSet = true; m_productName.assign(value); }
86 inline GrantedLicense& WithProductName(const Aws::String& value) { SetProductName(value); return *this;}
87 inline GrantedLicense& WithProductName(Aws::String&& value) { SetProductName(std::move(value)); return *this;}
88 inline GrantedLicense& WithProductName(const char* value) { SetProductName(value); return *this;}
90
92
95 inline const Aws::String& GetProductSKU() const{ return m_productSKU; }
96 inline bool ProductSKUHasBeenSet() const { return m_productSKUHasBeenSet; }
97 inline void SetProductSKU(const Aws::String& value) { m_productSKUHasBeenSet = true; m_productSKU = value; }
98 inline void SetProductSKU(Aws::String&& value) { m_productSKUHasBeenSet = true; m_productSKU = std::move(value); }
99 inline void SetProductSKU(const char* value) { m_productSKUHasBeenSet = true; m_productSKU.assign(value); }
100 inline GrantedLicense& WithProductSKU(const Aws::String& value) { SetProductSKU(value); return *this;}
101 inline GrantedLicense& WithProductSKU(Aws::String&& value) { SetProductSKU(std::move(value)); return *this;}
102 inline GrantedLicense& WithProductSKU(const char* value) { SetProductSKU(value); return *this;}
104
106
109 inline const IssuerDetails& GetIssuer() const{ return m_issuer; }
110 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
111 inline void SetIssuer(const IssuerDetails& value) { m_issuerHasBeenSet = true; m_issuer = value; }
112 inline void SetIssuer(IssuerDetails&& value) { m_issuerHasBeenSet = true; m_issuer = std::move(value); }
113 inline GrantedLicense& WithIssuer(const IssuerDetails& value) { SetIssuer(value); return *this;}
114 inline GrantedLicense& WithIssuer(IssuerDetails&& value) { SetIssuer(std::move(value)); return *this;}
116
118
121 inline const Aws::String& GetHomeRegion() const{ return m_homeRegion; }
122 inline bool HomeRegionHasBeenSet() const { return m_homeRegionHasBeenSet; }
123 inline void SetHomeRegion(const Aws::String& value) { m_homeRegionHasBeenSet = true; m_homeRegion = value; }
124 inline void SetHomeRegion(Aws::String&& value) { m_homeRegionHasBeenSet = true; m_homeRegion = std::move(value); }
125 inline void SetHomeRegion(const char* value) { m_homeRegionHasBeenSet = true; m_homeRegion.assign(value); }
126 inline GrantedLicense& WithHomeRegion(const Aws::String& value) { SetHomeRegion(value); return *this;}
127 inline GrantedLicense& WithHomeRegion(Aws::String&& value) { SetHomeRegion(std::move(value)); return *this;}
128 inline GrantedLicense& WithHomeRegion(const char* value) { SetHomeRegion(value); return *this;}
130
132
135 inline const LicenseStatus& GetStatus() const{ return m_status; }
136 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
137 inline void SetStatus(const LicenseStatus& value) { m_statusHasBeenSet = true; m_status = value; }
138 inline void SetStatus(LicenseStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
139 inline GrantedLicense& WithStatus(const LicenseStatus& value) { SetStatus(value); return *this;}
140 inline GrantedLicense& WithStatus(LicenseStatus&& value) { SetStatus(std::move(value)); return *this;}
142
144
148 inline const DatetimeRange& GetValidity() const{ return m_validity; }
149 inline bool ValidityHasBeenSet() const { return m_validityHasBeenSet; }
150 inline void SetValidity(const DatetimeRange& value) { m_validityHasBeenSet = true; m_validity = value; }
151 inline void SetValidity(DatetimeRange&& value) { m_validityHasBeenSet = true; m_validity = std::move(value); }
152 inline GrantedLicense& WithValidity(const DatetimeRange& value) { SetValidity(value); return *this;}
153 inline GrantedLicense& WithValidity(DatetimeRange&& value) { SetValidity(std::move(value)); return *this;}
155
157
160 inline const Aws::String& GetBeneficiary() const{ return m_beneficiary; }
161 inline bool BeneficiaryHasBeenSet() const { return m_beneficiaryHasBeenSet; }
162 inline void SetBeneficiary(const Aws::String& value) { m_beneficiaryHasBeenSet = true; m_beneficiary = value; }
163 inline void SetBeneficiary(Aws::String&& value) { m_beneficiaryHasBeenSet = true; m_beneficiary = std::move(value); }
164 inline void SetBeneficiary(const char* value) { m_beneficiaryHasBeenSet = true; m_beneficiary.assign(value); }
165 inline GrantedLicense& WithBeneficiary(const Aws::String& value) { SetBeneficiary(value); return *this;}
166 inline GrantedLicense& WithBeneficiary(Aws::String&& value) { SetBeneficiary(std::move(value)); return *this;}
167 inline GrantedLicense& WithBeneficiary(const char* value) { SetBeneficiary(value); return *this;}
169
171
174 inline const Aws::Vector<Entitlement>& GetEntitlements() const{ return m_entitlements; }
175 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
176 inline void SetEntitlements(const Aws::Vector<Entitlement>& value) { m_entitlementsHasBeenSet = true; m_entitlements = value; }
177 inline void SetEntitlements(Aws::Vector<Entitlement>&& value) { m_entitlementsHasBeenSet = true; m_entitlements = std::move(value); }
178 inline GrantedLicense& WithEntitlements(const Aws::Vector<Entitlement>& value) { SetEntitlements(value); return *this;}
179 inline GrantedLicense& WithEntitlements(Aws::Vector<Entitlement>&& value) { SetEntitlements(std::move(value)); return *this;}
180 inline GrantedLicense& AddEntitlements(const Entitlement& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(value); return *this; }
181 inline GrantedLicense& AddEntitlements(Entitlement&& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(std::move(value)); return *this; }
183
185
188 inline const ConsumptionConfiguration& GetConsumptionConfiguration() const{ return m_consumptionConfiguration; }
189 inline bool ConsumptionConfigurationHasBeenSet() const { return m_consumptionConfigurationHasBeenSet; }
190 inline void SetConsumptionConfiguration(const ConsumptionConfiguration& value) { m_consumptionConfigurationHasBeenSet = true; m_consumptionConfiguration = value; }
191 inline void SetConsumptionConfiguration(ConsumptionConfiguration&& value) { m_consumptionConfigurationHasBeenSet = true; m_consumptionConfiguration = std::move(value); }
195
197
200 inline const Aws::Vector<Metadata>& GetLicenseMetadata() const{ return m_licenseMetadata; }
201 inline bool LicenseMetadataHasBeenSet() const { return m_licenseMetadataHasBeenSet; }
202 inline void SetLicenseMetadata(const Aws::Vector<Metadata>& value) { m_licenseMetadataHasBeenSet = true; m_licenseMetadata = value; }
203 inline void SetLicenseMetadata(Aws::Vector<Metadata>&& value) { m_licenseMetadataHasBeenSet = true; m_licenseMetadata = std::move(value); }
204 inline GrantedLicense& WithLicenseMetadata(const Aws::Vector<Metadata>& value) { SetLicenseMetadata(value); return *this;}
205 inline GrantedLicense& WithLicenseMetadata(Aws::Vector<Metadata>&& value) { SetLicenseMetadata(std::move(value)); return *this;}
206 inline GrantedLicense& AddLicenseMetadata(const Metadata& value) { m_licenseMetadataHasBeenSet = true; m_licenseMetadata.push_back(value); return *this; }
207 inline GrantedLicense& AddLicenseMetadata(Metadata&& value) { m_licenseMetadataHasBeenSet = true; m_licenseMetadata.push_back(std::move(value)); return *this; }
209
211
214 inline const Aws::String& GetCreateTime() const{ return m_createTime; }
215 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
216 inline void SetCreateTime(const Aws::String& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
217 inline void SetCreateTime(Aws::String&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
218 inline void SetCreateTime(const char* value) { m_createTimeHasBeenSet = true; m_createTime.assign(value); }
219 inline GrantedLicense& WithCreateTime(const Aws::String& value) { SetCreateTime(value); return *this;}
220 inline GrantedLicense& WithCreateTime(Aws::String&& value) { SetCreateTime(std::move(value)); return *this;}
221 inline GrantedLicense& WithCreateTime(const char* value) { SetCreateTime(value); return *this;}
223
225
228 inline const Aws::String& GetVersion() const{ return m_version; }
229 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
230 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
231 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
232 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
233 inline GrantedLicense& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
234 inline GrantedLicense& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
235 inline GrantedLicense& WithVersion(const char* value) { SetVersion(value); return *this;}
237
239
242 inline const ReceivedMetadata& GetReceivedMetadata() const{ return m_receivedMetadata; }
243 inline bool ReceivedMetadataHasBeenSet() const { return m_receivedMetadataHasBeenSet; }
244 inline void SetReceivedMetadata(const ReceivedMetadata& value) { m_receivedMetadataHasBeenSet = true; m_receivedMetadata = value; }
245 inline void SetReceivedMetadata(ReceivedMetadata&& value) { m_receivedMetadataHasBeenSet = true; m_receivedMetadata = std::move(value); }
246 inline GrantedLicense& WithReceivedMetadata(const ReceivedMetadata& value) { SetReceivedMetadata(value); return *this;}
247 inline GrantedLicense& WithReceivedMetadata(ReceivedMetadata&& value) { SetReceivedMetadata(std::move(value)); return *this;}
249 private:
250
251 Aws::String m_licenseArn;
252 bool m_licenseArnHasBeenSet = false;
253
254 Aws::String m_licenseName;
255 bool m_licenseNameHasBeenSet = false;
256
257 Aws::String m_productName;
258 bool m_productNameHasBeenSet = false;
259
260 Aws::String m_productSKU;
261 bool m_productSKUHasBeenSet = false;
262
263 IssuerDetails m_issuer;
264 bool m_issuerHasBeenSet = false;
265
266 Aws::String m_homeRegion;
267 bool m_homeRegionHasBeenSet = false;
268
269 LicenseStatus m_status;
270 bool m_statusHasBeenSet = false;
271
272 DatetimeRange m_validity;
273 bool m_validityHasBeenSet = false;
274
275 Aws::String m_beneficiary;
276 bool m_beneficiaryHasBeenSet = false;
277
278 Aws::Vector<Entitlement> m_entitlements;
279 bool m_entitlementsHasBeenSet = false;
280
281 ConsumptionConfiguration m_consumptionConfiguration;
282 bool m_consumptionConfigurationHasBeenSet = false;
283
284 Aws::Vector<Metadata> m_licenseMetadata;
285 bool m_licenseMetadataHasBeenSet = false;
286
287 Aws::String m_createTime;
288 bool m_createTimeHasBeenSet = false;
289
290 Aws::String m_version;
291 bool m_versionHasBeenSet = false;
292
293 ReceivedMetadata m_receivedMetadata;
294 bool m_receivedMetadataHasBeenSet = false;
295 };
296
297} // namespace Model
298} // namespace LicenseManager
299} // namespace Aws
void SetValidity(DatetimeRange &&value)
GrantedLicense & AddLicenseMetadata(Metadata &&value)
const Aws::String & GetLicenseArn() const
GrantedLicense & WithCreateTime(const Aws::String &value)
const DatetimeRange & GetValidity() const
GrantedLicense & WithCreateTime(Aws::String &&value)
void SetValidity(const DatetimeRange &value)
void SetLicenseMetadata(const Aws::Vector< Metadata > &value)
GrantedLicense & WithHomeRegion(Aws::String &&value)
GrantedLicense & WithVersion(const Aws::String &value)
void SetCreateTime(const Aws::String &value)
GrantedLicense & WithVersion(const char *value)
AWS_LICENSEMANAGER_API GrantedLicense & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLicenseMetadata(Aws::Vector< Metadata > &&value)
void SetConsumptionConfiguration(ConsumptionConfiguration &&value)
GrantedLicense & WithLicenseName(Aws::String &&value)
GrantedLicense & WithProductName(Aws::String &&value)
void SetBeneficiary(const Aws::String &value)
GrantedLicense & WithProductName(const char *value)
AWS_LICENSEMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEntitlements(const Aws::Vector< Entitlement > &value)
const Aws::Vector< Entitlement > & GetEntitlements() const
GrantedLicense & WithReceivedMetadata(ReceivedMetadata &&value)
void SetHomeRegion(const Aws::String &value)
GrantedLicense & WithBeneficiary(const char *value)
GrantedLicense & WithIssuer(IssuerDetails &&value)
GrantedLicense & WithHomeRegion(const char *value)
const Aws::String & GetProductSKU() const
const Aws::String & GetHomeRegion() const
GrantedLicense & WithStatus(LicenseStatus &&value)
GrantedLicense & WithLicenseArn(const char *value)
AWS_LICENSEMANAGER_API GrantedLicense()
const ConsumptionConfiguration & GetConsumptionConfiguration() const
GrantedLicense & WithEntitlements(const Aws::Vector< Entitlement > &value)
const Aws::String & GetProductName() const
GrantedLicense & WithProductSKU(const char *value)
AWS_LICENSEMANAGER_API GrantedLicense(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCreateTime() const
const ReceivedMetadata & GetReceivedMetadata() const
void SetConsumptionConfiguration(const ConsumptionConfiguration &value)
void SetReceivedMetadata(const ReceivedMetadata &value)
const LicenseStatus & GetStatus() const
GrantedLicense & AddEntitlements(Entitlement &&value)
GrantedLicense & WithConsumptionConfiguration(const ConsumptionConfiguration &value)
void SetReceivedMetadata(ReceivedMetadata &&value)
void SetLicenseArn(const Aws::String &value)
void SetProductSKU(const Aws::String &value)
GrantedLicense & WithConsumptionConfiguration(ConsumptionConfiguration &&value)
GrantedLicense & WithProductSKU(Aws::String &&value)
const Aws::String & GetLicenseName() const
GrantedLicense & WithValidity(DatetimeRange &&value)
void SetVersion(const Aws::String &value)
void SetEntitlements(Aws::Vector< Entitlement > &&value)
GrantedLicense & WithIssuer(const IssuerDetails &value)
GrantedLicense & WithLicenseMetadata(const Aws::Vector< Metadata > &value)
GrantedLicense & WithStatus(const LicenseStatus &value)
GrantedLicense & WithEntitlements(Aws::Vector< Entitlement > &&value)
GrantedLicense & WithLicenseName(const Aws::String &value)
void SetIssuer(const IssuerDetails &value)
void SetStatus(const LicenseStatus &value)
GrantedLicense & WithProductName(const Aws::String &value)
GrantedLicense & WithBeneficiary(Aws::String &&value)
GrantedLicense & WithBeneficiary(const Aws::String &value)
GrantedLicense & WithCreateTime(const char *value)
void SetProductName(const Aws::String &value)
GrantedLicense & AddLicenseMetadata(const Metadata &value)
GrantedLicense & WithValidity(const DatetimeRange &value)
GrantedLicense & AddEntitlements(const Entitlement &value)
void SetLicenseName(const Aws::String &value)
GrantedLicense & WithLicenseArn(Aws::String &&value)
GrantedLicense & WithReceivedMetadata(const ReceivedMetadata &value)
GrantedLicense & WithLicenseName(const char *value)
const IssuerDetails & GetIssuer() const
GrantedLicense & WithVersion(Aws::String &&value)
GrantedLicense & WithLicenseMetadata(Aws::Vector< Metadata > &&value)
GrantedLicense & WithHomeRegion(const Aws::String &value)
const Aws::String & GetBeneficiary() const
GrantedLicense & WithProductSKU(const Aws::String &value)
const Aws::Vector< Metadata > & GetLicenseMetadata() const
GrantedLicense & WithLicenseArn(const Aws::String &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