AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CheckoutBorrowLicenseRequest.h
1
6#pragma once
7#include <aws/license-manager/LicenseManager_EXPORTS.h>
8#include <aws/license-manager/LicenseManagerRequest.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/DigitalSignatureMethod.h>
12#include <aws/license-manager/model/EntitlementData.h>
13#include <aws/license-manager/model/Metadata.h>
14#include <utility>
15
16namespace Aws
17{
18namespace LicenseManager
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_LICENSEMANAGER_API CheckoutBorrowLicenseRequest();
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_LICENSEMANAGER_API Aws::String SerializePayload() const override;
37
38 AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const Aws::String& GetLicenseArn() const{ return m_licenseArn; }
47 inline bool LicenseArnHasBeenSet() const { return m_licenseArnHasBeenSet; }
48 inline void SetLicenseArn(const Aws::String& value) { m_licenseArnHasBeenSet = true; m_licenseArn = value; }
49 inline void SetLicenseArn(Aws::String&& value) { m_licenseArnHasBeenSet = true; m_licenseArn = std::move(value); }
50 inline void SetLicenseArn(const char* value) { m_licenseArnHasBeenSet = true; m_licenseArn.assign(value); }
51 inline CheckoutBorrowLicenseRequest& WithLicenseArn(const Aws::String& value) { SetLicenseArn(value); return *this;}
52 inline CheckoutBorrowLicenseRequest& WithLicenseArn(Aws::String&& value) { SetLicenseArn(std::move(value)); return *this;}
53 inline CheckoutBorrowLicenseRequest& WithLicenseArn(const char* value) { SetLicenseArn(value); return *this;}
55
57
60 inline const Aws::Vector<EntitlementData>& GetEntitlements() const{ return m_entitlements; }
61 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
62 inline void SetEntitlements(const Aws::Vector<EntitlementData>& value) { m_entitlementsHasBeenSet = true; m_entitlements = value; }
63 inline void SetEntitlements(Aws::Vector<EntitlementData>&& value) { m_entitlementsHasBeenSet = true; m_entitlements = std::move(value); }
66 inline CheckoutBorrowLicenseRequest& AddEntitlements(const EntitlementData& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(value); return *this; }
67 inline CheckoutBorrowLicenseRequest& AddEntitlements(EntitlementData&& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(std::move(value)); return *this; }
69
71
77 inline const DigitalSignatureMethod& GetDigitalSignatureMethod() const{ return m_digitalSignatureMethod; }
78 inline bool DigitalSignatureMethodHasBeenSet() const { return m_digitalSignatureMethodHasBeenSet; }
79 inline void SetDigitalSignatureMethod(const DigitalSignatureMethod& value) { m_digitalSignatureMethodHasBeenSet = true; m_digitalSignatureMethod = value; }
80 inline void SetDigitalSignatureMethod(DigitalSignatureMethod&& value) { m_digitalSignatureMethodHasBeenSet = true; m_digitalSignatureMethod = std::move(value); }
84
86
89 inline const Aws::String& GetNodeId() const{ return m_nodeId; }
90 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
91 inline void SetNodeId(const Aws::String& value) { m_nodeIdHasBeenSet = true; m_nodeId = value; }
92 inline void SetNodeId(Aws::String&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::move(value); }
93 inline void SetNodeId(const char* value) { m_nodeIdHasBeenSet = true; m_nodeId.assign(value); }
94 inline CheckoutBorrowLicenseRequest& WithNodeId(const Aws::String& value) { SetNodeId(value); return *this;}
95 inline CheckoutBorrowLicenseRequest& WithNodeId(Aws::String&& value) { SetNodeId(std::move(value)); return *this;}
96 inline CheckoutBorrowLicenseRequest& WithNodeId(const char* value) { SetNodeId(value); return *this;}
98
100
103 inline const Aws::Vector<Metadata>& GetCheckoutMetadata() const{ return m_checkoutMetadata; }
104 inline bool CheckoutMetadataHasBeenSet() const { return m_checkoutMetadataHasBeenSet; }
105 inline void SetCheckoutMetadata(const Aws::Vector<Metadata>& value) { m_checkoutMetadataHasBeenSet = true; m_checkoutMetadata = value; }
106 inline void SetCheckoutMetadata(Aws::Vector<Metadata>&& value) { m_checkoutMetadataHasBeenSet = true; m_checkoutMetadata = std::move(value); }
109 inline CheckoutBorrowLicenseRequest& AddCheckoutMetadata(const Metadata& value) { m_checkoutMetadataHasBeenSet = true; m_checkoutMetadata.push_back(value); return *this; }
110 inline CheckoutBorrowLicenseRequest& AddCheckoutMetadata(Metadata&& value) { m_checkoutMetadataHasBeenSet = true; m_checkoutMetadata.push_back(std::move(value)); return *this; }
112
114
118 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
119 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
120 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
121 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
122 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
123 inline CheckoutBorrowLicenseRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
124 inline CheckoutBorrowLicenseRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
125 inline CheckoutBorrowLicenseRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
127 private:
128
129 Aws::String m_licenseArn;
130 bool m_licenseArnHasBeenSet = false;
131
132 Aws::Vector<EntitlementData> m_entitlements;
133 bool m_entitlementsHasBeenSet = false;
134
135 DigitalSignatureMethod m_digitalSignatureMethod;
136 bool m_digitalSignatureMethodHasBeenSet = false;
137
138 Aws::String m_nodeId;
139 bool m_nodeIdHasBeenSet = false;
140
141 Aws::Vector<Metadata> m_checkoutMetadata;
142 bool m_checkoutMetadataHasBeenSet = false;
143
144 Aws::String m_clientToken;
145 bool m_clientTokenHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace LicenseManager
150} // namespace Aws
const Aws::Vector< EntitlementData > & GetEntitlements() const
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CheckoutBorrowLicenseRequest & AddEntitlements(const EntitlementData &value)
CheckoutBorrowLicenseRequest & WithLicenseArn(const char *value)
CheckoutBorrowLicenseRequest & WithEntitlements(const Aws::Vector< EntitlementData > &value)
CheckoutBorrowLicenseRequest & WithDigitalSignatureMethod(DigitalSignatureMethod &&value)
CheckoutBorrowLicenseRequest & AddEntitlements(EntitlementData &&value)
void SetEntitlements(const Aws::Vector< EntitlementData > &value)
CheckoutBorrowLicenseRequest & AddCheckoutMetadata(const Metadata &value)
CheckoutBorrowLicenseRequest & WithNodeId(Aws::String &&value)
CheckoutBorrowLicenseRequest & WithLicenseArn(const Aws::String &value)
CheckoutBorrowLicenseRequest & WithDigitalSignatureMethod(const DigitalSignatureMethod &value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
CheckoutBorrowLicenseRequest & AddCheckoutMetadata(Metadata &&value)
void SetDigitalSignatureMethod(const DigitalSignatureMethod &value)
CheckoutBorrowLicenseRequest & WithCheckoutMetadata(Aws::Vector< Metadata > &&value)
CheckoutBorrowLicenseRequest & WithLicenseArn(Aws::String &&value)
CheckoutBorrowLicenseRequest & WithEntitlements(Aws::Vector< EntitlementData > &&value)
CheckoutBorrowLicenseRequest & WithClientToken(const Aws::String &value)
CheckoutBorrowLicenseRequest & WithClientToken(Aws::String &&value)
CheckoutBorrowLicenseRequest & WithClientToken(const char *value)
CheckoutBorrowLicenseRequest & WithCheckoutMetadata(const Aws::Vector< Metadata > &value)
CheckoutBorrowLicenseRequest & WithNodeId(const char *value)
CheckoutBorrowLicenseRequest & WithNodeId(const Aws::String &value)
void SetEntitlements(Aws::Vector< EntitlementData > &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector