AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CheckoutLicenseResult.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/license-manager/model/CheckoutType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/license-manager/model/EntitlementData.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace LicenseManager
27{
28namespace Model
29{
31 {
32 public:
33 AWS_LICENSEMANAGER_API CheckoutLicenseResult() = default;
36
37
39
42 inline CheckoutType GetCheckoutType() const { return m_checkoutType; }
43 inline void SetCheckoutType(CheckoutType value) { m_checkoutTypeHasBeenSet = true; m_checkoutType = value; }
46
48
51 inline const Aws::String& GetLicenseConsumptionToken() const { return m_licenseConsumptionToken; }
52 template<typename LicenseConsumptionTokenT = Aws::String>
53 void SetLicenseConsumptionToken(LicenseConsumptionTokenT&& value) { m_licenseConsumptionTokenHasBeenSet = true; m_licenseConsumptionToken = std::forward<LicenseConsumptionTokenT>(value); }
54 template<typename LicenseConsumptionTokenT = Aws::String>
55 CheckoutLicenseResult& WithLicenseConsumptionToken(LicenseConsumptionTokenT&& value) { SetLicenseConsumptionToken(std::forward<LicenseConsumptionTokenT>(value)); return *this;}
57
59
62 inline const Aws::Vector<EntitlementData>& GetEntitlementsAllowed() const { return m_entitlementsAllowed; }
63 template<typename EntitlementsAllowedT = Aws::Vector<EntitlementData>>
64 void SetEntitlementsAllowed(EntitlementsAllowedT&& value) { m_entitlementsAllowedHasBeenSet = true; m_entitlementsAllowed = std::forward<EntitlementsAllowedT>(value); }
65 template<typename EntitlementsAllowedT = Aws::Vector<EntitlementData>>
66 CheckoutLicenseResult& WithEntitlementsAllowed(EntitlementsAllowedT&& value) { SetEntitlementsAllowed(std::forward<EntitlementsAllowedT>(value)); return *this;}
67 template<typename EntitlementsAllowedT = EntitlementData>
68 CheckoutLicenseResult& AddEntitlementsAllowed(EntitlementsAllowedT&& value) { m_entitlementsAllowedHasBeenSet = true; m_entitlementsAllowed.emplace_back(std::forward<EntitlementsAllowedT>(value)); return *this; }
70
72
75 inline const Aws::String& GetSignedToken() const { return m_signedToken; }
76 template<typename SignedTokenT = Aws::String>
77 void SetSignedToken(SignedTokenT&& value) { m_signedTokenHasBeenSet = true; m_signedToken = std::forward<SignedTokenT>(value); }
78 template<typename SignedTokenT = Aws::String>
79 CheckoutLicenseResult& WithSignedToken(SignedTokenT&& value) { SetSignedToken(std::forward<SignedTokenT>(value)); return *this;}
81
83
86 inline const Aws::String& GetNodeId() const { return m_nodeId; }
87 template<typename NodeIdT = Aws::String>
88 void SetNodeId(NodeIdT&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::forward<NodeIdT>(value); }
89 template<typename NodeIdT = Aws::String>
90 CheckoutLicenseResult& WithNodeId(NodeIdT&& value) { SetNodeId(std::forward<NodeIdT>(value)); return *this;}
92
94
97 inline const Aws::String& GetIssuedAt() const { return m_issuedAt; }
98 template<typename IssuedAtT = Aws::String>
99 void SetIssuedAt(IssuedAtT&& value) { m_issuedAtHasBeenSet = true; m_issuedAt = std::forward<IssuedAtT>(value); }
100 template<typename IssuedAtT = Aws::String>
101 CheckoutLicenseResult& WithIssuedAt(IssuedAtT&& value) { SetIssuedAt(std::forward<IssuedAtT>(value)); return *this;}
103
105
108 inline const Aws::String& GetExpiration() const { return m_expiration; }
109 template<typename ExpirationT = Aws::String>
110 void SetExpiration(ExpirationT&& value) { m_expirationHasBeenSet = true; m_expiration = std::forward<ExpirationT>(value); }
111 template<typename ExpirationT = Aws::String>
112 CheckoutLicenseResult& WithExpiration(ExpirationT&& value) { SetExpiration(std::forward<ExpirationT>(value)); return *this;}
114
116
119 inline const Aws::String& GetLicenseArn() const { return m_licenseArn; }
120 template<typename LicenseArnT = Aws::String>
121 void SetLicenseArn(LicenseArnT&& value) { m_licenseArnHasBeenSet = true; m_licenseArn = std::forward<LicenseArnT>(value); }
122 template<typename LicenseArnT = Aws::String>
123 CheckoutLicenseResult& WithLicenseArn(LicenseArnT&& value) { SetLicenseArn(std::forward<LicenseArnT>(value)); return *this;}
125
127
128 inline const Aws::String& GetRequestId() const { return m_requestId; }
129 template<typename RequestIdT = Aws::String>
130 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
131 template<typename RequestIdT = Aws::String>
132 CheckoutLicenseResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
134 private:
135
136 CheckoutType m_checkoutType{CheckoutType::NOT_SET};
137 bool m_checkoutTypeHasBeenSet = false;
138
139 Aws::String m_licenseConsumptionToken;
140 bool m_licenseConsumptionTokenHasBeenSet = false;
141
142 Aws::Vector<EntitlementData> m_entitlementsAllowed;
143 bool m_entitlementsAllowedHasBeenSet = false;
144
145 Aws::String m_signedToken;
146 bool m_signedTokenHasBeenSet = false;
147
148 Aws::String m_nodeId;
149 bool m_nodeIdHasBeenSet = false;
150
151 Aws::String m_issuedAt;
152 bool m_issuedAtHasBeenSet = false;
153
154 Aws::String m_expiration;
155 bool m_expirationHasBeenSet = false;
156
157 Aws::String m_licenseArn;
158 bool m_licenseArnHasBeenSet = false;
159
160 Aws::String m_requestId;
161 bool m_requestIdHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace LicenseManager
166} // 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