AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
CheckoutBorrowLicenseResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/license-manager/LicenseManager_EXPORTS.h>
11#include <aws/license-manager/model/EntitlementData.h>
12#include <aws/license-manager/model/Metadata.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace LicenseManager {
26namespace Model {
28 public:
29 AWS_LICENSEMANAGER_API CheckoutBorrowLicenseResult() = default;
32
34
37 inline const Aws::String& GetLicenseArn() const { return m_licenseArn; }
38 template <typename LicenseArnT = Aws::String>
39 void SetLicenseArn(LicenseArnT&& value) {
40 m_licenseArnHasBeenSet = true;
41 m_licenseArn = std::forward<LicenseArnT>(value);
42 }
43 template <typename LicenseArnT = Aws::String>
45 SetLicenseArn(std::forward<LicenseArnT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetLicenseConsumptionToken() const { return m_licenseConsumptionToken; }
55 template <typename LicenseConsumptionTokenT = Aws::String>
56 void SetLicenseConsumptionToken(LicenseConsumptionTokenT&& value) {
57 m_licenseConsumptionTokenHasBeenSet = true;
58 m_licenseConsumptionToken = std::forward<LicenseConsumptionTokenT>(value);
59 }
60 template <typename LicenseConsumptionTokenT = Aws::String>
61 CheckoutBorrowLicenseResult& WithLicenseConsumptionToken(LicenseConsumptionTokenT&& value) {
62 SetLicenseConsumptionToken(std::forward<LicenseConsumptionTokenT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::Vector<EntitlementData>& GetEntitlementsAllowed() const { return m_entitlementsAllowed; }
72 template <typename EntitlementsAllowedT = Aws::Vector<EntitlementData>>
73 void SetEntitlementsAllowed(EntitlementsAllowedT&& value) {
74 m_entitlementsAllowedHasBeenSet = true;
75 m_entitlementsAllowed = std::forward<EntitlementsAllowedT>(value);
76 }
77 template <typename EntitlementsAllowedT = Aws::Vector<EntitlementData>>
79 SetEntitlementsAllowed(std::forward<EntitlementsAllowedT>(value));
80 return *this;
81 }
82 template <typename EntitlementsAllowedT = EntitlementData>
83 CheckoutBorrowLicenseResult& AddEntitlementsAllowed(EntitlementsAllowedT&& value) {
84 m_entitlementsAllowedHasBeenSet = true;
85 m_entitlementsAllowed.emplace_back(std::forward<EntitlementsAllowedT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetNodeId() const { return m_nodeId; }
95 template <typename NodeIdT = Aws::String>
96 void SetNodeId(NodeIdT&& value) {
97 m_nodeIdHasBeenSet = true;
98 m_nodeId = std::forward<NodeIdT>(value);
99 }
100 template <typename NodeIdT = Aws::String>
102 SetNodeId(std::forward<NodeIdT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetSignedToken() const { return m_signedToken; }
112 template <typename SignedTokenT = Aws::String>
113 void SetSignedToken(SignedTokenT&& value) {
114 m_signedTokenHasBeenSet = true;
115 m_signedToken = std::forward<SignedTokenT>(value);
116 }
117 template <typename SignedTokenT = Aws::String>
119 SetSignedToken(std::forward<SignedTokenT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::String& GetIssuedAt() const { return m_issuedAt; }
129 template <typename IssuedAtT = Aws::String>
130 void SetIssuedAt(IssuedAtT&& value) {
131 m_issuedAtHasBeenSet = true;
132 m_issuedAt = std::forward<IssuedAtT>(value);
133 }
134 template <typename IssuedAtT = Aws::String>
136 SetIssuedAt(std::forward<IssuedAtT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetExpiration() const { return m_expiration; }
146 template <typename ExpirationT = Aws::String>
147 void SetExpiration(ExpirationT&& value) {
148 m_expirationHasBeenSet = true;
149 m_expiration = std::forward<ExpirationT>(value);
150 }
151 template <typename ExpirationT = Aws::String>
153 SetExpiration(std::forward<ExpirationT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::Vector<Metadata>& GetCheckoutMetadata() const { return m_checkoutMetadata; }
163 template <typename CheckoutMetadataT = Aws::Vector<Metadata>>
164 void SetCheckoutMetadata(CheckoutMetadataT&& value) {
165 m_checkoutMetadataHasBeenSet = true;
166 m_checkoutMetadata = std::forward<CheckoutMetadataT>(value);
167 }
168 template <typename CheckoutMetadataT = Aws::Vector<Metadata>>
170 SetCheckoutMetadata(std::forward<CheckoutMetadataT>(value));
171 return *this;
172 }
173 template <typename CheckoutMetadataT = Metadata>
175 m_checkoutMetadataHasBeenSet = true;
176 m_checkoutMetadata.emplace_back(std::forward<CheckoutMetadataT>(value));
177 return *this;
178 }
180
182
183 inline const Aws::String& GetRequestId() const { return m_requestId; }
184 template <typename RequestIdT = Aws::String>
185 void SetRequestId(RequestIdT&& value) {
186 m_requestIdHasBeenSet = true;
187 m_requestId = std::forward<RequestIdT>(value);
188 }
189 template <typename RequestIdT = Aws::String>
191 SetRequestId(std::forward<RequestIdT>(value));
192 return *this;
193 }
195 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
196
197 private:
198 Aws::String m_licenseArn;
199
200 Aws::String m_licenseConsumptionToken;
201
202 Aws::Vector<EntitlementData> m_entitlementsAllowed;
203
204 Aws::String m_nodeId;
205
206 Aws::String m_signedToken;
207
208 Aws::String m_issuedAt;
209
210 Aws::String m_expiration;
211
212 Aws::Vector<Metadata> m_checkoutMetadata;
213
214 Aws::String m_requestId;
215 Aws::Http::HttpResponseCode m_HttpResponseCode;
216 bool m_licenseArnHasBeenSet = false;
217 bool m_licenseConsumptionTokenHasBeenSet = false;
218 bool m_entitlementsAllowedHasBeenSet = false;
219 bool m_nodeIdHasBeenSet = false;
220 bool m_signedTokenHasBeenSet = false;
221 bool m_issuedAtHasBeenSet = false;
222 bool m_expirationHasBeenSet = false;
223 bool m_checkoutMetadataHasBeenSet = false;
224 bool m_requestIdHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace LicenseManager
229} // namespace Aws
CheckoutBorrowLicenseResult & WithExpiration(ExpirationT &&value)
CheckoutBorrowLicenseResult & WithSignedToken(SignedTokenT &&value)
CheckoutBorrowLicenseResult & AddCheckoutMetadata(CheckoutMetadataT &&value)
CheckoutBorrowLicenseResult & WithLicenseArn(LicenseArnT &&value)
const Aws::Vector< EntitlementData > & GetEntitlementsAllowed() const
CheckoutBorrowLicenseResult & WithEntitlementsAllowed(EntitlementsAllowedT &&value)
CheckoutBorrowLicenseResult & WithIssuedAt(IssuedAtT &&value)
AWS_LICENSEMANAGER_API CheckoutBorrowLicenseResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CheckoutBorrowLicenseResult & WithNodeId(NodeIdT &&value)
CheckoutBorrowLicenseResult & WithCheckoutMetadata(CheckoutMetadataT &&value)
CheckoutBorrowLicenseResult & AddEntitlementsAllowed(EntitlementsAllowedT &&value)
AWS_LICENSEMANAGER_API CheckoutBorrowLicenseResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CheckoutBorrowLicenseResult & WithLicenseConsumptionToken(LicenseConsumptionTokenT &&value)
CheckoutBorrowLicenseResult & WithRequestId(RequestIdT &&value)
AWS_LICENSEMANAGER_API CheckoutBorrowLicenseResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue