/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes the limit price of a Reserved Instance offering.

See * Also:

AWS * API Reference

*/ class AWS_EC2_API ReservedInstanceLimitPrice { public: ReservedInstanceLimitPrice(); ReservedInstanceLimitPrice(const Aws::Utils::Xml::XmlNode& xmlNode); ReservedInstanceLimitPrice& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

Used for Reserved Instance Marketplace offerings. Specifies the limit price * on the total order (instanceCount * price).

*/ inline double GetAmount() const{ return m_amount; } /** *

Used for Reserved Instance Marketplace offerings. Specifies the limit price * on the total order (instanceCount * price).

*/ inline bool AmountHasBeenSet() const { return m_amountHasBeenSet; } /** *

Used for Reserved Instance Marketplace offerings. Specifies the limit price * on the total order (instanceCount * price).

*/ inline void SetAmount(double value) { m_amountHasBeenSet = true; m_amount = value; } /** *

Used for Reserved Instance Marketplace offerings. Specifies the limit price * on the total order (instanceCount * price).

*/ inline ReservedInstanceLimitPrice& WithAmount(double value) { SetAmount(value); return *this;} /** *

The currency in which the limitPrice amount is specified. At * this time, the only supported currency is USD.

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

The currency in which the limitPrice amount is specified. At * this time, the only supported currency is USD.

*/ inline bool CurrencyCodeHasBeenSet() const { return m_currencyCodeHasBeenSet; } /** *

The currency in which the limitPrice amount is specified. At * this time, the only supported currency is USD.

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

The currency in which the limitPrice amount is specified. At * this time, the only supported currency is USD.

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

The currency in which the limitPrice amount is specified. At * this time, the only supported currency is USD.

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

The currency in which the limitPrice amount is specified. At * this time, the only supported currency is USD.

*/ inline ReservedInstanceLimitPrice& WithCurrencyCode(CurrencyCodeValues&& value) { SetCurrencyCode(std::move(value)); return *this;} private: double m_amount; bool m_amountHasBeenSet; CurrencyCodeValues m_currencyCode; bool m_currencyCodeHasBeenSet; }; } // namespace Model } // namespace EC2 } // namespace Aws