/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

A block device for the instance.

See Also:

AWS * API Reference

*/ class AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails { public: AWS_SECURITYHUB_API AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails(); AWS_SECURITYHUB_API AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The device name that is exposed to the EC2 instance. For example, * /dev/sdh or xvdh.

*/ inline const Aws::String& GetDeviceName() const{ return m_deviceName; } /** *

The device name that is exposed to the EC2 instance. For example, * /dev/sdh or xvdh.

*/ inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; } /** *

The device name that is exposed to the EC2 instance. For example, * /dev/sdh or xvdh.

*/ inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; } /** *

The device name that is exposed to the EC2 instance. For example, * /dev/sdh or xvdh.

*/ inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); } /** *

The device name that is exposed to the EC2 instance. For example, * /dev/sdh or xvdh.

*/ inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); } /** *

The device name that is exposed to the EC2 instance. For example, * /dev/sdh or xvdh.

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;} /** *

The device name that is exposed to the EC2 instance. For example, * /dev/sdh or xvdh.

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;} /** *

The device name that is exposed to the EC2 instance. For example, * /dev/sdh or xvdh.

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails& WithDeviceName(const char* value) { SetDeviceName(value); return *this;} /** *

Parameters that are used to automatically set up Amazon EBS volumes when an * instance is launched.

*/ inline const AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails& GetEbs() const{ return m_ebs; } /** *

Parameters that are used to automatically set up Amazon EBS volumes when an * instance is launched.

*/ inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; } /** *

Parameters that are used to automatically set up Amazon EBS volumes when an * instance is launched.

*/ inline void SetEbs(const AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails& value) { m_ebsHasBeenSet = true; m_ebs = value; } /** *

Parameters that are used to automatically set up Amazon EBS volumes when an * instance is launched.

*/ inline void SetEbs(AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); } /** *

Parameters that are used to automatically set up Amazon EBS volumes when an * instance is launched.

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails& WithEbs(const AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails& value) { SetEbs(value); return *this;} /** *

Parameters that are used to automatically set up Amazon EBS volumes when an * instance is launched.

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails& WithEbs(AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails&& value) { SetEbs(std::move(value)); return *this;} /** *

Whether to suppress the device that is included in the block device mapping * of the Amazon Machine Image (AMI).

If NoDevice is * true, then you cannot specify Ebs.>

*/ inline bool GetNoDevice() const{ return m_noDevice; } /** *

Whether to suppress the device that is included in the block device mapping * of the Amazon Machine Image (AMI).

If NoDevice is * true, then you cannot specify Ebs.>

*/ inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; } /** *

Whether to suppress the device that is included in the block device mapping * of the Amazon Machine Image (AMI).

If NoDevice is * true, then you cannot specify Ebs.>

*/ inline void SetNoDevice(bool value) { m_noDeviceHasBeenSet = true; m_noDevice = value; } /** *

Whether to suppress the device that is included in the block device mapping * of the Amazon Machine Image (AMI).

If NoDevice is * true, then you cannot specify Ebs.>

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails& WithNoDevice(bool value) { SetNoDevice(value); return *this;} /** *

The name of the virtual device (for example, ephemeral0).

*

You can provide either VirtualName or Ebs, but not * both.

*/ inline const Aws::String& GetVirtualName() const{ return m_virtualName; } /** *

The name of the virtual device (for example, ephemeral0).

*

You can provide either VirtualName or Ebs, but not * both.

*/ inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; } /** *

The name of the virtual device (for example, ephemeral0).

*

You can provide either VirtualName or Ebs, but not * both.

*/ inline void SetVirtualName(const Aws::String& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; } /** *

The name of the virtual device (for example, ephemeral0).

*

You can provide either VirtualName or Ebs, but not * both.

*/ inline void SetVirtualName(Aws::String&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::move(value); } /** *

The name of the virtual device (for example, ephemeral0).

*

You can provide either VirtualName or Ebs, but not * both.

*/ inline void SetVirtualName(const char* value) { m_virtualNameHasBeenSet = true; m_virtualName.assign(value); } /** *

The name of the virtual device (for example, ephemeral0).

*

You can provide either VirtualName or Ebs, but not * both.

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails& WithVirtualName(const Aws::String& value) { SetVirtualName(value); return *this;} /** *

The name of the virtual device (for example, ephemeral0).

*

You can provide either VirtualName or Ebs, but not * both.

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails& WithVirtualName(Aws::String&& value) { SetVirtualName(std::move(value)); return *this;} /** *

The name of the virtual device (for example, ephemeral0).

*

You can provide either VirtualName or Ebs, but not * both.

*/ inline AwsAutoScalingLaunchConfigurationBlockDeviceMappingsDetails& WithVirtualName(const char* value) { SetVirtualName(value); return *this;} private: Aws::String m_deviceName; bool m_deviceNameHasBeenSet = false; AwsAutoScalingLaunchConfigurationBlockDeviceMappingsEbsDetails m_ebs; bool m_ebsHasBeenSet = false; bool m_noDevice; bool m_noDeviceHasBeenSet = false; Aws::String m_virtualName; bool m_virtualNameHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws