AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CheckoutBorrowLicenseResult.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/license-manager/model/EntitlementData.h>
11#include <aws/license-manager/model/Metadata.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 CheckoutBorrowLicenseResult();
36
37
39
42 inline const Aws::String& GetLicenseArn() const{ return m_licenseArn; }
43 inline void SetLicenseArn(const Aws::String& value) { m_licenseArn = value; }
44 inline void SetLicenseArn(Aws::String&& value) { m_licenseArn = std::move(value); }
45 inline void SetLicenseArn(const char* value) { m_licenseArn.assign(value); }
46 inline CheckoutBorrowLicenseResult& WithLicenseArn(const Aws::String& value) { SetLicenseArn(value); return *this;}
47 inline CheckoutBorrowLicenseResult& WithLicenseArn(Aws::String&& value) { SetLicenseArn(std::move(value)); return *this;}
48 inline CheckoutBorrowLicenseResult& WithLicenseArn(const char* value) { SetLicenseArn(value); return *this;}
50
52
55 inline const Aws::String& GetLicenseConsumptionToken() const{ return m_licenseConsumptionToken; }
56 inline void SetLicenseConsumptionToken(const Aws::String& value) { m_licenseConsumptionToken = value; }
57 inline void SetLicenseConsumptionToken(Aws::String&& value) { m_licenseConsumptionToken = std::move(value); }
58 inline void SetLicenseConsumptionToken(const char* value) { m_licenseConsumptionToken.assign(value); }
63
65
68 inline const Aws::Vector<EntitlementData>& GetEntitlementsAllowed() const{ return m_entitlementsAllowed; }
69 inline void SetEntitlementsAllowed(const Aws::Vector<EntitlementData>& value) { m_entitlementsAllowed = value; }
70 inline void SetEntitlementsAllowed(Aws::Vector<EntitlementData>&& value) { m_entitlementsAllowed = std::move(value); }
73 inline CheckoutBorrowLicenseResult& AddEntitlementsAllowed(const EntitlementData& value) { m_entitlementsAllowed.push_back(value); return *this; }
74 inline CheckoutBorrowLicenseResult& AddEntitlementsAllowed(EntitlementData&& value) { m_entitlementsAllowed.push_back(std::move(value)); return *this; }
76
78
81 inline const Aws::String& GetNodeId() const{ return m_nodeId; }
82 inline void SetNodeId(const Aws::String& value) { m_nodeId = value; }
83 inline void SetNodeId(Aws::String&& value) { m_nodeId = std::move(value); }
84 inline void SetNodeId(const char* value) { m_nodeId.assign(value); }
85 inline CheckoutBorrowLicenseResult& WithNodeId(const Aws::String& value) { SetNodeId(value); return *this;}
86 inline CheckoutBorrowLicenseResult& WithNodeId(Aws::String&& value) { SetNodeId(std::move(value)); return *this;}
87 inline CheckoutBorrowLicenseResult& WithNodeId(const char* value) { SetNodeId(value); return *this;}
89
91
94 inline const Aws::String& GetSignedToken() const{ return m_signedToken; }
95 inline void SetSignedToken(const Aws::String& value) { m_signedToken = value; }
96 inline void SetSignedToken(Aws::String&& value) { m_signedToken = std::move(value); }
97 inline void SetSignedToken(const char* value) { m_signedToken.assign(value); }
98 inline CheckoutBorrowLicenseResult& WithSignedToken(const Aws::String& value) { SetSignedToken(value); return *this;}
99 inline CheckoutBorrowLicenseResult& WithSignedToken(Aws::String&& value) { SetSignedToken(std::move(value)); return *this;}
100 inline CheckoutBorrowLicenseResult& WithSignedToken(const char* value) { SetSignedToken(value); return *this;}
102
104
107 inline const Aws::String& GetIssuedAt() const{ return m_issuedAt; }
108 inline void SetIssuedAt(const Aws::String& value) { m_issuedAt = value; }
109 inline void SetIssuedAt(Aws::String&& value) { m_issuedAt = std::move(value); }
110 inline void SetIssuedAt(const char* value) { m_issuedAt.assign(value); }
111 inline CheckoutBorrowLicenseResult& WithIssuedAt(const Aws::String& value) { SetIssuedAt(value); return *this;}
112 inline CheckoutBorrowLicenseResult& WithIssuedAt(Aws::String&& value) { SetIssuedAt(std::move(value)); return *this;}
113 inline CheckoutBorrowLicenseResult& WithIssuedAt(const char* value) { SetIssuedAt(value); return *this;}
115
117
120 inline const Aws::String& GetExpiration() const{ return m_expiration; }
121 inline void SetExpiration(const Aws::String& value) { m_expiration = value; }
122 inline void SetExpiration(Aws::String&& value) { m_expiration = std::move(value); }
123 inline void SetExpiration(const char* value) { m_expiration.assign(value); }
124 inline CheckoutBorrowLicenseResult& WithExpiration(const Aws::String& value) { SetExpiration(value); return *this;}
125 inline CheckoutBorrowLicenseResult& WithExpiration(Aws::String&& value) { SetExpiration(std::move(value)); return *this;}
126 inline CheckoutBorrowLicenseResult& WithExpiration(const char* value) { SetExpiration(value); return *this;}
128
130
133 inline const Aws::Vector<Metadata>& GetCheckoutMetadata() const{ return m_checkoutMetadata; }
134 inline void SetCheckoutMetadata(const Aws::Vector<Metadata>& value) { m_checkoutMetadata = value; }
135 inline void SetCheckoutMetadata(Aws::Vector<Metadata>&& value) { m_checkoutMetadata = std::move(value); }
138 inline CheckoutBorrowLicenseResult& AddCheckoutMetadata(const Metadata& value) { m_checkoutMetadata.push_back(value); return *this; }
139 inline CheckoutBorrowLicenseResult& AddCheckoutMetadata(Metadata&& value) { m_checkoutMetadata.push_back(std::move(value)); return *this; }
141
143
144 inline const Aws::String& GetRequestId() const{ return m_requestId; }
145 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
146 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
147 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
148 inline CheckoutBorrowLicenseResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
149 inline CheckoutBorrowLicenseResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
150 inline CheckoutBorrowLicenseResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
152 private:
153
154 Aws::String m_licenseArn;
155
156 Aws::String m_licenseConsumptionToken;
157
158 Aws::Vector<EntitlementData> m_entitlementsAllowed;
159
160 Aws::String m_nodeId;
161
162 Aws::String m_signedToken;
163
164 Aws::String m_issuedAt;
165
166 Aws::String m_expiration;
167
168 Aws::Vector<Metadata> m_checkoutMetadata;
169
170 Aws::String m_requestId;
171 };
172
173} // namespace Model
174} // namespace LicenseManager
175} // namespace Aws
CheckoutBorrowLicenseResult & WithIssuedAt(Aws::String &&value)
CheckoutBorrowLicenseResult & WithLicenseArn(const Aws::String &value)
CheckoutBorrowLicenseResult & WithExpiration(Aws::String &&value)
CheckoutBorrowLicenseResult & AddEntitlementsAllowed(EntitlementData &&value)
CheckoutBorrowLicenseResult & WithNodeId(Aws::String &&value)
void SetCheckoutMetadata(const Aws::Vector< Metadata > &value)
CheckoutBorrowLicenseResult & WithExpiration(const char *value)
CheckoutBorrowLicenseResult & AddEntitlementsAllowed(const EntitlementData &value)
CheckoutBorrowLicenseResult & WithExpiration(const Aws::String &value)
CheckoutBorrowLicenseResult & WithEntitlementsAllowed(Aws::Vector< EntitlementData > &&value)
CheckoutBorrowLicenseResult & WithSignedToken(const char *value)
const Aws::Vector< EntitlementData > & GetEntitlementsAllowed() const
CheckoutBorrowLicenseResult & WithRequestId(Aws::String &&value)
void SetEntitlementsAllowed(const Aws::Vector< EntitlementData > &value)
CheckoutBorrowLicenseResult & WithLicenseArn(Aws::String &&value)
CheckoutBorrowLicenseResult & WithCheckoutMetadata(const Aws::Vector< Metadata > &value)
CheckoutBorrowLicenseResult & AddCheckoutMetadata(Metadata &&value)
AWS_LICENSEMANAGER_API CheckoutBorrowLicenseResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CheckoutBorrowLicenseResult & WithRequestId(const char *value)
void SetEntitlementsAllowed(Aws::Vector< EntitlementData > &&value)
CheckoutBorrowLicenseResult & WithSignedToken(const Aws::String &value)
CheckoutBorrowLicenseResult & WithIssuedAt(const char *value)
CheckoutBorrowLicenseResult & WithRequestId(const Aws::String &value)
CheckoutBorrowLicenseResult & AddCheckoutMetadata(const Metadata &value)
CheckoutBorrowLicenseResult & WithNodeId(const Aws::String &value)
CheckoutBorrowLicenseResult & WithLicenseArn(const char *value)
CheckoutBorrowLicenseResult & WithIssuedAt(const Aws::String &value)
CheckoutBorrowLicenseResult & WithNodeId(const char *value)
CheckoutBorrowLicenseResult & WithLicenseConsumptionToken(const char *value)
CheckoutBorrowLicenseResult & WithEntitlementsAllowed(const Aws::Vector< EntitlementData > &value)
CheckoutBorrowLicenseResult & WithCheckoutMetadata(Aws::Vector< Metadata > &&value)
CheckoutBorrowLicenseResult & WithLicenseConsumptionToken(const Aws::String &value)
CheckoutBorrowLicenseResult & WithSignedToken(Aws::String &&value)
AWS_LICENSEMANAGER_API CheckoutBorrowLicenseResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CheckoutBorrowLicenseResult & WithLicenseConsumptionToken(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