AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
CheckoutBorrowLicenseResult.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/EntitlementData.h>
11#include <aws/license-manager/model/Metadata.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 CheckoutBorrowLicenseResult() = default;
31
33
36 inline const Aws::String& GetLicenseArn() const { return m_licenseArn; }
37 template <typename LicenseArnT = Aws::String>
38 void SetLicenseArn(LicenseArnT&& value) {
39 m_licenseArnHasBeenSet = true;
40 m_licenseArn = std::forward<LicenseArnT>(value);
41 }
42 template <typename LicenseArnT = Aws::String>
44 SetLicenseArn(std::forward<LicenseArnT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetLicenseConsumptionToken() const { return m_licenseConsumptionToken; }
54 template <typename LicenseConsumptionTokenT = Aws::String>
55 void SetLicenseConsumptionToken(LicenseConsumptionTokenT&& value) {
56 m_licenseConsumptionTokenHasBeenSet = true;
57 m_licenseConsumptionToken = std::forward<LicenseConsumptionTokenT>(value);
58 }
59 template <typename LicenseConsumptionTokenT = Aws::String>
60 CheckoutBorrowLicenseResult& WithLicenseConsumptionToken(LicenseConsumptionTokenT&& value) {
61 SetLicenseConsumptionToken(std::forward<LicenseConsumptionTokenT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::Vector<EntitlementData>& GetEntitlementsAllowed() const { return m_entitlementsAllowed; }
71 template <typename EntitlementsAllowedT = Aws::Vector<EntitlementData>>
72 void SetEntitlementsAllowed(EntitlementsAllowedT&& value) {
73 m_entitlementsAllowedHasBeenSet = true;
74 m_entitlementsAllowed = std::forward<EntitlementsAllowedT>(value);
75 }
76 template <typename EntitlementsAllowedT = Aws::Vector<EntitlementData>>
78 SetEntitlementsAllowed(std::forward<EntitlementsAllowedT>(value));
79 return *this;
80 }
81 template <typename EntitlementsAllowedT = EntitlementData>
82 CheckoutBorrowLicenseResult& AddEntitlementsAllowed(EntitlementsAllowedT&& value) {
83 m_entitlementsAllowedHasBeenSet = true;
84 m_entitlementsAllowed.emplace_back(std::forward<EntitlementsAllowedT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetNodeId() const { return m_nodeId; }
94 template <typename NodeIdT = Aws::String>
95 void SetNodeId(NodeIdT&& value) {
96 m_nodeIdHasBeenSet = true;
97 m_nodeId = std::forward<NodeIdT>(value);
98 }
99 template <typename NodeIdT = Aws::String>
101 SetNodeId(std::forward<NodeIdT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetSignedToken() const { return m_signedToken; }
111 template <typename SignedTokenT = Aws::String>
112 void SetSignedToken(SignedTokenT&& value) {
113 m_signedTokenHasBeenSet = true;
114 m_signedToken = std::forward<SignedTokenT>(value);
115 }
116 template <typename SignedTokenT = Aws::String>
118 SetSignedToken(std::forward<SignedTokenT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetIssuedAt() const { return m_issuedAt; }
128 template <typename IssuedAtT = Aws::String>
129 void SetIssuedAt(IssuedAtT&& value) {
130 m_issuedAtHasBeenSet = true;
131 m_issuedAt = std::forward<IssuedAtT>(value);
132 }
133 template <typename IssuedAtT = Aws::String>
135 SetIssuedAt(std::forward<IssuedAtT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::String& GetExpiration() const { return m_expiration; }
145 template <typename ExpirationT = Aws::String>
146 void SetExpiration(ExpirationT&& value) {
147 m_expirationHasBeenSet = true;
148 m_expiration = std::forward<ExpirationT>(value);
149 }
150 template <typename ExpirationT = Aws::String>
152 SetExpiration(std::forward<ExpirationT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Vector<Metadata>& GetCheckoutMetadata() const { return m_checkoutMetadata; }
162 template <typename CheckoutMetadataT = Aws::Vector<Metadata>>
163 void SetCheckoutMetadata(CheckoutMetadataT&& value) {
164 m_checkoutMetadataHasBeenSet = true;
165 m_checkoutMetadata = std::forward<CheckoutMetadataT>(value);
166 }
167 template <typename CheckoutMetadataT = Aws::Vector<Metadata>>
169 SetCheckoutMetadata(std::forward<CheckoutMetadataT>(value));
170 return *this;
171 }
172 template <typename CheckoutMetadataT = Metadata>
174 m_checkoutMetadataHasBeenSet = true;
175 m_checkoutMetadata.emplace_back(std::forward<CheckoutMetadataT>(value));
176 return *this;
177 }
179
181
182 inline const Aws::String& GetRequestId() const { return m_requestId; }
183 template <typename RequestIdT = Aws::String>
184 void SetRequestId(RequestIdT&& value) {
185 m_requestIdHasBeenSet = true;
186 m_requestId = std::forward<RequestIdT>(value);
187 }
188 template <typename RequestIdT = Aws::String>
190 SetRequestId(std::forward<RequestIdT>(value));
191 return *this;
192 }
194 private:
195 Aws::String m_licenseArn;
196 bool m_licenseArnHasBeenSet = false;
197
198 Aws::String m_licenseConsumptionToken;
199 bool m_licenseConsumptionTokenHasBeenSet = false;
200
201 Aws::Vector<EntitlementData> m_entitlementsAllowed;
202 bool m_entitlementsAllowedHasBeenSet = false;
203
204 Aws::String m_nodeId;
205 bool m_nodeIdHasBeenSet = false;
206
207 Aws::String m_signedToken;
208 bool m_signedTokenHasBeenSet = false;
209
210 Aws::String m_issuedAt;
211 bool m_issuedAtHasBeenSet = false;
212
213 Aws::String m_expiration;
214 bool m_expirationHasBeenSet = false;
215
216 Aws::Vector<Metadata> m_checkoutMetadata;
217 bool m_checkoutMetadataHasBeenSet = false;
218
219 Aws::String m_requestId;
220 bool m_requestIdHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace LicenseManager
225} // 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