/** * 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 drs { namespace Model { /** *

The configuration of a disk of the Source Server to be * replicated.

See Also:

AWS * API Reference

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

The name of the device.

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

The name of the device.

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

The name of the device.

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

The name of the device.

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

The name of the device.

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

The name of the device.

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

The name of the device.

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

The name of the device.

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

The requested number of I/O operations per second (IOPS).

*/ inline long long GetIops() const{ return m_iops; } /** *

The requested number of I/O operations per second (IOPS).

*/ inline bool IopsHasBeenSet() const { return m_iopsHasBeenSet; } /** *

The requested number of I/O operations per second (IOPS).

*/ inline void SetIops(long long value) { m_iopsHasBeenSet = true; m_iops = value; } /** *

The requested number of I/O operations per second (IOPS).

*/ inline ReplicationConfigurationReplicatedDisk& WithIops(long long value) { SetIops(value); return *this;} /** *

Whether to boot from this disk or not.

*/ inline bool GetIsBootDisk() const{ return m_isBootDisk; } /** *

Whether to boot from this disk or not.

*/ inline bool IsBootDiskHasBeenSet() const { return m_isBootDiskHasBeenSet; } /** *

Whether to boot from this disk or not.

*/ inline void SetIsBootDisk(bool value) { m_isBootDiskHasBeenSet = true; m_isBootDisk = value; } /** *

Whether to boot from this disk or not.

*/ inline ReplicationConfigurationReplicatedDisk& WithIsBootDisk(bool value) { SetIsBootDisk(value); return *this;} /** *

The Staging Disk EBS volume type to be used during replication when * stagingDiskType is set to Auto. This is a read-only field.

*/ inline const ReplicationConfigurationReplicatedDiskStagingDiskType& GetOptimizedStagingDiskType() const{ return m_optimizedStagingDiskType; } /** *

The Staging Disk EBS volume type to be used during replication when * stagingDiskType is set to Auto. This is a read-only field.

*/ inline bool OptimizedStagingDiskTypeHasBeenSet() const { return m_optimizedStagingDiskTypeHasBeenSet; } /** *

The Staging Disk EBS volume type to be used during replication when * stagingDiskType is set to Auto. This is a read-only field.

*/ inline void SetOptimizedStagingDiskType(const ReplicationConfigurationReplicatedDiskStagingDiskType& value) { m_optimizedStagingDiskTypeHasBeenSet = true; m_optimizedStagingDiskType = value; } /** *

The Staging Disk EBS volume type to be used during replication when * stagingDiskType is set to Auto. This is a read-only field.

*/ inline void SetOptimizedStagingDiskType(ReplicationConfigurationReplicatedDiskStagingDiskType&& value) { m_optimizedStagingDiskTypeHasBeenSet = true; m_optimizedStagingDiskType = std::move(value); } /** *

The Staging Disk EBS volume type to be used during replication when * stagingDiskType is set to Auto. This is a read-only field.

*/ inline ReplicationConfigurationReplicatedDisk& WithOptimizedStagingDiskType(const ReplicationConfigurationReplicatedDiskStagingDiskType& value) { SetOptimizedStagingDiskType(value); return *this;} /** *

The Staging Disk EBS volume type to be used during replication when * stagingDiskType is set to Auto. This is a read-only field.

*/ inline ReplicationConfigurationReplicatedDisk& WithOptimizedStagingDiskType(ReplicationConfigurationReplicatedDiskStagingDiskType&& value) { SetOptimizedStagingDiskType(std::move(value)); return *this;} /** *

The Staging Disk EBS volume type to be used during replication.

*/ inline const ReplicationConfigurationReplicatedDiskStagingDiskType& GetStagingDiskType() const{ return m_stagingDiskType; } /** *

The Staging Disk EBS volume type to be used during replication.

*/ inline bool StagingDiskTypeHasBeenSet() const { return m_stagingDiskTypeHasBeenSet; } /** *

The Staging Disk EBS volume type to be used during replication.

*/ inline void SetStagingDiskType(const ReplicationConfigurationReplicatedDiskStagingDiskType& value) { m_stagingDiskTypeHasBeenSet = true; m_stagingDiskType = value; } /** *

The Staging Disk EBS volume type to be used during replication.

*/ inline void SetStagingDiskType(ReplicationConfigurationReplicatedDiskStagingDiskType&& value) { m_stagingDiskTypeHasBeenSet = true; m_stagingDiskType = std::move(value); } /** *

The Staging Disk EBS volume type to be used during replication.

*/ inline ReplicationConfigurationReplicatedDisk& WithStagingDiskType(const ReplicationConfigurationReplicatedDiskStagingDiskType& value) { SetStagingDiskType(value); return *this;} /** *

The Staging Disk EBS volume type to be used during replication.

*/ inline ReplicationConfigurationReplicatedDisk& WithStagingDiskType(ReplicationConfigurationReplicatedDiskStagingDiskType&& value) { SetStagingDiskType(std::move(value)); return *this;} /** *

The throughput to use for the EBS volume in MiB/s. This parameter is valid * only for gp3 volumes.

*/ inline long long GetThroughput() const{ return m_throughput; } /** *

The throughput to use for the EBS volume in MiB/s. This parameter is valid * only for gp3 volumes.

*/ inline bool ThroughputHasBeenSet() const { return m_throughputHasBeenSet; } /** *

The throughput to use for the EBS volume in MiB/s. This parameter is valid * only for gp3 volumes.

*/ inline void SetThroughput(long long value) { m_throughputHasBeenSet = true; m_throughput = value; } /** *

The throughput to use for the EBS volume in MiB/s. This parameter is valid * only for gp3 volumes.

*/ inline ReplicationConfigurationReplicatedDisk& WithThroughput(long long value) { SetThroughput(value); return *this;} private: Aws::String m_deviceName; bool m_deviceNameHasBeenSet = false; long long m_iops; bool m_iopsHasBeenSet = false; bool m_isBootDisk; bool m_isBootDiskHasBeenSet = false; ReplicationConfigurationReplicatedDiskStagingDiskType m_optimizedStagingDiskType; bool m_optimizedStagingDiskTypeHasBeenSet = false; ReplicationConfigurationReplicatedDiskStagingDiskType m_stagingDiskType; bool m_stagingDiskTypeHasBeenSet = false; long long m_throughput; bool m_throughputHasBeenSet = false; }; } // namespace Model } // namespace drs } // namespace Aws