AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
36
37
39
42 inline const CheckoutType& GetCheckoutType() const{ return m_checkoutType; }
43 inline void SetCheckoutType(const CheckoutType& value) { m_checkoutType = value; }
44 inline void SetCheckoutType(CheckoutType&& value) { m_checkoutType = std::move(value); }
45 inline CheckoutLicenseResult& WithCheckoutType(const CheckoutType& value) { SetCheckoutType(value); return *this;}
46 inline CheckoutLicenseResult& WithCheckoutType(CheckoutType&& value) { SetCheckoutType(std::move(value)); return *this;}
48
50
53 inline const Aws::String& GetLicenseConsumptionToken() const{ return m_licenseConsumptionToken; }
54 inline void SetLicenseConsumptionToken(const Aws::String& value) { m_licenseConsumptionToken = value; }
55 inline void SetLicenseConsumptionToken(Aws::String&& value) { m_licenseConsumptionToken = std::move(value); }
56 inline void SetLicenseConsumptionToken(const char* value) { m_licenseConsumptionToken.assign(value); }
59 inline CheckoutLicenseResult& WithLicenseConsumptionToken(const char* value) { SetLicenseConsumptionToken(value); return *this;}
61
63
66 inline const Aws::Vector<EntitlementData>& GetEntitlementsAllowed() const{ return m_entitlementsAllowed; }
67 inline void SetEntitlementsAllowed(const Aws::Vector<EntitlementData>& value) { m_entitlementsAllowed = value; }
68 inline void SetEntitlementsAllowed(Aws::Vector<EntitlementData>&& value) { m_entitlementsAllowed = std::move(value); }
71 inline CheckoutLicenseResult& AddEntitlementsAllowed(const EntitlementData& value) { m_entitlementsAllowed.push_back(value); return *this; }
72 inline CheckoutLicenseResult& AddEntitlementsAllowed(EntitlementData&& value) { m_entitlementsAllowed.push_back(std::move(value)); return *this; }
74
76
79 inline const Aws::String& GetSignedToken() const{ return m_signedToken; }
80 inline void SetSignedToken(const Aws::String& value) { m_signedToken = value; }
81 inline void SetSignedToken(Aws::String&& value) { m_signedToken = std::move(value); }
82 inline void SetSignedToken(const char* value) { m_signedToken.assign(value); }
83 inline CheckoutLicenseResult& WithSignedToken(const Aws::String& value) { SetSignedToken(value); return *this;}
84 inline CheckoutLicenseResult& WithSignedToken(Aws::String&& value) { SetSignedToken(std::move(value)); return *this;}
85 inline CheckoutLicenseResult& WithSignedToken(const char* value) { SetSignedToken(value); return *this;}
87
89
92 inline const Aws::String& GetNodeId() const{ return m_nodeId; }
93 inline void SetNodeId(const Aws::String& value) { m_nodeId = value; }
94 inline void SetNodeId(Aws::String&& value) { m_nodeId = std::move(value); }
95 inline void SetNodeId(const char* value) { m_nodeId.assign(value); }
96 inline CheckoutLicenseResult& WithNodeId(const Aws::String& value) { SetNodeId(value); return *this;}
97 inline CheckoutLicenseResult& WithNodeId(Aws::String&& value) { SetNodeId(std::move(value)); return *this;}
98 inline CheckoutLicenseResult& WithNodeId(const char* value) { SetNodeId(value); return *this;}
100
102
105 inline const Aws::String& GetIssuedAt() const{ return m_issuedAt; }
106 inline void SetIssuedAt(const Aws::String& value) { m_issuedAt = value; }
107 inline void SetIssuedAt(Aws::String&& value) { m_issuedAt = std::move(value); }
108 inline void SetIssuedAt(const char* value) { m_issuedAt.assign(value); }
109 inline CheckoutLicenseResult& WithIssuedAt(const Aws::String& value) { SetIssuedAt(value); return *this;}
110 inline CheckoutLicenseResult& WithIssuedAt(Aws::String&& value) { SetIssuedAt(std::move(value)); return *this;}
111 inline CheckoutLicenseResult& WithIssuedAt(const char* value) { SetIssuedAt(value); return *this;}
113
115
118 inline const Aws::String& GetExpiration() const{ return m_expiration; }
119 inline void SetExpiration(const Aws::String& value) { m_expiration = value; }
120 inline void SetExpiration(Aws::String&& value) { m_expiration = std::move(value); }
121 inline void SetExpiration(const char* value) { m_expiration.assign(value); }
122 inline CheckoutLicenseResult& WithExpiration(const Aws::String& value) { SetExpiration(value); return *this;}
123 inline CheckoutLicenseResult& WithExpiration(Aws::String&& value) { SetExpiration(std::move(value)); return *this;}
124 inline CheckoutLicenseResult& WithExpiration(const char* value) { SetExpiration(value); return *this;}
126
128
131 inline const Aws::String& GetLicenseArn() const{ return m_licenseArn; }
132 inline void SetLicenseArn(const Aws::String& value) { m_licenseArn = value; }
133 inline void SetLicenseArn(Aws::String&& value) { m_licenseArn = std::move(value); }
134 inline void SetLicenseArn(const char* value) { m_licenseArn.assign(value); }
135 inline CheckoutLicenseResult& WithLicenseArn(const Aws::String& value) { SetLicenseArn(value); return *this;}
136 inline CheckoutLicenseResult& WithLicenseArn(Aws::String&& value) { SetLicenseArn(std::move(value)); return *this;}
137 inline CheckoutLicenseResult& WithLicenseArn(const char* value) { SetLicenseArn(value); return *this;}
139
141
142 inline const Aws::String& GetRequestId() const{ return m_requestId; }
143 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
144 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
145 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
146 inline CheckoutLicenseResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
147 inline CheckoutLicenseResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
148 inline CheckoutLicenseResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
150 private:
151
152 CheckoutType m_checkoutType;
153
154 Aws::String m_licenseConsumptionToken;
155
156 Aws::Vector<EntitlementData> m_entitlementsAllowed;
157
158 Aws::String m_signedToken;
159
160 Aws::String m_nodeId;
161
162 Aws::String m_issuedAt;
163
164 Aws::String m_expiration;
165
166 Aws::String m_licenseArn;
167
168 Aws::String m_requestId;
169 };
170
171} // namespace Model
172} // namespace LicenseManager
173} // namespace Aws
AWS_LICENSEMANAGER_API CheckoutLicenseResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CheckoutLicenseResult & WithRequestId(const char *value)
CheckoutLicenseResult & WithIssuedAt(const Aws::String &value)
CheckoutLicenseResult & WithLicenseConsumptionToken(const Aws::String &value)
CheckoutLicenseResult & WithRequestId(Aws::String &&value)
CheckoutLicenseResult & WithLicenseArn(const char *value)
AWS_LICENSEMANAGER_API CheckoutLicenseResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CheckoutLicenseResult & WithCheckoutType(const CheckoutType &value)
const Aws::Vector< EntitlementData > & GetEntitlementsAllowed() const
CheckoutLicenseResult & WithLicenseArn(Aws::String &&value)
CheckoutLicenseResult & WithExpiration(const char *value)
CheckoutLicenseResult & AddEntitlementsAllowed(EntitlementData &&value)
CheckoutLicenseResult & WithRequestId(const Aws::String &value)
CheckoutLicenseResult & WithIssuedAt(Aws::String &&value)
CheckoutLicenseResult & WithNodeId(const char *value)
CheckoutLicenseResult & WithNodeId(Aws::String &&value)
CheckoutLicenseResult & WithExpiration(const Aws::String &value)
CheckoutLicenseResult & WithIssuedAt(const char *value)
CheckoutLicenseResult & WithSignedToken(const Aws::String &value)
CheckoutLicenseResult & WithEntitlementsAllowed(const Aws::Vector< EntitlementData > &value)
void SetEntitlementsAllowed(const Aws::Vector< EntitlementData > &value)
CheckoutLicenseResult & WithCheckoutType(CheckoutType &&value)
CheckoutLicenseResult & WithLicenseConsumptionToken(const char *value)
CheckoutLicenseResult & WithEntitlementsAllowed(Aws::Vector< EntitlementData > &&value)
CheckoutLicenseResult & WithNodeId(const Aws::String &value)
CheckoutLicenseResult & WithSignedToken(Aws::String &&value)
CheckoutLicenseResult & AddEntitlementsAllowed(const EntitlementData &value)
void SetEntitlementsAllowed(Aws::Vector< EntitlementData > &&value)
CheckoutLicenseResult & WithLicenseArn(const Aws::String &value)
CheckoutLicenseResult & WithLicenseConsumptionToken(Aws::String &&value)
CheckoutLicenseResult & WithSignedToken(const char *value)
CheckoutLicenseResult & WithExpiration(Aws::String &&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