/** * 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 a target Capacity Reservation or Capacity Reservation * group.

See Also:

AWS * API Reference

*/ class CapacityReservationTarget { public: AWS_EC2_API CapacityReservationTarget(); AWS_EC2_API CapacityReservationTarget(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API CapacityReservationTarget& 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 ID of the Capacity Reservation in which to run the instance.

*/ inline const Aws::String& GetCapacityReservationId() const{ return m_capacityReservationId; } /** *

The ID of the Capacity Reservation in which to run the instance.

*/ inline bool CapacityReservationIdHasBeenSet() const { return m_capacityReservationIdHasBeenSet; } /** *

The ID of the Capacity Reservation in which to run the instance.

*/ inline void SetCapacityReservationId(const Aws::String& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = value; } /** *

The ID of the Capacity Reservation in which to run the instance.

*/ inline void SetCapacityReservationId(Aws::String&& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = std::move(value); } /** *

The ID of the Capacity Reservation in which to run the instance.

*/ inline void SetCapacityReservationId(const char* value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId.assign(value); } /** *

The ID of the Capacity Reservation in which to run the instance.

*/ inline CapacityReservationTarget& WithCapacityReservationId(const Aws::String& value) { SetCapacityReservationId(value); return *this;} /** *

The ID of the Capacity Reservation in which to run the instance.

*/ inline CapacityReservationTarget& WithCapacityReservationId(Aws::String&& value) { SetCapacityReservationId(std::move(value)); return *this;} /** *

The ID of the Capacity Reservation in which to run the instance.

*/ inline CapacityReservationTarget& WithCapacityReservationId(const char* value) { SetCapacityReservationId(value); return *this;} /** *

The ARN of the Capacity Reservation resource group in which to run the * instance.

*/ inline const Aws::String& GetCapacityReservationResourceGroupArn() const{ return m_capacityReservationResourceGroupArn; } /** *

The ARN of the Capacity Reservation resource group in which to run the * instance.

*/ inline bool CapacityReservationResourceGroupArnHasBeenSet() const { return m_capacityReservationResourceGroupArnHasBeenSet; } /** *

The ARN of the Capacity Reservation resource group in which to run the * instance.

*/ inline void SetCapacityReservationResourceGroupArn(const Aws::String& value) { m_capacityReservationResourceGroupArnHasBeenSet = true; m_capacityReservationResourceGroupArn = value; } /** *

The ARN of the Capacity Reservation resource group in which to run the * instance.

*/ inline void SetCapacityReservationResourceGroupArn(Aws::String&& value) { m_capacityReservationResourceGroupArnHasBeenSet = true; m_capacityReservationResourceGroupArn = std::move(value); } /** *

The ARN of the Capacity Reservation resource group in which to run the * instance.

*/ inline void SetCapacityReservationResourceGroupArn(const char* value) { m_capacityReservationResourceGroupArnHasBeenSet = true; m_capacityReservationResourceGroupArn.assign(value); } /** *

The ARN of the Capacity Reservation resource group in which to run the * instance.

*/ inline CapacityReservationTarget& WithCapacityReservationResourceGroupArn(const Aws::String& value) { SetCapacityReservationResourceGroupArn(value); return *this;} /** *

The ARN of the Capacity Reservation resource group in which to run the * instance.

*/ inline CapacityReservationTarget& WithCapacityReservationResourceGroupArn(Aws::String&& value) { SetCapacityReservationResourceGroupArn(std::move(value)); return *this;} /** *

The ARN of the Capacity Reservation resource group in which to run the * instance.

*/ inline CapacityReservationTarget& WithCapacityReservationResourceGroupArn(const char* value) { SetCapacityReservationResourceGroupArn(value); return *this;} private: Aws::String m_capacityReservationId; bool m_capacityReservationIdHasBeenSet = false; Aws::String m_capacityReservationResourceGroupArn; bool m_capacityReservationResourceGroupArnHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws