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

The Amazon Web Services account ID of the instance owner. This is only * present if the product code is attached to the instance.

*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *

The Amazon Web Services account ID of the instance owner. This is only * present if the product code is attached to the instance.

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

The Amazon Web Services account ID of the instance owner. This is only * present if the product code is attached to the instance.

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

The Amazon Web Services account ID of the instance owner. This is only * present if the product code is attached to the instance.

*/ inline void SetOwnerId(const char* value) { m_ownerId.assign(value); } /** *

The Amazon Web Services account ID of the instance owner. This is only * present if the product code is attached to the instance.

*/ inline ConfirmProductInstanceResponse& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *

The Amazon Web Services account ID of the instance owner. This is only * present if the product code is attached to the instance.

*/ inline ConfirmProductInstanceResponse& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID of the instance owner. This is only * present if the product code is attached to the instance.

*/ inline ConfirmProductInstanceResponse& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *

The return value of the request. Returns true if the specified * product code is owned by the requester and associated with the specified * instance.

*/ inline bool GetReturn() const{ return m_return; } /** *

The return value of the request. Returns true if the specified * product code is owned by the requester and associated with the specified * instance.

*/ inline void SetReturn(bool value) { m_return = value; } /** *

The return value of the request. Returns true if the specified * product code is owned by the requester and associated with the specified * instance.

*/ inline ConfirmProductInstanceResponse& WithReturn(bool value) { SetReturn(value); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline ConfirmProductInstanceResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline ConfirmProductInstanceResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_ownerId; bool m_return; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws