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

Describes a Reserved Instance offering.

See Also:

AWS * API Reference

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

The number of reservations available for the price.

*/ inline int GetCount() const{ return m_count; } /** *

The number of reservations available for the price.

*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** *

The number of reservations available for the price.

*/ inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; } /** *

The number of reservations available for the price.

*/ inline PricingDetail& WithCount(int value) { SetCount(value); return *this;} /** *

The price per instance.

*/ inline double GetPrice() const{ return m_price; } /** *

The price per instance.

*/ inline bool PriceHasBeenSet() const { return m_priceHasBeenSet; } /** *

The price per instance.

*/ inline void SetPrice(double value) { m_priceHasBeenSet = true; m_price = value; } /** *

The price per instance.

*/ inline PricingDetail& WithPrice(double value) { SetPrice(value); return *this;} private: int m_count; bool m_countHasBeenSet = false; double m_price; bool m_priceHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws