AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
CheckoutLicenseRequest.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/LicenseManagerRequest.h>
10#include <aws/license-manager/LicenseManager_EXPORTS.h>
11#include <aws/license-manager/model/CheckoutType.h>
12#include <aws/license-manager/model/EntitlementData.h>
13
14#include <utility>
15
16namespace Aws {
17namespace LicenseManager {
18namespace Model {
19
23 public:
24 AWS_LICENSEMANAGER_API CheckoutLicenseRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CheckoutLicense"; }
31
32 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
33
34 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
40 inline const Aws::String& GetProductSKU() const { return m_productSKU; }
41 inline bool ProductSKUHasBeenSet() const { return m_productSKUHasBeenSet; }
42 template <typename ProductSKUT = Aws::String>
43 void SetProductSKU(ProductSKUT&& value) {
44 m_productSKUHasBeenSet = true;
45 m_productSKU = std::forward<ProductSKUT>(value);
46 }
47 template <typename ProductSKUT = Aws::String>
48 CheckoutLicenseRequest& WithProductSKU(ProductSKUT&& value) {
49 SetProductSKU(std::forward<ProductSKUT>(value));
50 return *this;
51 }
53
55
58 inline CheckoutType GetCheckoutType() const { return m_checkoutType; }
59 inline bool CheckoutTypeHasBeenSet() const { return m_checkoutTypeHasBeenSet; }
60 inline void SetCheckoutType(CheckoutType value) {
61 m_checkoutTypeHasBeenSet = true;
62 m_checkoutType = value;
63 }
65 SetCheckoutType(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetKeyFingerprint() const { return m_keyFingerprint; }
75 inline bool KeyFingerprintHasBeenSet() const { return m_keyFingerprintHasBeenSet; }
76 template <typename KeyFingerprintT = Aws::String>
77 void SetKeyFingerprint(KeyFingerprintT&& value) {
78 m_keyFingerprintHasBeenSet = true;
79 m_keyFingerprint = std::forward<KeyFingerprintT>(value);
80 }
81 template <typename KeyFingerprintT = Aws::String>
82 CheckoutLicenseRequest& WithKeyFingerprint(KeyFingerprintT&& value) {
83 SetKeyFingerprint(std::forward<KeyFingerprintT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Vector<EntitlementData>& GetEntitlements() const { return m_entitlements; }
93 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
94 template <typename EntitlementsT = Aws::Vector<EntitlementData>>
95 void SetEntitlements(EntitlementsT&& value) {
96 m_entitlementsHasBeenSet = true;
97 m_entitlements = std::forward<EntitlementsT>(value);
98 }
99 template <typename EntitlementsT = Aws::Vector<EntitlementData>>
100 CheckoutLicenseRequest& WithEntitlements(EntitlementsT&& value) {
101 SetEntitlements(std::forward<EntitlementsT>(value));
102 return *this;
103 }
104 template <typename EntitlementsT = EntitlementData>
105 CheckoutLicenseRequest& AddEntitlements(EntitlementsT&& value) {
106 m_entitlementsHasBeenSet = true;
107 m_entitlements.emplace_back(std::forward<EntitlementsT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetClientToken() const { return m_clientToken; }
118 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
119 template <typename ClientTokenT = Aws::String>
120 void SetClientToken(ClientTokenT&& value) {
121 m_clientTokenHasBeenSet = true;
122 m_clientToken = std::forward<ClientTokenT>(value);
123 }
124 template <typename ClientTokenT = Aws::String>
126 SetClientToken(std::forward<ClientTokenT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetBeneficiary() const { return m_beneficiary; }
136 inline bool BeneficiaryHasBeenSet() const { return m_beneficiaryHasBeenSet; }
137 template <typename BeneficiaryT = Aws::String>
138 void SetBeneficiary(BeneficiaryT&& value) {
139 m_beneficiaryHasBeenSet = true;
140 m_beneficiary = std::forward<BeneficiaryT>(value);
141 }
142 template <typename BeneficiaryT = Aws::String>
144 SetBeneficiary(std::forward<BeneficiaryT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetNodeId() const { return m_nodeId; }
154 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
155 template <typename NodeIdT = Aws::String>
156 void SetNodeId(NodeIdT&& value) {
157 m_nodeIdHasBeenSet = true;
158 m_nodeId = std::forward<NodeIdT>(value);
159 }
160 template <typename NodeIdT = Aws::String>
162 SetNodeId(std::forward<NodeIdT>(value));
163 return *this;
164 }
166 private:
167 Aws::String m_productSKU;
168 bool m_productSKUHasBeenSet = false;
169
170 CheckoutType m_checkoutType{CheckoutType::NOT_SET};
171 bool m_checkoutTypeHasBeenSet = false;
172
173 Aws::String m_keyFingerprint;
174 bool m_keyFingerprintHasBeenSet = false;
175
176 Aws::Vector<EntitlementData> m_entitlements;
177 bool m_entitlementsHasBeenSet = false;
178
179 Aws::String m_clientToken;
180 bool m_clientTokenHasBeenSet = false;
181
182 Aws::String m_beneficiary;
183 bool m_beneficiaryHasBeenSet = false;
184
185 Aws::String m_nodeId;
186 bool m_nodeIdHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace LicenseManager
191} // 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