/** * 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 { /** *

Describes a Capacity Reservation Fleet that was successfully * cancelled.

See Also:

AWS * API Reference

*/ class CapacityReservationFleetCancellationState { public: AWS_EC2_API CapacityReservationFleetCancellationState(); AWS_EC2_API CapacityReservationFleetCancellationState(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API CapacityReservationFleetCancellationState& 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 current state of the Capacity Reservation Fleet.

*/ inline const CapacityReservationFleetState& GetCurrentFleetState() const{ return m_currentFleetState; } /** *

The current state of the Capacity Reservation Fleet.

*/ inline bool CurrentFleetStateHasBeenSet() const { return m_currentFleetStateHasBeenSet; } /** *

The current state of the Capacity Reservation Fleet.

*/ inline void SetCurrentFleetState(const CapacityReservationFleetState& value) { m_currentFleetStateHasBeenSet = true; m_currentFleetState = value; } /** *

The current state of the Capacity Reservation Fleet.

*/ inline void SetCurrentFleetState(CapacityReservationFleetState&& value) { m_currentFleetStateHasBeenSet = true; m_currentFleetState = std::move(value); } /** *

The current state of the Capacity Reservation Fleet.

*/ inline CapacityReservationFleetCancellationState& WithCurrentFleetState(const CapacityReservationFleetState& value) { SetCurrentFleetState(value); return *this;} /** *

The current state of the Capacity Reservation Fleet.

*/ inline CapacityReservationFleetCancellationState& WithCurrentFleetState(CapacityReservationFleetState&& value) { SetCurrentFleetState(std::move(value)); return *this;} /** *

The previous state of the Capacity Reservation Fleet.

*/ inline const CapacityReservationFleetState& GetPreviousFleetState() const{ return m_previousFleetState; } /** *

The previous state of the Capacity Reservation Fleet.

*/ inline bool PreviousFleetStateHasBeenSet() const { return m_previousFleetStateHasBeenSet; } /** *

The previous state of the Capacity Reservation Fleet.

*/ inline void SetPreviousFleetState(const CapacityReservationFleetState& value) { m_previousFleetStateHasBeenSet = true; m_previousFleetState = value; } /** *

The previous state of the Capacity Reservation Fleet.

*/ inline void SetPreviousFleetState(CapacityReservationFleetState&& value) { m_previousFleetStateHasBeenSet = true; m_previousFleetState = std::move(value); } /** *

The previous state of the Capacity Reservation Fleet.

*/ inline CapacityReservationFleetCancellationState& WithPreviousFleetState(const CapacityReservationFleetState& value) { SetPreviousFleetState(value); return *this;} /** *

The previous state of the Capacity Reservation Fleet.

*/ inline CapacityReservationFleetCancellationState& WithPreviousFleetState(CapacityReservationFleetState&& value) { SetPreviousFleetState(std::move(value)); return *this;} /** *

The ID of the Capacity Reservation Fleet that was successfully cancelled.

*/ inline const Aws::String& GetCapacityReservationFleetId() const{ return m_capacityReservationFleetId; } /** *

The ID of the Capacity Reservation Fleet that was successfully cancelled.

*/ inline bool CapacityReservationFleetIdHasBeenSet() const { return m_capacityReservationFleetIdHasBeenSet; } /** *

The ID of the Capacity Reservation Fleet that was successfully cancelled.

*/ inline void SetCapacityReservationFleetId(const Aws::String& value) { m_capacityReservationFleetIdHasBeenSet = true; m_capacityReservationFleetId = value; } /** *

The ID of the Capacity Reservation Fleet that was successfully cancelled.

*/ inline void SetCapacityReservationFleetId(Aws::String&& value) { m_capacityReservationFleetIdHasBeenSet = true; m_capacityReservationFleetId = std::move(value); } /** *

The ID of the Capacity Reservation Fleet that was successfully cancelled.

*/ inline void SetCapacityReservationFleetId(const char* value) { m_capacityReservationFleetIdHasBeenSet = true; m_capacityReservationFleetId.assign(value); } /** *

The ID of the Capacity Reservation Fleet that was successfully cancelled.

*/ inline CapacityReservationFleetCancellationState& WithCapacityReservationFleetId(const Aws::String& value) { SetCapacityReservationFleetId(value); return *this;} /** *

The ID of the Capacity Reservation Fleet that was successfully cancelled.

*/ inline CapacityReservationFleetCancellationState& WithCapacityReservationFleetId(Aws::String&& value) { SetCapacityReservationFleetId(std::move(value)); return *this;} /** *

The ID of the Capacity Reservation Fleet that was successfully cancelled.

*/ inline CapacityReservationFleetCancellationState& WithCapacityReservationFleetId(const char* value) { SetCapacityReservationFleetId(value); return *this;} private: CapacityReservationFleetState m_currentFleetState; bool m_currentFleetStateHasBeenSet = false; CapacityReservationFleetState m_previousFleetState; bool m_previousFleetStateHasBeenSet = false; Aws::String m_capacityReservationFleetId; bool m_capacityReservationFleetIdHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws