AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CheckoutLicenseRequest.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/license-manager/LicenseManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/license-manager/model/CheckoutType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/license-manager/model/EntitlementData.h>
13#include <utility>
14
15namespace Aws
16{
17namespace LicenseManager
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LICENSEMANAGER_API CheckoutLicenseRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CheckoutLicense"; }
34
35 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
36
37 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetProductSKU() const { return m_productSKU; }
45 inline bool ProductSKUHasBeenSet() const { return m_productSKUHasBeenSet; }
46 template<typename ProductSKUT = Aws::String>
47 void SetProductSKU(ProductSKUT&& value) { m_productSKUHasBeenSet = true; m_productSKU = std::forward<ProductSKUT>(value); }
48 template<typename ProductSKUT = Aws::String>
49 CheckoutLicenseRequest& WithProductSKU(ProductSKUT&& value) { SetProductSKU(std::forward<ProductSKUT>(value)); return *this;}
51
53
56 inline CheckoutType GetCheckoutType() const { return m_checkoutType; }
57 inline bool CheckoutTypeHasBeenSet() const { return m_checkoutTypeHasBeenSet; }
58 inline void SetCheckoutType(CheckoutType value) { m_checkoutTypeHasBeenSet = true; m_checkoutType = value; }
61
63
66 inline const Aws::String& GetKeyFingerprint() const { return m_keyFingerprint; }
67 inline bool KeyFingerprintHasBeenSet() const { return m_keyFingerprintHasBeenSet; }
68 template<typename KeyFingerprintT = Aws::String>
69 void SetKeyFingerprint(KeyFingerprintT&& value) { m_keyFingerprintHasBeenSet = true; m_keyFingerprint = std::forward<KeyFingerprintT>(value); }
70 template<typename KeyFingerprintT = Aws::String>
71 CheckoutLicenseRequest& WithKeyFingerprint(KeyFingerprintT&& value) { SetKeyFingerprint(std::forward<KeyFingerprintT>(value)); return *this;}
73
75
78 inline const Aws::Vector<EntitlementData>& GetEntitlements() const { return m_entitlements; }
79 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
80 template<typename EntitlementsT = Aws::Vector<EntitlementData>>
81 void SetEntitlements(EntitlementsT&& value) { m_entitlementsHasBeenSet = true; m_entitlements = std::forward<EntitlementsT>(value); }
82 template<typename EntitlementsT = Aws::Vector<EntitlementData>>
83 CheckoutLicenseRequest& WithEntitlements(EntitlementsT&& value) { SetEntitlements(std::forward<EntitlementsT>(value)); return *this;}
84 template<typename EntitlementsT = EntitlementData>
85 CheckoutLicenseRequest& AddEntitlements(EntitlementsT&& value) { m_entitlementsHasBeenSet = true; m_entitlements.emplace_back(std::forward<EntitlementsT>(value)); return *this; }
87
89
93 inline const Aws::String& GetClientToken() const { return m_clientToken; }
94 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
95 template<typename ClientTokenT = Aws::String>
96 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
97 template<typename ClientTokenT = Aws::String>
98 CheckoutLicenseRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
100
102
105 inline const Aws::String& GetBeneficiary() const { return m_beneficiary; }
106 inline bool BeneficiaryHasBeenSet() const { return m_beneficiaryHasBeenSet; }
107 template<typename BeneficiaryT = Aws::String>
108 void SetBeneficiary(BeneficiaryT&& value) { m_beneficiaryHasBeenSet = true; m_beneficiary = std::forward<BeneficiaryT>(value); }
109 template<typename BeneficiaryT = Aws::String>
110 CheckoutLicenseRequest& WithBeneficiary(BeneficiaryT&& value) { SetBeneficiary(std::forward<BeneficiaryT>(value)); return *this;}
112
114
117 inline const Aws::String& GetNodeId() const { return m_nodeId; }
118 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
119 template<typename NodeIdT = Aws::String>
120 void SetNodeId(NodeIdT&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::forward<NodeIdT>(value); }
121 template<typename NodeIdT = Aws::String>
122 CheckoutLicenseRequest& WithNodeId(NodeIdT&& value) { SetNodeId(std::forward<NodeIdT>(value)); return *this;}
124 private:
125
126 Aws::String m_productSKU;
127 bool m_productSKUHasBeenSet = false;
128
129 CheckoutType m_checkoutType{CheckoutType::NOT_SET};
130 bool m_checkoutTypeHasBeenSet = false;
131
132 Aws::String m_keyFingerprint;
133 bool m_keyFingerprintHasBeenSet = false;
134
135 Aws::Vector<EntitlementData> m_entitlements;
136 bool m_entitlementsHasBeenSet = false;
137
138 Aws::String m_clientToken;
139 bool m_clientTokenHasBeenSet = false;
140
141 Aws::String m_beneficiary;
142 bool m_beneficiaryHasBeenSet = false;
143
144 Aws::String m_nodeId;
145 bool m_nodeIdHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace LicenseManager
150} // namespace Aws
CheckoutLicenseRequest & WithBeneficiary(BeneficiaryT &&value)
CheckoutLicenseRequest & WithCheckoutType(CheckoutType value)
CheckoutLicenseRequest & WithEntitlements(EntitlementsT &&value)
const Aws::Vector< EntitlementData > & GetEntitlements() const
CheckoutLicenseRequest & WithClientToken(ClientTokenT &&value)
CheckoutLicenseRequest & WithProductSKU(ProductSKUT &&value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
CheckoutLicenseRequest & WithKeyFingerprint(KeyFingerprintT &&value)
virtual const char * GetServiceRequestName() const override
CheckoutLicenseRequest & AddEntitlements(EntitlementsT &&value)
AWS_LICENSEMANAGER_API CheckoutLicenseRequest()=default
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CheckoutLicenseRequest & WithNodeId(NodeIdT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector