AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
36
37
39
42 inline const Aws::String& GetLicenseArn() const { return m_licenseArn; }
43 template<typename LicenseArnT = Aws::String>
44 void SetLicenseArn(LicenseArnT&& value) { m_licenseArnHasBeenSet = true; m_licenseArn = std::forward<LicenseArnT>(value); }
45 template<typename LicenseArnT = Aws::String>
46 CheckoutBorrowLicenseResult& WithLicenseArn(LicenseArnT&& value) { SetLicenseArn(std::forward<LicenseArnT>(value)); return *this;}
48
50
53 inline const Aws::String& GetLicenseConsumptionToken() const { return m_licenseConsumptionToken; }
54 template<typename LicenseConsumptionTokenT = Aws::String>
55 void SetLicenseConsumptionToken(LicenseConsumptionTokenT&& value) { m_licenseConsumptionTokenHasBeenSet = true; m_licenseConsumptionToken = std::forward<LicenseConsumptionTokenT>(value); }
56 template<typename LicenseConsumptionTokenT = Aws::String>
57 CheckoutBorrowLicenseResult& WithLicenseConsumptionToken(LicenseConsumptionTokenT&& value) { SetLicenseConsumptionToken(std::forward<LicenseConsumptionTokenT>(value)); return *this;}
59
61
64 inline const Aws::Vector<EntitlementData>& GetEntitlementsAllowed() const { return m_entitlementsAllowed; }
65 template<typename EntitlementsAllowedT = Aws::Vector<EntitlementData>>
66 void SetEntitlementsAllowed(EntitlementsAllowedT&& value) { m_entitlementsAllowedHasBeenSet = true; m_entitlementsAllowed = std::forward<EntitlementsAllowedT>(value); }
67 template<typename EntitlementsAllowedT = Aws::Vector<EntitlementData>>
68 CheckoutBorrowLicenseResult& WithEntitlementsAllowed(EntitlementsAllowedT&& value) { SetEntitlementsAllowed(std::forward<EntitlementsAllowedT>(value)); return *this;}
69 template<typename EntitlementsAllowedT = EntitlementData>
70 CheckoutBorrowLicenseResult& AddEntitlementsAllowed(EntitlementsAllowedT&& value) { m_entitlementsAllowedHasBeenSet = true; m_entitlementsAllowed.emplace_back(std::forward<EntitlementsAllowedT>(value)); return *this; }
72
74
77 inline const Aws::String& GetNodeId() const { return m_nodeId; }
78 template<typename NodeIdT = Aws::String>
79 void SetNodeId(NodeIdT&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::forward<NodeIdT>(value); }
80 template<typename NodeIdT = Aws::String>
81 CheckoutBorrowLicenseResult& WithNodeId(NodeIdT&& value) { SetNodeId(std::forward<NodeIdT>(value)); return *this;}
83
85
88 inline const Aws::String& GetSignedToken() const { return m_signedToken; }
89 template<typename SignedTokenT = Aws::String>
90 void SetSignedToken(SignedTokenT&& value) { m_signedTokenHasBeenSet = true; m_signedToken = std::forward<SignedTokenT>(value); }
91 template<typename SignedTokenT = Aws::String>
92 CheckoutBorrowLicenseResult& WithSignedToken(SignedTokenT&& value) { SetSignedToken(std::forward<SignedTokenT>(value)); return *this;}
94
96
99 inline const Aws::String& GetIssuedAt() const { return m_issuedAt; }
100 template<typename IssuedAtT = Aws::String>
101 void SetIssuedAt(IssuedAtT&& value) { m_issuedAtHasBeenSet = true; m_issuedAt = std::forward<IssuedAtT>(value); }
102 template<typename IssuedAtT = Aws::String>
103 CheckoutBorrowLicenseResult& WithIssuedAt(IssuedAtT&& value) { SetIssuedAt(std::forward<IssuedAtT>(value)); return *this;}
105
107
110 inline const Aws::String& GetExpiration() const { return m_expiration; }
111 template<typename ExpirationT = Aws::String>
112 void SetExpiration(ExpirationT&& value) { m_expirationHasBeenSet = true; m_expiration = std::forward<ExpirationT>(value); }
113 template<typename ExpirationT = Aws::String>
114 CheckoutBorrowLicenseResult& WithExpiration(ExpirationT&& value) { SetExpiration(std::forward<ExpirationT>(value)); return *this;}
116
118
121 inline const Aws::Vector<Metadata>& GetCheckoutMetadata() const { return m_checkoutMetadata; }
122 template<typename CheckoutMetadataT = Aws::Vector<Metadata>>
123 void SetCheckoutMetadata(CheckoutMetadataT&& value) { m_checkoutMetadataHasBeenSet = true; m_checkoutMetadata = std::forward<CheckoutMetadataT>(value); }
124 template<typename CheckoutMetadataT = Aws::Vector<Metadata>>
125 CheckoutBorrowLicenseResult& WithCheckoutMetadata(CheckoutMetadataT&& value) { SetCheckoutMetadata(std::forward<CheckoutMetadataT>(value)); return *this;}
126 template<typename CheckoutMetadataT = Metadata>
127 CheckoutBorrowLicenseResult& AddCheckoutMetadata(CheckoutMetadataT&& value) { m_checkoutMetadataHasBeenSet = true; m_checkoutMetadata.emplace_back(std::forward<CheckoutMetadataT>(value)); return *this; }
129
131
132 inline const Aws::String& GetRequestId() const { return m_requestId; }
133 template<typename RequestIdT = Aws::String>
134 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
135 template<typename RequestIdT = Aws::String>
136 CheckoutBorrowLicenseResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
138 private:
139
140 Aws::String m_licenseArn;
141 bool m_licenseArnHasBeenSet = false;
142
143 Aws::String m_licenseConsumptionToken;
144 bool m_licenseConsumptionTokenHasBeenSet = false;
145
146 Aws::Vector<EntitlementData> m_entitlementsAllowed;
147 bool m_entitlementsAllowedHasBeenSet = false;
148
149 Aws::String m_nodeId;
150 bool m_nodeIdHasBeenSet = false;
151
152 Aws::String m_signedToken;
153 bool m_signedTokenHasBeenSet = false;
154
155 Aws::String m_issuedAt;
156 bool m_issuedAtHasBeenSet = false;
157
158 Aws::String m_expiration;
159 bool m_expirationHasBeenSet = false;
160
161 Aws::Vector<Metadata> m_checkoutMetadata;
162 bool m_checkoutMetadataHasBeenSet = false;
163
164 Aws::String m_requestId;
165 bool m_requestIdHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace LicenseManager
170} // 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