/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about the target Capacity Reservation or Capacity Reservation
* group in which to run an Amazon EC2 instance. See Also:
AWS
* API Reference
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 AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails& WithCapacityReservationId(const Aws::String& value) { SetCapacityReservationId(value); return *this;} /** *The ID of the Capacity Reservation in which to run the instance.
*/ inline AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails& WithCapacityReservationId(Aws::String&& value) { SetCapacityReservationId(std::move(value)); return *this;} /** *The ID of the Capacity Reservation in which to run the instance.
*/ inline AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails& WithCapacityReservationId(const char* value) { SetCapacityReservationId(value); return *this;} /** *The Amazon Resource Name (ARN) of the Capacity Reservation resource group in * which to run the instance.
*/ inline const Aws::String& GetCapacityReservationResourceGroupArn() const{ return m_capacityReservationResourceGroupArn; } /** *The Amazon Resource Name (ARN) of the Capacity Reservation resource group in * which to run the instance.
*/ inline bool CapacityReservationResourceGroupArnHasBeenSet() const { return m_capacityReservationResourceGroupArnHasBeenSet; } /** *The Amazon Resource Name (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 Amazon Resource Name (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 Amazon Resource Name (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 Amazon Resource Name (ARN) of the Capacity Reservation resource group in * which to run the instance.
*/ inline AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails& WithCapacityReservationResourceGroupArn(const Aws::String& value) { SetCapacityReservationResourceGroupArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the Capacity Reservation resource group in * which to run the instance.
*/ inline AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails& WithCapacityReservationResourceGroupArn(Aws::String&& value) { SetCapacityReservationResourceGroupArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the Capacity Reservation resource group in * which to run the instance.
*/ inline AwsEc2LaunchTemplateDataCapacityReservationSpecificationCapacityReservationTargetDetails& 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 SecurityHub } // namespace Aws