/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace LicenseManager { namespace Model { /** */ class CheckoutBorrowLicenseRequest : public LicenseManagerRequest { public: AWS_LICENSEMANAGER_API CheckoutBorrowLicenseRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CheckoutBorrowLicense"; } AWS_LICENSEMANAGER_API Aws::String SerializePayload() const override; AWS_LICENSEMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Amazon Resource Name (ARN) of the license. The license must use the borrow * consumption configuration.

*/ inline const Aws::String& GetLicenseArn() const{ return m_licenseArn; } /** *

Amazon Resource Name (ARN) of the license. The license must use the borrow * consumption configuration.

*/ inline bool LicenseArnHasBeenSet() const { return m_licenseArnHasBeenSet; } /** *

Amazon Resource Name (ARN) of the license. The license must use the borrow * consumption configuration.

*/ inline void SetLicenseArn(const Aws::String& value) { m_licenseArnHasBeenSet = true; m_licenseArn = value; } /** *

Amazon Resource Name (ARN) of the license. The license must use the borrow * consumption configuration.

*/ inline void SetLicenseArn(Aws::String&& value) { m_licenseArnHasBeenSet = true; m_licenseArn = std::move(value); } /** *

Amazon Resource Name (ARN) of the license. The license must use the borrow * consumption configuration.

*/ inline void SetLicenseArn(const char* value) { m_licenseArnHasBeenSet = true; m_licenseArn.assign(value); } /** *

Amazon Resource Name (ARN) of the license. The license must use the borrow * consumption configuration.

*/ inline CheckoutBorrowLicenseRequest& WithLicenseArn(const Aws::String& value) { SetLicenseArn(value); return *this;} /** *

Amazon Resource Name (ARN) of the license. The license must use the borrow * consumption configuration.

*/ inline CheckoutBorrowLicenseRequest& WithLicenseArn(Aws::String&& value) { SetLicenseArn(std::move(value)); return *this;} /** *

Amazon Resource Name (ARN) of the license. The license must use the borrow * consumption configuration.

*/ inline CheckoutBorrowLicenseRequest& WithLicenseArn(const char* value) { SetLicenseArn(value); return *this;} /** *

License entitlements. Partial checkouts are not supported.

*/ inline const Aws::Vector& GetEntitlements() const{ return m_entitlements; } /** *

License entitlements. Partial checkouts are not supported.

*/ inline bool EntitlementsHasBeenSet() const { return m_entitlementsHasBeenSet; } /** *

License entitlements. Partial checkouts are not supported.

*/ inline void SetEntitlements(const Aws::Vector& value) { m_entitlementsHasBeenSet = true; m_entitlements = value; } /** *

License entitlements. Partial checkouts are not supported.

*/ inline void SetEntitlements(Aws::Vector&& value) { m_entitlementsHasBeenSet = true; m_entitlements = std::move(value); } /** *

License entitlements. Partial checkouts are not supported.

*/ inline CheckoutBorrowLicenseRequest& WithEntitlements(const Aws::Vector& value) { SetEntitlements(value); return *this;} /** *

License entitlements. Partial checkouts are not supported.

*/ inline CheckoutBorrowLicenseRequest& WithEntitlements(Aws::Vector&& value) { SetEntitlements(std::move(value)); return *this;} /** *

License entitlements. Partial checkouts are not supported.

*/ inline CheckoutBorrowLicenseRequest& AddEntitlements(const EntitlementData& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(value); return *this; } /** *

License entitlements. Partial checkouts are not supported.

*/ inline CheckoutBorrowLicenseRequest& AddEntitlements(EntitlementData&& value) { m_entitlementsHasBeenSet = true; m_entitlements.push_back(std::move(value)); return *this; } /** *

Digital signature method. The possible value is JSON Web Signature (JWS) * algorithm PS384. For more information, see RFC 7518 Digital * Signature with RSASSA-PSS.

*/ inline const DigitalSignatureMethod& GetDigitalSignatureMethod() const{ return m_digitalSignatureMethod; } /** *

Digital signature method. The possible value is JSON Web Signature (JWS) * algorithm PS384. For more information, see RFC 7518 Digital * Signature with RSASSA-PSS.

*/ inline bool DigitalSignatureMethodHasBeenSet() const { return m_digitalSignatureMethodHasBeenSet; } /** *

Digital signature method. The possible value is JSON Web Signature (JWS) * algorithm PS384. For more information, see RFC 7518 Digital * Signature with RSASSA-PSS.

*/ inline void SetDigitalSignatureMethod(const DigitalSignatureMethod& value) { m_digitalSignatureMethodHasBeenSet = true; m_digitalSignatureMethod = value; } /** *

Digital signature method. The possible value is JSON Web Signature (JWS) * algorithm PS384. For more information, see RFC 7518 Digital * Signature with RSASSA-PSS.

*/ inline void SetDigitalSignatureMethod(DigitalSignatureMethod&& value) { m_digitalSignatureMethodHasBeenSet = true; m_digitalSignatureMethod = std::move(value); } /** *

Digital signature method. The possible value is JSON Web Signature (JWS) * algorithm PS384. For more information, see RFC 7518 Digital * Signature with RSASSA-PSS.

*/ inline CheckoutBorrowLicenseRequest& WithDigitalSignatureMethod(const DigitalSignatureMethod& value) { SetDigitalSignatureMethod(value); return *this;} /** *

Digital signature method. The possible value is JSON Web Signature (JWS) * algorithm PS384. For more information, see RFC 7518 Digital * Signature with RSASSA-PSS.

*/ inline CheckoutBorrowLicenseRequest& WithDigitalSignatureMethod(DigitalSignatureMethod&& value) { SetDigitalSignatureMethod(std::move(value)); return *this;} /** *

Node ID.

*/ inline const Aws::String& GetNodeId() const{ return m_nodeId; } /** *

Node ID.

*/ inline bool NodeIdHasBeenSet() const { return m_nodeIdHasBeenSet; } /** *

Node ID.

*/ inline void SetNodeId(const Aws::String& value) { m_nodeIdHasBeenSet = true; m_nodeId = value; } /** *

Node ID.

*/ inline void SetNodeId(Aws::String&& value) { m_nodeIdHasBeenSet = true; m_nodeId = std::move(value); } /** *

Node ID.

*/ inline void SetNodeId(const char* value) { m_nodeIdHasBeenSet = true; m_nodeId.assign(value); } /** *

Node ID.

*/ inline CheckoutBorrowLicenseRequest& WithNodeId(const Aws::String& value) { SetNodeId(value); return *this;} /** *

Node ID.

*/ inline CheckoutBorrowLicenseRequest& WithNodeId(Aws::String&& value) { SetNodeId(std::move(value)); return *this;} /** *

Node ID.

*/ inline CheckoutBorrowLicenseRequest& WithNodeId(const char* value) { SetNodeId(value); return *this;} /** *

Information about constraints.

*/ inline const Aws::Vector& GetCheckoutMetadata() const{ return m_checkoutMetadata; } /** *

Information about constraints.

*/ inline bool CheckoutMetadataHasBeenSet() const { return m_checkoutMetadataHasBeenSet; } /** *

Information about constraints.

*/ inline void SetCheckoutMetadata(const Aws::Vector& value) { m_checkoutMetadataHasBeenSet = true; m_checkoutMetadata = value; } /** *

Information about constraints.

*/ inline void SetCheckoutMetadata(Aws::Vector&& value) { m_checkoutMetadataHasBeenSet = true; m_checkoutMetadata = std::move(value); } /** *

Information about constraints.

*/ inline CheckoutBorrowLicenseRequest& WithCheckoutMetadata(const Aws::Vector& value) { SetCheckoutMetadata(value); return *this;} /** *

Information about constraints.

*/ inline CheckoutBorrowLicenseRequest& WithCheckoutMetadata(Aws::Vector&& value) { SetCheckoutMetadata(std::move(value)); return *this;} /** *

Information about constraints.

*/ inline CheckoutBorrowLicenseRequest& AddCheckoutMetadata(const Metadata& value) { m_checkoutMetadataHasBeenSet = true; m_checkoutMetadata.push_back(value); return *this; } /** *

Information about constraints.

*/ inline CheckoutBorrowLicenseRequest& AddCheckoutMetadata(Metadata&& value) { m_checkoutMetadataHasBeenSet = true; m_checkoutMetadata.push_back(std::move(value)); return *this; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CheckoutBorrowLicenseRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CheckoutBorrowLicenseRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CheckoutBorrowLicenseRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_licenseArn; bool m_licenseArnHasBeenSet = false; Aws::Vector m_entitlements; bool m_entitlementsHasBeenSet = false; DigitalSignatureMethod m_digitalSignatureMethod; bool m_digitalSignatureMethodHasBeenSet = false; Aws::String m_nodeId; bool m_nodeIdHasBeenSet = false; Aws::Vector m_checkoutMetadata; bool m_checkoutMetadataHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace LicenseManager } // namespace Aws