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

Information about a block device mapping for an Amazon Elastic Compute Cloud * (Amazon EC2) launch template.

See Also:

AWS * API Reference

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

The device name.

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

The device name.

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

The device name.

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

The device name.

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

The device name.

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

The device name.

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

The device name.

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

The device name.

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

Parameters used to automatically set up Amazon EBS volumes when the instance * is launched.

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

Parameters used to automatically set up Amazon EBS volumes when the instance * is launched.

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

Parameters used to automatically set up Amazon EBS volumes when the instance * is launched.

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

Parameters used to automatically set up Amazon EBS volumes when the instance * is launched.

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

Parameters used to automatically set up Amazon EBS volumes when the instance * is launched.

*/ inline AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails& WithEbs(const AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails& value) { SetEbs(value); return *this;} /** *

Parameters used to automatically set up Amazon EBS volumes when the instance * is launched.

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

Omits the device from the block device mapping when an empty string is * specified.

*/ inline const Aws::String& GetNoDevice() const{ return m_noDevice; } /** *

Omits the device from the block device mapping when an empty string is * specified.

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

Omits the device from the block device mapping when an empty string is * specified.

*/ inline void SetNoDevice(const Aws::String& value) { m_noDeviceHasBeenSet = true; m_noDevice = value; } /** *

Omits the device from the block device mapping when an empty string is * specified.

*/ inline void SetNoDevice(Aws::String&& value) { m_noDeviceHasBeenSet = true; m_noDevice = std::move(value); } /** *

Omits the device from the block device mapping when an empty string is * specified.

*/ inline void SetNoDevice(const char* value) { m_noDeviceHasBeenSet = true; m_noDevice.assign(value); } /** *

Omits the device from the block device mapping when an empty string is * specified.

*/ inline AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails& WithNoDevice(const Aws::String& value) { SetNoDevice(value); return *this;} /** *

Omits the device from the block device mapping when an empty string is * specified.

*/ inline AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails& WithNoDevice(Aws::String&& value) { SetNoDevice(std::move(value)); return *this;} /** *

Omits the device from the block device mapping when an empty string is * specified.

*/ inline AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails& WithNoDevice(const char* value) { SetNoDevice(value); return *this;} /** *

The virtual device name (ephemeralN). Instance store volumes are numbered * starting from 0. An instance type with 2 available instance store volumes can * specify mappings for ephemeral0 and ephemeral1. The * number of available instance store volumes depends on the instance type.

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

The virtual device name (ephemeralN). Instance store volumes are numbered * starting from 0. An instance type with 2 available instance store volumes can * specify mappings for ephemeral0 and ephemeral1. The * number of available instance store volumes depends on the instance type.

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

The virtual device name (ephemeralN). Instance store volumes are numbered * starting from 0. An instance type with 2 available instance store volumes can * specify mappings for ephemeral0 and ephemeral1. The * number of available instance store volumes depends on the instance type.

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

The virtual device name (ephemeralN). Instance store volumes are numbered * starting from 0. An instance type with 2 available instance store volumes can * specify mappings for ephemeral0 and ephemeral1. The * number of available instance store volumes depends on the instance type.

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

The virtual device name (ephemeralN). Instance store volumes are numbered * starting from 0. An instance type with 2 available instance store volumes can * specify mappings for ephemeral0 and ephemeral1. The * number of available instance store volumes depends on the instance type.

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

The virtual device name (ephemeralN). Instance store volumes are numbered * starting from 0. An instance type with 2 available instance store volumes can * specify mappings for ephemeral0 and ephemeral1. The * number of available instance store volumes depends on the instance type.

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

The virtual device name (ephemeralN). Instance store volumes are numbered * starting from 0. An instance type with 2 available instance store volumes can * specify mappings for ephemeral0 and ephemeral1. The * number of available instance store volumes depends on the instance type.

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

The virtual device name (ephemeralN). Instance store volumes are numbered * starting from 0. An instance type with 2 available instance store volumes can * specify mappings for ephemeral0 and ephemeral1. The * number of available instance store volumes depends on the instance type.

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