AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CheckoutLicenseResult.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/LicenseManager_EXPORTS.h>
10#include <aws/license-manager/model/CheckoutType.h>
11#include <aws/license-manager/model/EntitlementData.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace LicenseManager {
25namespace Model {
27 public:
28 AWS_LICENSEMANAGER_API CheckoutLicenseResult() = default;
31
33
36 inline CheckoutType GetCheckoutType() const { return m_checkoutType; }
37 inline void SetCheckoutType(CheckoutType value) {
38 m_checkoutTypeHasBeenSet = true;
39 m_checkoutType = value;
40 }
42 SetCheckoutType(value);
43 return *this;
44 }
46
48
51 inline const Aws::String& GetLicenseConsumptionToken() const { return m_licenseConsumptionToken; }
52 template <typename LicenseConsumptionTokenT = Aws::String>
53 void SetLicenseConsumptionToken(LicenseConsumptionTokenT&& value) {
54 m_licenseConsumptionTokenHasBeenSet = true;
55 m_licenseConsumptionToken = std::forward<LicenseConsumptionTokenT>(value);
56 }
57 template <typename LicenseConsumptionTokenT = Aws::String>
58 CheckoutLicenseResult& WithLicenseConsumptionToken(LicenseConsumptionTokenT&& value) {
59 SetLicenseConsumptionToken(std::forward<LicenseConsumptionTokenT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::Vector<EntitlementData>& GetEntitlementsAllowed() const { return m_entitlementsAllowed; }
69 template <typename EntitlementsAllowedT = Aws::Vector<EntitlementData>>
70 void SetEntitlementsAllowed(EntitlementsAllowedT&& value) {
71 m_entitlementsAllowedHasBeenSet = true;
72 m_entitlementsAllowed = std::forward<EntitlementsAllowedT>(value);
73 }
74 template <typename EntitlementsAllowedT = Aws::Vector<EntitlementData>>
75 CheckoutLicenseResult& WithEntitlementsAllowed(EntitlementsAllowedT&& value) {
76 SetEntitlementsAllowed(std::forward<EntitlementsAllowedT>(value));
77 return *this;
78 }
79 template <typename EntitlementsAllowedT = EntitlementData>
80 CheckoutLicenseResult& AddEntitlementsAllowed(EntitlementsAllowedT&& value) {
81 m_entitlementsAllowedHasBeenSet = true;
82 m_entitlementsAllowed.emplace_back(std::forward<EntitlementsAllowedT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetSignedToken() const { return m_signedToken; }
92 template <typename SignedTokenT = Aws::String>
93 void SetSignedToken(SignedTokenT&& value) {
94 m_signedTokenHasBeenSet = true;
95 m_signedToken = std::forward<SignedTokenT>(value);
96 }
97 template <typename SignedTokenT = Aws::String>
98 CheckoutLicenseResult& WithSignedToken(SignedTokenT&& value) {
99 SetSignedToken(std::forward<SignedTokenT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetNodeId() const { return m_nodeId; }
109 template <typename NodeIdT = Aws::String>
110 void SetNodeId(NodeIdT&& value) {
111 m_nodeIdHasBeenSet = true;
112 m_nodeId = std::forward<NodeIdT>(value);
113 }
114 template <typename NodeIdT = Aws::String>
116 SetNodeId(std::forward<NodeIdT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetIssuedAt() const { return m_issuedAt; }
126 template <typename IssuedAtT = Aws::String>
127 void SetIssuedAt(IssuedAtT&& value) {
128 m_issuedAtHasBeenSet = true;
129 m_issuedAt = std::forward<IssuedAtT>(value);
130 }
131 template <typename IssuedAtT = Aws::String>
133 SetIssuedAt(std::forward<IssuedAtT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::String& GetExpiration() const { return m_expiration; }
143 template <typename ExpirationT = Aws::String>
144 void SetExpiration(ExpirationT&& value) {
145 m_expirationHasBeenSet = true;
146 m_expiration = std::forward<ExpirationT>(value);
147 }
148 template <typename ExpirationT = Aws::String>
149 CheckoutLicenseResult& WithExpiration(ExpirationT&& value) {
150 SetExpiration(std::forward<ExpirationT>(value));
151 return *this;
152 }
154
156
159 inline const Aws::String& GetLicenseArn() const { return m_licenseArn; }
160 template <typename LicenseArnT = Aws::String>
161 void SetLicenseArn(LicenseArnT&& value) {
162 m_licenseArnHasBeenSet = true;
163 m_licenseArn = std::forward<LicenseArnT>(value);
164 }
165 template <typename LicenseArnT = Aws::String>
166 CheckoutLicenseResult& WithLicenseArn(LicenseArnT&& value) {
167 SetLicenseArn(std::forward<LicenseArnT>(value));
168 return *this;
169 }
171
173
174 inline const Aws::String& GetRequestId() const { return m_requestId; }
175 template <typename RequestIdT = Aws::String>
176 void SetRequestId(RequestIdT&& value) {
177 m_requestIdHasBeenSet = true;
178 m_requestId = std::forward<RequestIdT>(value);
179 }
180 template <typename RequestIdT = Aws::String>
182 SetRequestId(std::forward<RequestIdT>(value));
183 return *this;
184 }
186 private:
187 CheckoutType m_checkoutType{CheckoutType::NOT_SET};
188
189 Aws::String m_licenseConsumptionToken;
190
191 Aws::Vector<EntitlementData> m_entitlementsAllowed;
192
193 Aws::String m_signedToken;
194
195 Aws::String m_nodeId;
196
197 Aws::String m_issuedAt;
198
199 Aws::String m_expiration;
200
201 Aws::String m_licenseArn;
202
203 Aws::String m_requestId;
204 bool m_checkoutTypeHasBeenSet = false;
205 bool m_licenseConsumptionTokenHasBeenSet = false;
206 bool m_entitlementsAllowedHasBeenSet = false;
207 bool m_signedTokenHasBeenSet = false;
208 bool m_nodeIdHasBeenSet = false;
209 bool m_issuedAtHasBeenSet = false;
210 bool m_expirationHasBeenSet = false;
211 bool m_licenseArnHasBeenSet = false;
212 bool m_requestIdHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace LicenseManager
217} // 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)
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