AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetProductSKU(const Aws::String& value) { m_productSKUHasBeenSet = true; m_productSKU = value; }
47 inline void SetProductSKU(Aws::String&& value) { m_productSKUHasBeenSet = true; m_productSKU = std::move(value); }
48 inline void SetProductSKU(const char* value) { m_productSKUHasBeenSet = true; m_productSKU.assign(value); }
49 inline CheckoutLicenseRequest& WithProductSKU(const Aws::String& value) { SetProductSKU(value); return *this;}
50 inline CheckoutLicenseRequest& WithProductSKU(Aws::String&& value) { SetProductSKU(std::move(value)); return *this;}
51 inline CheckoutLicenseRequest& WithProductSKU(const char* value) { SetProductSKU(value); return *this;}
53
55
58 inline const CheckoutType& GetCheckoutType() const{ return m_checkoutType; }
59 inline bool CheckoutTypeHasBeenSet() const { return m_checkoutTypeHasBeenSet; }
60 inline void SetCheckoutType(const CheckoutType& value) { m_checkoutTypeHasBeenSet = true; m_checkoutType = value; }
61 inline void SetCheckoutType(CheckoutType&& value) { m_checkoutTypeHasBeenSet = true; m_checkoutType = std::move(value); }
62 inline CheckoutLicenseRequest& WithCheckoutType(const CheckoutType& value) { SetCheckoutType(value); return *this;}
63 inline CheckoutLicenseRequest& WithCheckoutType(CheckoutType&& value) { SetCheckoutType(std::move(value)); return *this;}
65
67
70 inline const Aws::String& GetKeyFingerprint() const{ return m_keyFingerprint; }
71 inline bool KeyFingerprintHasBeenSet() const { return m_keyFingerprintHasBeenSet; }
72 inline void SetKeyFingerprint(const Aws::String& value) { m_keyFingerprintHasBeenSet = true; m_keyFingerprint = value; }
73 inline void SetKeyFingerprint(Aws::String&& value) { m_keyFingerprintHasBeenSet = true; m_keyFingerprint = std::move(value); }
74 inline void SetKeyFingerprint(const char* value) { m_keyFingerprintHasBeenSet = true; m_keyFingerprint.assign(value); }
75 inline CheckoutLicenseRequest& WithKeyFingerprint(const Aws::String& value) { SetKeyFingerprint(value); return *this;}
76 inline CheckoutLicenseRequest& WithKeyFingerprint(Aws::String&& value) { SetKeyFingerprint(std::move(value)); return *this;}
77 inline CheckoutLicenseRequest& WithKeyFingerprint(const char* value) { SetKeyFingerprint(value); return *this;}
79
81
84 inline const Aws::Vector<EntitlementData>& GetEntitlements() const{ return m_entitlements; }
85 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
86 inline void SetEntitlements(const Aws::Vector<EntitlementData>& value) { m_entitlementsHasBeenSet = true; m_entitlements = value; }
87 inline void SetEntitlements(Aws::Vector<EntitlementData>&& value) { m_entitlementsHasBeenSet = true; m_entitlements = std::move(value); }
89 inline CheckoutLicenseRequest& WithEntitlements(Aws::Vector<EntitlementData>&& value) { SetEntitlements(std::move(value)); return *this;}
90 inline CheckoutLicenseRequest& AddEntitlements(const EntitlementData& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(value); return *this; }
91 inline CheckoutLicenseRequest& AddEntitlements(EntitlementData&& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(std::move(value)); return *this; }
93
95
99 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
100 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
101 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
102 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
103 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
104 inline CheckoutLicenseRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
105 inline CheckoutLicenseRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
106 inline CheckoutLicenseRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
108
110
113 inline const Aws::String& GetBeneficiary() const{ return m_beneficiary; }
114 inline bool BeneficiaryHasBeenSet() const { return m_beneficiaryHasBeenSet; }
115 inline void SetBeneficiary(const Aws::String& value) { m_beneficiaryHasBeenSet = true; m_beneficiary = value; }
116 inline void SetBeneficiary(Aws::String&& value) { m_beneficiaryHasBeenSet = true; m_beneficiary = std::move(value); }
117 inline void SetBeneficiary(const char* value) { m_beneficiaryHasBeenSet = true; m_beneficiary.assign(value); }
118 inline CheckoutLicenseRequest& WithBeneficiary(const Aws::String& value) { SetBeneficiary(value); return *this;}
119 inline CheckoutLicenseRequest& WithBeneficiary(Aws::String&& value) { SetBeneficiary(std::move(value)); return *this;}
120 inline CheckoutLicenseRequest& WithBeneficiary(const char* value) { SetBeneficiary(value); return *this;}
122
124
127 inline const Aws::String& GetNodeId() const{ return m_nodeId; }
128 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
129 inline void SetNodeId(const Aws::String& value) { m_nodeIdHasBeenSet = true; m_nodeId = value; }
130 inline void SetNodeId(Aws::String&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::move(value); }
131 inline void SetNodeId(const char* value) { m_nodeIdHasBeenSet = true; m_nodeId.assign(value); }
132 inline CheckoutLicenseRequest& WithNodeId(const Aws::String& value) { SetNodeId(value); return *this;}
133 inline CheckoutLicenseRequest& WithNodeId(Aws::String&& value) { SetNodeId(std::move(value)); return *this;}
134 inline CheckoutLicenseRequest& WithNodeId(const char* value) { SetNodeId(value); return *this;}
136 private:
137
138 Aws::String m_productSKU;
139 bool m_productSKUHasBeenSet = false;
140
141 CheckoutType m_checkoutType;
142 bool m_checkoutTypeHasBeenSet = false;
143
144 Aws::String m_keyFingerprint;
145 bool m_keyFingerprintHasBeenSet = false;
146
147 Aws::Vector<EntitlementData> m_entitlements;
148 bool m_entitlementsHasBeenSet = false;
149
150 Aws::String m_clientToken;
151 bool m_clientTokenHasBeenSet = false;
152
153 Aws::String m_beneficiary;
154 bool m_beneficiaryHasBeenSet = false;
155
156 Aws::String m_nodeId;
157 bool m_nodeIdHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace LicenseManager
162} // namespace Aws
CheckoutLicenseRequest & WithProductSKU(const char *value)
CheckoutLicenseRequest & WithKeyFingerprint(Aws::String &&value)
CheckoutLicenseRequest & WithBeneficiary(Aws::String &&value)
const Aws::Vector< EntitlementData > & GetEntitlements() const
CheckoutLicenseRequest & WithKeyFingerprint(const Aws::String &value)
CheckoutLicenseRequest & WithBeneficiary(const Aws::String &value)
CheckoutLicenseRequest & WithEntitlements(Aws::Vector< EntitlementData > &&value)
CheckoutLicenseRequest & WithProductSKU(const Aws::String &value)
CheckoutLicenseRequest & WithNodeId(const Aws::String &value)
CheckoutLicenseRequest & WithNodeId(const char *value)
CheckoutLicenseRequest & WithClientToken(const Aws::String &value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
CheckoutLicenseRequest & WithBeneficiary(const char *value)
void SetEntitlements(const Aws::Vector< EntitlementData > &value)
CheckoutLicenseRequest & WithCheckoutType(CheckoutType &&value)
virtual const char * GetServiceRequestName() const override
CheckoutLicenseRequest & WithKeyFingerprint(const char *value)
CheckoutLicenseRequest & WithClientToken(const char *value)
CheckoutLicenseRequest & AddEntitlements(EntitlementData &&value)
CheckoutLicenseRequest & AddEntitlements(const EntitlementData &value)
CheckoutLicenseRequest & WithNodeId(Aws::String &&value)
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CheckoutLicenseRequest & WithClientToken(Aws::String &&value)
CheckoutLicenseRequest & WithCheckoutType(const CheckoutType &value)
void SetEntitlements(Aws::Vector< EntitlementData > &&value)
CheckoutLicenseRequest & WithEntitlements(const Aws::Vector< EntitlementData > &value)
CheckoutLicenseRequest & WithProductSKU(Aws::String &&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