AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
CheckoutLicenseResult.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/CheckoutType.h>
12#include <aws/license-manager/model/EntitlementData.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 CheckoutLicenseResult() = default;
32
34
37 inline CheckoutType GetCheckoutType() const { return m_checkoutType; }
38 inline void SetCheckoutType(CheckoutType value) {
39 m_checkoutTypeHasBeenSet = true;
40 m_checkoutType = value;
41 }
43 SetCheckoutType(value);
44 return *this;
45 }
47
49
52 inline const Aws::String& GetLicenseConsumptionToken() const { return m_licenseConsumptionToken; }
53 template <typename LicenseConsumptionTokenT = Aws::String>
54 void SetLicenseConsumptionToken(LicenseConsumptionTokenT&& value) {
55 m_licenseConsumptionTokenHasBeenSet = true;
56 m_licenseConsumptionToken = std::forward<LicenseConsumptionTokenT>(value);
57 }
58 template <typename LicenseConsumptionTokenT = Aws::String>
59 CheckoutLicenseResult& WithLicenseConsumptionToken(LicenseConsumptionTokenT&& value) {
60 SetLicenseConsumptionToken(std::forward<LicenseConsumptionTokenT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::Vector<EntitlementData>& GetEntitlementsAllowed() const { return m_entitlementsAllowed; }
70 template <typename EntitlementsAllowedT = Aws::Vector<EntitlementData>>
71 void SetEntitlementsAllowed(EntitlementsAllowedT&& value) {
72 m_entitlementsAllowedHasBeenSet = true;
73 m_entitlementsAllowed = std::forward<EntitlementsAllowedT>(value);
74 }
75 template <typename EntitlementsAllowedT = Aws::Vector<EntitlementData>>
76 CheckoutLicenseResult& WithEntitlementsAllowed(EntitlementsAllowedT&& value) {
77 SetEntitlementsAllowed(std::forward<EntitlementsAllowedT>(value));
78 return *this;
79 }
80 template <typename EntitlementsAllowedT = EntitlementData>
81 CheckoutLicenseResult& AddEntitlementsAllowed(EntitlementsAllowedT&& value) {
82 m_entitlementsAllowedHasBeenSet = true;
83 m_entitlementsAllowed.emplace_back(std::forward<EntitlementsAllowedT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetSignedToken() const { return m_signedToken; }
93 template <typename SignedTokenT = Aws::String>
94 void SetSignedToken(SignedTokenT&& value) {
95 m_signedTokenHasBeenSet = true;
96 m_signedToken = std::forward<SignedTokenT>(value);
97 }
98 template <typename SignedTokenT = Aws::String>
99 CheckoutLicenseResult& WithSignedToken(SignedTokenT&& value) {
100 SetSignedToken(std::forward<SignedTokenT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetNodeId() const { return m_nodeId; }
110 template <typename NodeIdT = Aws::String>
111 void SetNodeId(NodeIdT&& value) {
112 m_nodeIdHasBeenSet = true;
113 m_nodeId = std::forward<NodeIdT>(value);
114 }
115 template <typename NodeIdT = Aws::String>
117 SetNodeId(std::forward<NodeIdT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetIssuedAt() const { return m_issuedAt; }
127 template <typename IssuedAtT = Aws::String>
128 void SetIssuedAt(IssuedAtT&& value) {
129 m_issuedAtHasBeenSet = true;
130 m_issuedAt = std::forward<IssuedAtT>(value);
131 }
132 template <typename IssuedAtT = Aws::String>
134 SetIssuedAt(std::forward<IssuedAtT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetExpiration() const { return m_expiration; }
144 template <typename ExpirationT = Aws::String>
145 void SetExpiration(ExpirationT&& value) {
146 m_expirationHasBeenSet = true;
147 m_expiration = std::forward<ExpirationT>(value);
148 }
149 template <typename ExpirationT = Aws::String>
150 CheckoutLicenseResult& WithExpiration(ExpirationT&& value) {
151 SetExpiration(std::forward<ExpirationT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::String& GetLicenseArn() const { return m_licenseArn; }
161 template <typename LicenseArnT = Aws::String>
162 void SetLicenseArn(LicenseArnT&& value) {
163 m_licenseArnHasBeenSet = true;
164 m_licenseArn = std::forward<LicenseArnT>(value);
165 }
166 template <typename LicenseArnT = Aws::String>
167 CheckoutLicenseResult& WithLicenseArn(LicenseArnT&& value) {
168 SetLicenseArn(std::forward<LicenseArnT>(value));
169 return *this;
170 }
172
174
175 inline const Aws::String& GetRequestId() const { return m_requestId; }
176 template <typename RequestIdT = Aws::String>
177 void SetRequestId(RequestIdT&& value) {
178 m_requestIdHasBeenSet = true;
179 m_requestId = std::forward<RequestIdT>(value);
180 }
181 template <typename RequestIdT = Aws::String>
183 SetRequestId(std::forward<RequestIdT>(value));
184 return *this;
185 }
187 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
188
189 private:
190 CheckoutType m_checkoutType{CheckoutType::NOT_SET};
191
192 Aws::String m_licenseConsumptionToken;
193
194 Aws::Vector<EntitlementData> m_entitlementsAllowed;
195
196 Aws::String m_signedToken;
197
198 Aws::String m_nodeId;
199
200 Aws::String m_issuedAt;
201
202 Aws::String m_expiration;
203
204 Aws::String m_licenseArn;
205
206 Aws::String m_requestId;
207 Aws::Http::HttpResponseCode m_HttpResponseCode;
208 bool m_checkoutTypeHasBeenSet = false;
209 bool m_licenseConsumptionTokenHasBeenSet = false;
210 bool m_entitlementsAllowedHasBeenSet = false;
211 bool m_signedTokenHasBeenSet = false;
212 bool m_nodeIdHasBeenSet = false;
213 bool m_issuedAtHasBeenSet = false;
214 bool m_expirationHasBeenSet = false;
215 bool m_licenseArnHasBeenSet = false;
216 bool m_requestIdHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace LicenseManager
221} // namespace Aws
CheckoutLicenseResult & WithLicenseConsumptionToken(LicenseConsumptionTokenT &&value)
AWS_LICENSEMANAGER_API CheckoutLicenseResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CheckoutLicenseResult & WithCheckoutType(CheckoutType value)
CheckoutLicenseResult & AddEntitlementsAllowed(EntitlementsAllowedT &&value)
AWS_LICENSEMANAGER_API CheckoutLicenseResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< EntitlementData > & GetEntitlementsAllowed() const
CheckoutLicenseResult & WithExpiration(ExpirationT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetEntitlementsAllowed(EntitlementsAllowedT &&value)
AWS_LICENSEMANAGER_API CheckoutLicenseResult()=default
CheckoutLicenseResult & WithNodeId(NodeIdT &&value)
CheckoutLicenseResult & WithLicenseArn(LicenseArnT &&value)
CheckoutLicenseResult & WithSignedToken(SignedTokenT &&value)
CheckoutLicenseResult & WithEntitlementsAllowed(EntitlementsAllowedT &&value)
CheckoutLicenseResult & WithIssuedAt(IssuedAtT &&value)
void SetLicenseConsumptionToken(LicenseConsumptionTokenT &&value)
CheckoutLicenseResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue