AWS SDK for C++

AWS SDK for C++ Version 1.11.681

Loading...
Searching...
No Matches
CheckoutBorrowLicenseRequest.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/DigitalSignatureMethod.h>
12#include <aws/license-manager/model/EntitlementData.h>
13#include <aws/license-manager/model/Metadata.h>
14
15#include <utility>
16
17namespace Aws {
18namespace LicenseManager {
19namespace Model {
20
24 public:
25 AWS_LICENSEMANAGER_API CheckoutBorrowLicenseRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CheckoutBorrowLicense"; }
32
33 AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override;
34
35 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
42 inline const Aws::String& GetLicenseArn() const { return m_licenseArn; }
43 inline bool LicenseArnHasBeenSet() const { return m_licenseArnHasBeenSet; }
44 template <typename LicenseArnT = Aws::String>
45 void SetLicenseArn(LicenseArnT&& value) {
46 m_licenseArnHasBeenSet = true;
47 m_licenseArn = std::forward<LicenseArnT>(value);
48 }
49 template <typename LicenseArnT = Aws::String>
51 SetLicenseArn(std::forward<LicenseArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<EntitlementData>& GetEntitlements() const { return m_entitlements; }
61 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
62 template <typename EntitlementsT = Aws::Vector<EntitlementData>>
63 void SetEntitlements(EntitlementsT&& value) {
64 m_entitlementsHasBeenSet = true;
65 m_entitlements = std::forward<EntitlementsT>(value);
66 }
67 template <typename EntitlementsT = Aws::Vector<EntitlementData>>
69 SetEntitlements(std::forward<EntitlementsT>(value));
70 return *this;
71 }
72 template <typename EntitlementsT = EntitlementData>
74 m_entitlementsHasBeenSet = true;
75 m_entitlements.emplace_back(std::forward<EntitlementsT>(value));
76 return *this;
77 }
79
81
87 inline DigitalSignatureMethod GetDigitalSignatureMethod() const { return m_digitalSignatureMethod; }
88 inline bool DigitalSignatureMethodHasBeenSet() const { return m_digitalSignatureMethodHasBeenSet; }
90 m_digitalSignatureMethodHasBeenSet = true;
91 m_digitalSignatureMethod = value;
92 }
95 return *this;
96 }
98
100
103 inline const Aws::String& GetNodeId() const { return m_nodeId; }
104 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
105 template <typename NodeIdT = Aws::String>
106 void SetNodeId(NodeIdT&& value) {
107 m_nodeIdHasBeenSet = true;
108 m_nodeId = std::forward<NodeIdT>(value);
109 }
110 template <typename NodeIdT = Aws::String>
112 SetNodeId(std::forward<NodeIdT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Vector<Metadata>& GetCheckoutMetadata() const { return m_checkoutMetadata; }
122 inline bool CheckoutMetadataHasBeenSet() const { return m_checkoutMetadataHasBeenSet; }
123 template <typename CheckoutMetadataT = Aws::Vector<Metadata>>
124 void SetCheckoutMetadata(CheckoutMetadataT&& value) {
125 m_checkoutMetadataHasBeenSet = true;
126 m_checkoutMetadata = std::forward<CheckoutMetadataT>(value);
127 }
128 template <typename CheckoutMetadataT = Aws::Vector<Metadata>>
130 SetCheckoutMetadata(std::forward<CheckoutMetadataT>(value));
131 return *this;
132 }
133 template <typename CheckoutMetadataT = Metadata>
135 m_checkoutMetadataHasBeenSet = true;
136 m_checkoutMetadata.emplace_back(std::forward<CheckoutMetadataT>(value));
137 return *this;
138 }
140
142
146 inline const Aws::String& GetClientToken() const { return m_clientToken; }
147 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
148 template <typename ClientTokenT = Aws::String>
149 void SetClientToken(ClientTokenT&& value) {
150 m_clientTokenHasBeenSet = true;
151 m_clientToken = std::forward<ClientTokenT>(value);
152 }
153 template <typename ClientTokenT = Aws::String>
155 SetClientToken(std::forward<ClientTokenT>(value));
156 return *this;
157 }
159 private:
160 Aws::String m_licenseArn;
161 bool m_licenseArnHasBeenSet = false;
162
163 Aws::Vector<EntitlementData> m_entitlements;
164 bool m_entitlementsHasBeenSet = false;
165
167 bool m_digitalSignatureMethodHasBeenSet = false;
168
169 Aws::String m_nodeId;
170 bool m_nodeIdHasBeenSet = false;
171
172 Aws::Vector<Metadata> m_checkoutMetadata;
173 bool m_checkoutMetadataHasBeenSet = false;
174
175 Aws::String m_clientToken;
176 bool m_clientTokenHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace LicenseManager
181} // namespace Aws
CheckoutBorrowLicenseRequest & WithEntitlements(EntitlementsT &&value)
const Aws::Vector< EntitlementData > & GetEntitlements() const
AWS_LICENSEMANAGER_API CheckoutBorrowLicenseRequest()=default
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CheckoutBorrowLicenseRequest & WithDigitalSignatureMethod(DigitalSignatureMethod value)
CheckoutBorrowLicenseRequest & AddEntitlements(EntitlementsT &&value)
CheckoutBorrowLicenseRequest & WithLicenseArn(LicenseArnT &&value)
CheckoutBorrowLicenseRequest & WithCheckoutMetadata(CheckoutMetadataT &&value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
CheckoutBorrowLicenseRequest & WithNodeId(NodeIdT &&value)
CheckoutBorrowLicenseRequest & WithClientToken(ClientTokenT &&value)
CheckoutBorrowLicenseRequest & AddCheckoutMetadata(CheckoutMetadataT &&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