AWS SDK for C++  1.9.40
AWS SDK for C++
CheckoutBorrowLicenseRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace LicenseManager
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CheckoutBorrowLicense"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
45  inline const Aws::String& GetLicenseArn() const{ return m_licenseArn; }
46 
51  inline bool LicenseArnHasBeenSet() const { return m_licenseArnHasBeenSet; }
52 
57  inline void SetLicenseArn(const Aws::String& value) { m_licenseArnHasBeenSet = true; m_licenseArn = value; }
58 
63  inline void SetLicenseArn(Aws::String&& value) { m_licenseArnHasBeenSet = true; m_licenseArn = std::move(value); }
64 
69  inline void SetLicenseArn(const char* value) { m_licenseArnHasBeenSet = true; m_licenseArn.assign(value); }
70 
75  inline CheckoutBorrowLicenseRequest& WithLicenseArn(const Aws::String& value) { SetLicenseArn(value); return *this;}
76 
81  inline CheckoutBorrowLicenseRequest& WithLicenseArn(Aws::String&& value) { SetLicenseArn(std::move(value)); return *this;}
82 
87  inline CheckoutBorrowLicenseRequest& WithLicenseArn(const char* value) { SetLicenseArn(value); return *this;}
88 
89 
93  inline const Aws::Vector<EntitlementData>& GetEntitlements() const{ return m_entitlements; }
94 
98  inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
99 
103  inline void SetEntitlements(const Aws::Vector<EntitlementData>& value) { m_entitlementsHasBeenSet = true; m_entitlements = value; }
104 
108  inline void SetEntitlements(Aws::Vector<EntitlementData>&& value) { m_entitlementsHasBeenSet = true; m_entitlements = std::move(value); }
109 
113  inline CheckoutBorrowLicenseRequest& WithEntitlements(const Aws::Vector<EntitlementData>& value) { SetEntitlements(value); return *this;}
114 
118  inline CheckoutBorrowLicenseRequest& WithEntitlements(Aws::Vector<EntitlementData>&& value) { SetEntitlements(std::move(value)); return *this;}
119 
123  inline CheckoutBorrowLicenseRequest& AddEntitlements(const EntitlementData& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(value); return *this; }
124 
128  inline CheckoutBorrowLicenseRequest& AddEntitlements(EntitlementData&& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(std::move(value)); return *this; }
129 
130 
137  inline const DigitalSignatureMethod& GetDigitalSignatureMethod() const{ return m_digitalSignatureMethod; }
138 
145  inline bool DigitalSignatureMethodHasBeenSet() const { return m_digitalSignatureMethodHasBeenSet; }
146 
153  inline void SetDigitalSignatureMethod(const DigitalSignatureMethod& value) { m_digitalSignatureMethodHasBeenSet = true; m_digitalSignatureMethod = value; }
154 
161  inline void SetDigitalSignatureMethod(DigitalSignatureMethod&& value) { m_digitalSignatureMethodHasBeenSet = true; m_digitalSignatureMethod = std::move(value); }
162 
169  inline CheckoutBorrowLicenseRequest& WithDigitalSignatureMethod(const DigitalSignatureMethod& value) { SetDigitalSignatureMethod(value); return *this;}
170 
177  inline CheckoutBorrowLicenseRequest& WithDigitalSignatureMethod(DigitalSignatureMethod&& value) { SetDigitalSignatureMethod(std::move(value)); return *this;}
178 
179 
183  inline const Aws::String& GetNodeId() const{ return m_nodeId; }
184 
188  inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
189 
193  inline void SetNodeId(const Aws::String& value) { m_nodeIdHasBeenSet = true; m_nodeId = value; }
194 
198  inline void SetNodeId(Aws::String&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::move(value); }
199 
203  inline void SetNodeId(const char* value) { m_nodeIdHasBeenSet = true; m_nodeId.assign(value); }
204 
208  inline CheckoutBorrowLicenseRequest& WithNodeId(const Aws::String& value) { SetNodeId(value); return *this;}
209 
213  inline CheckoutBorrowLicenseRequest& WithNodeId(Aws::String&& value) { SetNodeId(std::move(value)); return *this;}
214 
218  inline CheckoutBorrowLicenseRequest& WithNodeId(const char* value) { SetNodeId(value); return *this;}
219 
220 
224  inline const Aws::Vector<Metadata>& GetCheckoutMetadata() const{ return m_checkoutMetadata; }
225 
229  inline bool CheckoutMetadataHasBeenSet() const { return m_checkoutMetadataHasBeenSet; }
230 
234  inline void SetCheckoutMetadata(const Aws::Vector<Metadata>& value) { m_checkoutMetadataHasBeenSet = true; m_checkoutMetadata = value; }
235 
239  inline void SetCheckoutMetadata(Aws::Vector<Metadata>&& value) { m_checkoutMetadataHasBeenSet = true; m_checkoutMetadata = std::move(value); }
240 
244  inline CheckoutBorrowLicenseRequest& WithCheckoutMetadata(const Aws::Vector<Metadata>& value) { SetCheckoutMetadata(value); return *this;}
245 
249  inline CheckoutBorrowLicenseRequest& WithCheckoutMetadata(Aws::Vector<Metadata>&& value) { SetCheckoutMetadata(std::move(value)); return *this;}
250 
254  inline CheckoutBorrowLicenseRequest& AddCheckoutMetadata(const Metadata& value) { m_checkoutMetadataHasBeenSet = true; m_checkoutMetadata.push_back(value); return *this; }
255 
259  inline CheckoutBorrowLicenseRequest& AddCheckoutMetadata(Metadata&& value) { m_checkoutMetadataHasBeenSet = true; m_checkoutMetadata.push_back(std::move(value)); return *this; }
260 
261 
266  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
267 
272  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
273 
278  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
279 
284  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
285 
290  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
291 
296  inline CheckoutBorrowLicenseRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
297 
302  inline CheckoutBorrowLicenseRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
303 
308  inline CheckoutBorrowLicenseRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
309 
310  private:
311 
312  Aws::String m_licenseArn;
313  bool m_licenseArnHasBeenSet;
314 
315  Aws::Vector<EntitlementData> m_entitlements;
316  bool m_entitlementsHasBeenSet;
317 
318  DigitalSignatureMethod m_digitalSignatureMethod;
319  bool m_digitalSignatureMethodHasBeenSet;
320 
321  Aws::String m_nodeId;
322  bool m_nodeIdHasBeenSet;
323 
324  Aws::Vector<Metadata> m_checkoutMetadata;
325  bool m_checkoutMetadataHasBeenSet;
326 
327  Aws::String m_clientToken;
328  bool m_clientTokenHasBeenSet;
329  };
330 
331 } // namespace Model
332 } // namespace LicenseManager
333 } // namespace Aws
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::WithLicenseArn
CheckoutBorrowLicenseRequest & WithLicenseArn(const Aws::String &value)
Definition: CheckoutBorrowLicenseRequest.h:75
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CheckoutBorrowLicenseRequest.h:266
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest
Definition: CheckoutBorrowLicenseRequest.h:26
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::WithClientToken
CheckoutBorrowLicenseRequest & WithClientToken(Aws::String &&value)
Definition: CheckoutBorrowLicenseRequest.h:302
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CheckoutBorrowLicenseRequest.h:290
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::LicenseArnHasBeenSet
bool LicenseArnHasBeenSet() const
Definition: CheckoutBorrowLicenseRequest.h:51
Aws::LicenseManager::Model::EntitlementData
Definition: EntitlementData.h:33
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CheckoutBorrowLicenseRequest.h:284
EntitlementData.h
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::SetNodeId
void SetNodeId(const Aws::String &value)
Definition: CheckoutBorrowLicenseRequest.h:193
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::SetCheckoutMetadata
void SetCheckoutMetadata(const Aws::Vector< Metadata > &value)
Definition: CheckoutBorrowLicenseRequest.h:234
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
LicenseManagerRequest.h
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::WithLicenseArn
CheckoutBorrowLicenseRequest & WithLicenseArn(const char *value)
Definition: CheckoutBorrowLicenseRequest.h:87
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::GetNodeId
const Aws::String & GetNodeId() const
Definition: CheckoutBorrowLicenseRequest.h:183
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::WithEntitlements
CheckoutBorrowLicenseRequest & WithEntitlements(const Aws::Vector< EntitlementData > &value)
Definition: CheckoutBorrowLicenseRequest.h:113
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::WithNodeId
CheckoutBorrowLicenseRequest & WithNodeId(const Aws::String &value)
Definition: CheckoutBorrowLicenseRequest.h:208
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::SetCheckoutMetadata
void SetCheckoutMetadata(Aws::Vector< Metadata > &&value)
Definition: CheckoutBorrowLicenseRequest.h:239
Aws::LicenseManager::Model::Metadata
Definition: Metadata.h:32
AWSVector.h
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::SetNodeId
void SetNodeId(Aws::String &&value)
Definition: CheckoutBorrowLicenseRequest.h:198
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::WithClientToken
CheckoutBorrowLicenseRequest & WithClientToken(const Aws::String &value)
Definition: CheckoutBorrowLicenseRequest.h:296
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CheckoutBorrowLicenseRequest.h:278
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::WithNodeId
CheckoutBorrowLicenseRequest & WithNodeId(const char *value)
Definition: CheckoutBorrowLicenseRequest.h:218
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::WithClientToken
CheckoutBorrowLicenseRequest & WithClientToken(const char *value)
Definition: CheckoutBorrowLicenseRequest.h:308
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::GetDigitalSignatureMethod
const DigitalSignatureMethod & GetDigitalSignatureMethod() const
Definition: CheckoutBorrowLicenseRequest.h:137
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::WithLicenseArn
CheckoutBorrowLicenseRequest & WithLicenseArn(Aws::String &&value)
Definition: CheckoutBorrowLicenseRequest.h:81
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::WithEntitlements
CheckoutBorrowLicenseRequest & WithEntitlements(Aws::Vector< EntitlementData > &&value)
Definition: CheckoutBorrowLicenseRequest.h:118
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::AddEntitlements
CheckoutBorrowLicenseRequest & AddEntitlements(const EntitlementData &value)
Definition: CheckoutBorrowLicenseRequest.h:123
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::SetDigitalSignatureMethod
void SetDigitalSignatureMethod(DigitalSignatureMethod &&value)
Definition: CheckoutBorrowLicenseRequest.h:161
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::SetNodeId
void SetNodeId(const char *value)
Definition: CheckoutBorrowLicenseRequest.h:203
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::SetLicenseArn
void SetLicenseArn(Aws::String &&value)
Definition: CheckoutBorrowLicenseRequest.h:63
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CheckoutBorrowLicenseRequest.h:34
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::SetLicenseArn
void SetLicenseArn(const char *value)
Definition: CheckoutBorrowLicenseRequest.h:69
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::AddEntitlements
CheckoutBorrowLicenseRequest & AddEntitlements(EntitlementData &&value)
Definition: CheckoutBorrowLicenseRequest.h:128
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::NodeIdHasBeenSet
bool NodeIdHasBeenSet() const
Definition: CheckoutBorrowLicenseRequest.h:188
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::GetCheckoutMetadata
const Aws::Vector< Metadata > & GetCheckoutMetadata() const
Definition: CheckoutBorrowLicenseRequest.h:224
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::WithNodeId
CheckoutBorrowLicenseRequest & WithNodeId(Aws::String &&value)
Definition: CheckoutBorrowLicenseRequest.h:213
Metadata.h
AWS_LICENSEMANAGER_API
#define AWS_LICENSEMANAGER_API
Definition: LicenseManager_EXPORTS.h:28
AWSString.h
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::WithDigitalSignatureMethod
CheckoutBorrowLicenseRequest & WithDigitalSignatureMethod(const DigitalSignatureMethod &value)
Definition: CheckoutBorrowLicenseRequest.h:169
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::EntitlementsHasBeenSet
bool EntitlementsHasBeenSet() const
Definition: CheckoutBorrowLicenseRequest.h:98
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::WithCheckoutMetadata
CheckoutBorrowLicenseRequest & WithCheckoutMetadata(Aws::Vector< Metadata > &&value)
Definition: CheckoutBorrowLicenseRequest.h:249
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::SetEntitlements
void SetEntitlements(Aws::Vector< EntitlementData > &&value)
Definition: CheckoutBorrowLicenseRequest.h:108
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::SetDigitalSignatureMethod
void SetDigitalSignatureMethod(const DigitalSignatureMethod &value)
Definition: CheckoutBorrowLicenseRequest.h:153
LicenseManager_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::GetLicenseArn
const Aws::String & GetLicenseArn() const
Definition: CheckoutBorrowLicenseRequest.h:45
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::AddCheckoutMetadata
CheckoutBorrowLicenseRequest & AddCheckoutMetadata(Metadata &&value)
Definition: CheckoutBorrowLicenseRequest.h:259
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::DigitalSignatureMethodHasBeenSet
bool DigitalSignatureMethodHasBeenSet() const
Definition: CheckoutBorrowLicenseRequest.h:145
DigitalSignatureMethod.h
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::SetEntitlements
void SetEntitlements(const Aws::Vector< EntitlementData > &value)
Definition: CheckoutBorrowLicenseRequest.h:103
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::WithCheckoutMetadata
CheckoutBorrowLicenseRequest & WithCheckoutMetadata(const Aws::Vector< Metadata > &value)
Definition: CheckoutBorrowLicenseRequest.h:244
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::CheckoutMetadataHasBeenSet
bool CheckoutMetadataHasBeenSet() const
Definition: CheckoutBorrowLicenseRequest.h:229
Aws::LicenseManager::Model::DigitalSignatureMethod
DigitalSignatureMethod
Definition: DigitalSignatureMethod.h:17
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::GetEntitlements
const Aws::Vector< EntitlementData > & GetEntitlements() const
Definition: CheckoutBorrowLicenseRequest.h:93
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::WithDigitalSignatureMethod
CheckoutBorrowLicenseRequest & WithDigitalSignatureMethod(DigitalSignatureMethod &&value)
Definition: CheckoutBorrowLicenseRequest.h:177
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CheckoutBorrowLicenseRequest.h:272
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::AddCheckoutMetadata
CheckoutBorrowLicenseRequest & AddCheckoutMetadata(const Metadata &value)
Definition: CheckoutBorrowLicenseRequest.h:254
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::SetLicenseArn
void SetLicenseArn(const Aws::String &value)
Definition: CheckoutBorrowLicenseRequest.h:57
Aws::LicenseManager::Model::CheckoutBorrowLicenseRequest::CheckoutBorrowLicenseRequest
CheckoutBorrowLicenseRequest()
Aws::LicenseManager::LicenseManagerRequest
Definition: LicenseManagerRequest.h:17