/** * 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 namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { class AWS_EC2_API GetHostReservationPurchasePreviewResponse { public: GetHostReservationPurchasePreviewResponse(); GetHostReservationPurchasePreviewResponse(const Aws::AmazonWebServiceResult& result); GetHostReservationPurchasePreviewResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

The currency in which the totalUpfrontPrice and * totalHourlyPrice amounts are specified. At this time, the only * supported currency is USD.

*/ inline const CurrencyCodeValues& GetCurrencyCode() const{ return m_currencyCode; } /** *

The currency in which the totalUpfrontPrice and * totalHourlyPrice amounts are specified. At this time, the only * supported currency is USD.

*/ inline void SetCurrencyCode(const CurrencyCodeValues& value) { m_currencyCode = value; } /** *

The currency in which the totalUpfrontPrice and * totalHourlyPrice amounts are specified. At this time, the only * supported currency is USD.

*/ inline void SetCurrencyCode(CurrencyCodeValues&& value) { m_currencyCode = std::move(value); } /** *

The currency in which the totalUpfrontPrice and * totalHourlyPrice amounts are specified. At this time, the only * supported currency is USD.

*/ inline GetHostReservationPurchasePreviewResponse& WithCurrencyCode(const CurrencyCodeValues& value) { SetCurrencyCode(value); return *this;} /** *

The currency in which the totalUpfrontPrice and * totalHourlyPrice amounts are specified. At this time, the only * supported currency is USD.

*/ inline GetHostReservationPurchasePreviewResponse& WithCurrencyCode(CurrencyCodeValues&& value) { SetCurrencyCode(std::move(value)); return *this;} /** *

The purchase information of the Dedicated Host reservation and the Dedicated * Hosts associated with it.

*/ inline const Aws::Vector& GetPurchase() const{ return m_purchase; } /** *

The purchase information of the Dedicated Host reservation and the Dedicated * Hosts associated with it.

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

The purchase information of the Dedicated Host reservation and the Dedicated * Hosts associated with it.

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

The purchase information of the Dedicated Host reservation and the Dedicated * Hosts associated with it.

*/ inline GetHostReservationPurchasePreviewResponse& WithPurchase(const Aws::Vector& value) { SetPurchase(value); return *this;} /** *

The purchase information of the Dedicated Host reservation and the Dedicated * Hosts associated with it.

*/ inline GetHostReservationPurchasePreviewResponse& WithPurchase(Aws::Vector&& value) { SetPurchase(std::move(value)); return *this;} /** *

The purchase information of the Dedicated Host reservation and the Dedicated * Hosts associated with it.

*/ inline GetHostReservationPurchasePreviewResponse& AddPurchase(const Purchase& value) { m_purchase.push_back(value); return *this; } /** *

The purchase information of the Dedicated Host reservation and the Dedicated * Hosts associated with it.

*/ inline GetHostReservationPurchasePreviewResponse& AddPurchase(Purchase&& value) { m_purchase.push_back(std::move(value)); return *this; } /** *

The potential total hourly price of the reservation per hour.

*/ inline const Aws::String& GetTotalHourlyPrice() const{ return m_totalHourlyPrice; } /** *

The potential total hourly price of the reservation per hour.

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

The potential total hourly price of the reservation per hour.

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

The potential total hourly price of the reservation per hour.

*/ inline void SetTotalHourlyPrice(const char* value) { m_totalHourlyPrice.assign(value); } /** *

The potential total hourly price of the reservation per hour.

*/ inline GetHostReservationPurchasePreviewResponse& WithTotalHourlyPrice(const Aws::String& value) { SetTotalHourlyPrice(value); return *this;} /** *

The potential total hourly price of the reservation per hour.

*/ inline GetHostReservationPurchasePreviewResponse& WithTotalHourlyPrice(Aws::String&& value) { SetTotalHourlyPrice(std::move(value)); return *this;} /** *

The potential total hourly price of the reservation per hour.

*/ inline GetHostReservationPurchasePreviewResponse& WithTotalHourlyPrice(const char* value) { SetTotalHourlyPrice(value); return *this;} /** *

The potential total upfront price. This is billed immediately.

*/ inline const Aws::String& GetTotalUpfrontPrice() const{ return m_totalUpfrontPrice; } /** *

The potential total upfront price. This is billed immediately.

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

The potential total upfront price. This is billed immediately.

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

The potential total upfront price. This is billed immediately.

*/ inline void SetTotalUpfrontPrice(const char* value) { m_totalUpfrontPrice.assign(value); } /** *

The potential total upfront price. This is billed immediately.

*/ inline GetHostReservationPurchasePreviewResponse& WithTotalUpfrontPrice(const Aws::String& value) { SetTotalUpfrontPrice(value); return *this;} /** *

The potential total upfront price. This is billed immediately.

*/ inline GetHostReservationPurchasePreviewResponse& WithTotalUpfrontPrice(Aws::String&& value) { SetTotalUpfrontPrice(std::move(value)); return *this;} /** *

The potential total upfront price. This is billed immediately.

*/ inline GetHostReservationPurchasePreviewResponse& WithTotalUpfrontPrice(const char* value) { SetTotalUpfrontPrice(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 GetHostReservationPurchasePreviewResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline GetHostReservationPurchasePreviewResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: CurrencyCodeValues m_currencyCode; Aws::Vector m_purchase; Aws::String m_totalHourlyPrice; Aws::String m_totalUpfrontPrice; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace EC2 } // namespace Aws