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

The total value of the Convertible Reserved Instance.

See * Also:

AWS * API Reference

*/ class ReservedInstanceReservationValue { public: AWS_EC2_API ReservedInstanceReservationValue(); AWS_EC2_API ReservedInstanceReservationValue(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ReservedInstanceReservationValue& 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 total value of the Convertible Reserved Instance that you are * exchanging.

*/ inline const ReservationValue& GetReservationValue() const{ return m_reservationValue; } /** *

The total value of the Convertible Reserved Instance that you are * exchanging.

*/ inline bool ReservationValueHasBeenSet() const { return m_reservationValueHasBeenSet; } /** *

The total value of the Convertible Reserved Instance that you are * exchanging.

*/ inline void SetReservationValue(const ReservationValue& value) { m_reservationValueHasBeenSet = true; m_reservationValue = value; } /** *

The total value of the Convertible Reserved Instance that you are * exchanging.

*/ inline void SetReservationValue(ReservationValue&& value) { m_reservationValueHasBeenSet = true; m_reservationValue = std::move(value); } /** *

The total value of the Convertible Reserved Instance that you are * exchanging.

*/ inline ReservedInstanceReservationValue& WithReservationValue(const ReservationValue& value) { SetReservationValue(value); return *this;} /** *

The total value of the Convertible Reserved Instance that you are * exchanging.

*/ inline ReservedInstanceReservationValue& WithReservationValue(ReservationValue&& value) { SetReservationValue(std::move(value)); return *this;} /** *

The ID of the Convertible Reserved Instance that you are exchanging.

*/ inline const Aws::String& GetReservedInstanceId() const{ return m_reservedInstanceId; } /** *

The ID of the Convertible Reserved Instance that you are exchanging.

*/ inline bool ReservedInstanceIdHasBeenSet() const { return m_reservedInstanceIdHasBeenSet; } /** *

The ID of the Convertible Reserved Instance that you are exchanging.

*/ inline void SetReservedInstanceId(const Aws::String& value) { m_reservedInstanceIdHasBeenSet = true; m_reservedInstanceId = value; } /** *

The ID of the Convertible Reserved Instance that you are exchanging.

*/ inline void SetReservedInstanceId(Aws::String&& value) { m_reservedInstanceIdHasBeenSet = true; m_reservedInstanceId = std::move(value); } /** *

The ID of the Convertible Reserved Instance that you are exchanging.

*/ inline void SetReservedInstanceId(const char* value) { m_reservedInstanceIdHasBeenSet = true; m_reservedInstanceId.assign(value); } /** *

The ID of the Convertible Reserved Instance that you are exchanging.

*/ inline ReservedInstanceReservationValue& WithReservedInstanceId(const Aws::String& value) { SetReservedInstanceId(value); return *this;} /** *

The ID of the Convertible Reserved Instance that you are exchanging.

*/ inline ReservedInstanceReservationValue& WithReservedInstanceId(Aws::String&& value) { SetReservedInstanceId(std::move(value)); return *this;} /** *

The ID of the Convertible Reserved Instance that you are exchanging.

*/ inline ReservedInstanceReservationValue& WithReservedInstanceId(const char* value) { SetReservedInstanceId(value); return *this;} private: ReservationValue m_reservationValue; bool m_reservationValueHasBeenSet = false; Aws::String m_reservedInstanceId; bool m_reservedInstanceIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws