/** * 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 { /** *

Contains the output of PurchaseReservedInstancesOffering.

See * Also:

AWS * API Reference

*/ class PurchaseReservedInstancesOfferingResponse { public: AWS_EC2_API PurchaseReservedInstancesOfferingResponse(); AWS_EC2_API PurchaseReservedInstancesOfferingResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API PurchaseReservedInstancesOfferingResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

The IDs of the purchased Reserved Instances. If your purchase crosses into a * discounted pricing tier, the final Reserved Instances IDs might change. For more * information, see Crossing * pricing tiers in the Amazon Elastic Compute Cloud User Guide.

*/ inline const Aws::String& GetReservedInstancesId() const{ return m_reservedInstancesId; } /** *

The IDs of the purchased Reserved Instances. If your purchase crosses into a * discounted pricing tier, the final Reserved Instances IDs might change. For more * information, see Crossing * pricing tiers in the Amazon Elastic Compute Cloud User Guide.

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

The IDs of the purchased Reserved Instances. If your purchase crosses into a * discounted pricing tier, the final Reserved Instances IDs might change. For more * information, see Crossing * pricing tiers in the Amazon Elastic Compute Cloud User Guide.

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

The IDs of the purchased Reserved Instances. If your purchase crosses into a * discounted pricing tier, the final Reserved Instances IDs might change. For more * information, see Crossing * pricing tiers in the Amazon Elastic Compute Cloud User Guide.

*/ inline void SetReservedInstancesId(const char* value) { m_reservedInstancesId.assign(value); } /** *

The IDs of the purchased Reserved Instances. If your purchase crosses into a * discounted pricing tier, the final Reserved Instances IDs might change. For more * information, see Crossing * pricing tiers in the Amazon Elastic Compute Cloud User Guide.

*/ inline PurchaseReservedInstancesOfferingResponse& WithReservedInstancesId(const Aws::String& value) { SetReservedInstancesId(value); return *this;} /** *

The IDs of the purchased Reserved Instances. If your purchase crosses into a * discounted pricing tier, the final Reserved Instances IDs might change. For more * information, see Crossing * pricing tiers in the Amazon Elastic Compute Cloud User Guide.

*/ inline PurchaseReservedInstancesOfferingResponse& WithReservedInstancesId(Aws::String&& value) { SetReservedInstancesId(std::move(value)); return *this;} /** *

The IDs of the purchased Reserved Instances. If your purchase crosses into a * discounted pricing tier, the final Reserved Instances IDs might change. For more * information, see Crossing * pricing tiers in the Amazon Elastic Compute Cloud User Guide.

*/ inline PurchaseReservedInstancesOfferingResponse& WithReservedInstancesId(const char* value) { SetReservedInstancesId(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 PurchaseReservedInstancesOfferingResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline PurchaseReservedInstancesOfferingResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_reservedInstancesId; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws