/** * 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 PurchaseHostReservationResponse { public: AWS_EC2_API PurchaseHostReservationResponse(); AWS_EC2_API PurchaseHostReservationResponse(const Aws::AmazonWebServiceResult& result); AWS_EC2_API PurchaseHostReservationResponse& operator=(const Aws::AmazonWebServiceResult& result); /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see Ensuring * Idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see Ensuring * Idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see Ensuring * Idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see Ensuring * Idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see Ensuring * Idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see Ensuring * Idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see Ensuring * Idempotency.

*/ inline PurchaseHostReservationResponse& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

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 PurchaseHostReservationResponse& 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 PurchaseHostReservationResponse& WithCurrencyCode(CurrencyCodeValues&& value) { SetCurrencyCode(std::move(value)); return *this;} /** *

Describes the details of the purchase.

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

Describes the details of the purchase.

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

Describes the details of the purchase.

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

Describes the details of the purchase.

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

Describes the details of the purchase.

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

Describes the details of the purchase.

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

Describes the details of the purchase.

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

The total hourly price of the reservation calculated per hour.

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

The total hourly price of the reservation calculated per hour.

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

The total hourly price of the reservation calculated per hour.

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

The total hourly price of the reservation calculated per hour.

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

The total hourly price of the reservation calculated per hour.

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

The total hourly price of the reservation calculated per hour.

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

The total hourly price of the reservation calculated per hour.

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

The total amount charged to your account when you purchase the * reservation.

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

The total amount charged to your account when you purchase the * reservation.

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

The total amount charged to your account when you purchase the * reservation.

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

The total amount charged to your account when you purchase the * reservation.

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

The total amount charged to your account when you purchase the * reservation.

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

The total amount charged to your account when you purchase the * reservation.

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

The total amount charged to your account when you purchase the * reservation.

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