AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename LicenseArnT = Aws::String>
49 void SetLicenseArn(LicenseArnT&& value) { m_licenseArnHasBeenSet = true; m_licenseArn = std::forward<LicenseArnT>(value); }
50 template<typename LicenseArnT = Aws::String>
51 CheckoutBorrowLicenseRequest& WithLicenseArn(LicenseArnT&& value) { SetLicenseArn(std::forward<LicenseArnT>(value)); return *this;}
53
55
58 inline const Aws::Vector<EntitlementData>& GetEntitlements() const { return m_entitlements; }
59 inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; }
60 template<typename EntitlementsT = Aws::Vector<EntitlementData>>
61 void SetEntitlements(EntitlementsT&& value) { m_entitlementsHasBeenSet = true; m_entitlements = std::forward<EntitlementsT>(value); }
62 template<typename EntitlementsT = Aws::Vector<EntitlementData>>
63 CheckoutBorrowLicenseRequest& WithEntitlements(EntitlementsT&& value) { SetEntitlements(std::forward<EntitlementsT>(value)); return *this;}
64 template<typename EntitlementsT = EntitlementData>
65 CheckoutBorrowLicenseRequest& AddEntitlements(EntitlementsT&& value) { m_entitlementsHasBeenSet = true; m_entitlements.emplace_back(std::forward<EntitlementsT>(value)); return *this; }
67
69
75 inline DigitalSignatureMethod GetDigitalSignatureMethod() const { return m_digitalSignatureMethod; }
76 inline bool DigitalSignatureMethodHasBeenSet() const { return m_digitalSignatureMethodHasBeenSet; }
77 inline void SetDigitalSignatureMethod(DigitalSignatureMethod value) { m_digitalSignatureMethodHasBeenSet = true; m_digitalSignatureMethod = value; }
80
82
85 inline const Aws::String& GetNodeId() const { return m_nodeId; }
86 inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; }
87 template<typename NodeIdT = Aws::String>
88 void SetNodeId(NodeIdT&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::forward<NodeIdT>(value); }
89 template<typename NodeIdT = Aws::String>
90 CheckoutBorrowLicenseRequest& WithNodeId(NodeIdT&& value) { SetNodeId(std::forward<NodeIdT>(value)); return *this;}
92
94
97 inline const Aws::Vector<Metadata>& GetCheckoutMetadata() const { return m_checkoutMetadata; }
98 inline bool CheckoutMetadataHasBeenSet() const { return m_checkoutMetadataHasBeenSet; }
99 template<typename CheckoutMetadataT = Aws::Vector<Metadata>>
100 void SetCheckoutMetadata(CheckoutMetadataT&& value) { m_checkoutMetadataHasBeenSet = true; m_checkoutMetadata = std::forward<CheckoutMetadataT>(value); }
101 template<typename CheckoutMetadataT = Aws::Vector<Metadata>>
102 CheckoutBorrowLicenseRequest& WithCheckoutMetadata(CheckoutMetadataT&& value) { SetCheckoutMetadata(std::forward<CheckoutMetadataT>(value)); return *this;}
103 template<typename CheckoutMetadataT = Metadata>
104 CheckoutBorrowLicenseRequest& AddCheckoutMetadata(CheckoutMetadataT&& value) { m_checkoutMetadataHasBeenSet = true; m_checkoutMetadata.emplace_back(std::forward<CheckoutMetadataT>(value)); return *this; }
106
108
112 inline const Aws::String& GetClientToken() const { return m_clientToken; }
113 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
114 template<typename ClientTokenT = Aws::String>
115 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
116 template<typename ClientTokenT = Aws::String>
117 CheckoutBorrowLicenseRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
119 private:
120
121 Aws::String m_licenseArn;
122 bool m_licenseArnHasBeenSet = false;
123
124 Aws::Vector<EntitlementData> m_entitlements;
125 bool m_entitlementsHasBeenSet = false;
126
128 bool m_digitalSignatureMethodHasBeenSet = false;
129
130 Aws::String m_nodeId;
131 bool m_nodeIdHasBeenSet = false;
132
133 Aws::Vector<Metadata> m_checkoutMetadata;
134 bool m_checkoutMetadataHasBeenSet = false;
135
136 Aws::String m_clientToken;
137 bool m_clientTokenHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace LicenseManager
142} // namespace Aws
CheckoutBorrowLicenseRequest & WithEntitlements(EntitlementsT &&value)
const Aws::Vector< EntitlementData > & GetEntitlements() const
AWS_LICENSEMANAGER_API CheckoutBorrowLicenseRequest()=default
AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CheckoutBorrowLicenseRequest & WithDigitalSignatureMethod(DigitalSignatureMethod value)
CheckoutBorrowLicenseRequest & AddEntitlements(EntitlementsT &&value)
CheckoutBorrowLicenseRequest & WithLicenseArn(LicenseArnT &&value)
CheckoutBorrowLicenseRequest & WithCheckoutMetadata(CheckoutMetadataT &&value)
AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override
CheckoutBorrowLicenseRequest & WithNodeId(NodeIdT &&value)
CheckoutBorrowLicenseRequest & WithClientToken(ClientTokenT &&value)
CheckoutBorrowLicenseRequest & AddCheckoutMetadata(CheckoutMetadataT &&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