/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace LicenseManager { namespace Model { class CheckoutBorrowLicenseResult { public: AWS_LICENSEMANAGER_API CheckoutBorrowLicenseResult(); AWS_LICENSEMANAGER_API CheckoutBorrowLicenseResult(const Aws::AmazonWebServiceResult& result); AWS_LICENSEMANAGER_API CheckoutBorrowLicenseResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Amazon Resource Name (ARN) of the license.

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

Amazon Resource Name (ARN) of the license.

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

Amazon Resource Name (ARN) of the license.

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

Amazon Resource Name (ARN) of the license.

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

Amazon Resource Name (ARN) of the license.

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

Amazon Resource Name (ARN) of the license.

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

Amazon Resource Name (ARN) of the license.

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

License consumption token.

*/ inline const Aws::String& GetLicenseConsumptionToken() const{ return m_licenseConsumptionToken; } /** *

License consumption token.

*/ inline void SetLicenseConsumptionToken(const Aws::String& value) { m_licenseConsumptionToken = value; } /** *

License consumption token.

*/ inline void SetLicenseConsumptionToken(Aws::String&& value) { m_licenseConsumptionToken = std::move(value); } /** *

License consumption token.

*/ inline void SetLicenseConsumptionToken(const char* value) { m_licenseConsumptionToken.assign(value); } /** *

License consumption token.

*/ inline CheckoutBorrowLicenseResult& WithLicenseConsumptionToken(const Aws::String& value) { SetLicenseConsumptionToken(value); return *this;} /** *

License consumption token.

*/ inline CheckoutBorrowLicenseResult& WithLicenseConsumptionToken(Aws::String&& value) { SetLicenseConsumptionToken(std::move(value)); return *this;} /** *

License consumption token.

*/ inline CheckoutBorrowLicenseResult& WithLicenseConsumptionToken(const char* value) { SetLicenseConsumptionToken(value); return *this;} /** *

Allowed license entitlements.

*/ inline const Aws::Vector& GetEntitlementsAllowed() const{ return m_entitlementsAllowed; } /** *

Allowed license entitlements.

*/ inline void SetEntitlementsAllowed(const Aws::Vector& value) { m_entitlementsAllowed = value; } /** *

Allowed license entitlements.

*/ inline void SetEntitlementsAllowed(Aws::Vector&& value) { m_entitlementsAllowed = std::move(value); } /** *

Allowed license entitlements.

*/ inline CheckoutBorrowLicenseResult& WithEntitlementsAllowed(const Aws::Vector& value) { SetEntitlementsAllowed(value); return *this;} /** *

Allowed license entitlements.

*/ inline CheckoutBorrowLicenseResult& WithEntitlementsAllowed(Aws::Vector&& value) { SetEntitlementsAllowed(std::move(value)); return *this;} /** *

Allowed license entitlements.

*/ inline CheckoutBorrowLicenseResult& AddEntitlementsAllowed(const EntitlementData& value) { m_entitlementsAllowed.push_back(value); return *this; } /** *

Allowed license entitlements.

*/ inline CheckoutBorrowLicenseResult& AddEntitlementsAllowed(EntitlementData&& value) { m_entitlementsAllowed.push_back(std::move(value)); return *this; } /** *

Node ID.

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

Node ID.

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

Node ID.

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

Node ID.

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

Node ID.

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

Node ID.

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

Node ID.

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

Signed token.

*/ inline const Aws::String& GetSignedToken() const{ return m_signedToken; } /** *

Signed token.

*/ inline void SetSignedToken(const Aws::String& value) { m_signedToken = value; } /** *

Signed token.

*/ inline void SetSignedToken(Aws::String&& value) { m_signedToken = std::move(value); } /** *

Signed token.

*/ inline void SetSignedToken(const char* value) { m_signedToken.assign(value); } /** *

Signed token.

*/ inline CheckoutBorrowLicenseResult& WithSignedToken(const Aws::String& value) { SetSignedToken(value); return *this;} /** *

Signed token.

*/ inline CheckoutBorrowLicenseResult& WithSignedToken(Aws::String&& value) { SetSignedToken(std::move(value)); return *this;} /** *

Signed token.

*/ inline CheckoutBorrowLicenseResult& WithSignedToken(const char* value) { SetSignedToken(value); return *this;} /** *

Date and time at which the license checkout is issued.

*/ inline const Aws::String& GetIssuedAt() const{ return m_issuedAt; } /** *

Date and time at which the license checkout is issued.

*/ inline void SetIssuedAt(const Aws::String& value) { m_issuedAt = value; } /** *

Date and time at which the license checkout is issued.

*/ inline void SetIssuedAt(Aws::String&& value) { m_issuedAt = std::move(value); } /** *

Date and time at which the license checkout is issued.

*/ inline void SetIssuedAt(const char* value) { m_issuedAt.assign(value); } /** *

Date and time at which the license checkout is issued.

*/ inline CheckoutBorrowLicenseResult& WithIssuedAt(const Aws::String& value) { SetIssuedAt(value); return *this;} /** *

Date and time at which the license checkout is issued.

*/ inline CheckoutBorrowLicenseResult& WithIssuedAt(Aws::String&& value) { SetIssuedAt(std::move(value)); return *this;} /** *

Date and time at which the license checkout is issued.

*/ inline CheckoutBorrowLicenseResult& WithIssuedAt(const char* value) { SetIssuedAt(value); return *this;} /** *

Date and time at which the license checkout expires.

*/ inline const Aws::String& GetExpiration() const{ return m_expiration; } /** *

Date and time at which the license checkout expires.

*/ inline void SetExpiration(const Aws::String& value) { m_expiration = value; } /** *

Date and time at which the license checkout expires.

*/ inline void SetExpiration(Aws::String&& value) { m_expiration = std::move(value); } /** *

Date and time at which the license checkout expires.

*/ inline void SetExpiration(const char* value) { m_expiration.assign(value); } /** *

Date and time at which the license checkout expires.

*/ inline CheckoutBorrowLicenseResult& WithExpiration(const Aws::String& value) { SetExpiration(value); return *this;} /** *

Date and time at which the license checkout expires.

*/ inline CheckoutBorrowLicenseResult& WithExpiration(Aws::String&& value) { SetExpiration(std::move(value)); return *this;} /** *

Date and time at which the license checkout expires.

*/ inline CheckoutBorrowLicenseResult& WithExpiration(const char* value) { SetExpiration(value); return *this;} /** *

Information about constraints.

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

Information about constraints.

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

Information about constraints.

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

Information about constraints.

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

Information about constraints.

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

Information about constraints.

*/ inline CheckoutBorrowLicenseResult& AddCheckoutMetadata(const Metadata& value) { m_checkoutMetadata.push_back(value); return *this; } /** *

Information about constraints.

*/ inline CheckoutBorrowLicenseResult& AddCheckoutMetadata(Metadata&& value) { m_checkoutMetadata.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CheckoutBorrowLicenseResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CheckoutBorrowLicenseResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CheckoutBorrowLicenseResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_licenseArn; Aws::String m_licenseConsumptionToken; Aws::Vector m_entitlementsAllowed; Aws::String m_nodeId; Aws::String m_signedToken; Aws::String m_issuedAt; Aws::String m_expiration; Aws::Vector m_checkoutMetadata; Aws::String m_requestId; }; } // namespace Model } // namespace LicenseManager } // namespace Aws