/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ElasticsearchService { namespace Model { /** *

Options to enable, disable, and specify the properties of EBS storage * volumes. For more information, see Configuring EBS-based Storage.

See Also:

* AWS * API Reference

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

Specifies whether EBS-based storage is enabled.

*/ inline bool GetEBSEnabled() const{ return m_eBSEnabled; } /** *

Specifies whether EBS-based storage is enabled.

*/ inline bool EBSEnabledHasBeenSet() const { return m_eBSEnabledHasBeenSet; } /** *

Specifies whether EBS-based storage is enabled.

*/ inline void SetEBSEnabled(bool value) { m_eBSEnabledHasBeenSet = true; m_eBSEnabled = value; } /** *

Specifies whether EBS-based storage is enabled.

*/ inline EBSOptions& WithEBSEnabled(bool value) { SetEBSEnabled(value); return *this;} /** *

Specifies the volume type for EBS-based storage.

*/ inline const VolumeType& GetVolumeType() const{ return m_volumeType; } /** *

Specifies the volume type for EBS-based storage.

*/ inline bool VolumeTypeHasBeenSet() const { return m_volumeTypeHasBeenSet; } /** *

Specifies the volume type for EBS-based storage.

*/ inline void SetVolumeType(const VolumeType& value) { m_volumeTypeHasBeenSet = true; m_volumeType = value; } /** *

Specifies the volume type for EBS-based storage.

*/ inline void SetVolumeType(VolumeType&& value) { m_volumeTypeHasBeenSet = true; m_volumeType = std::move(value); } /** *

Specifies the volume type for EBS-based storage.

*/ inline EBSOptions& WithVolumeType(const VolumeType& value) { SetVolumeType(value); return *this;} /** *

Specifies the volume type for EBS-based storage.

*/ inline EBSOptions& WithVolumeType(VolumeType&& value) { SetVolumeType(std::move(value)); return *this;} /** *

Integer to specify the size of an EBS volume.

*/ inline int GetVolumeSize() const{ return m_volumeSize; } /** *

Integer to specify the size of an EBS volume.

*/ inline bool VolumeSizeHasBeenSet() const { return m_volumeSizeHasBeenSet; } /** *

Integer to specify the size of an EBS volume.

*/ inline void SetVolumeSize(int value) { m_volumeSizeHasBeenSet = true; m_volumeSize = value; } /** *

Integer to specify the size of an EBS volume.

*/ inline EBSOptions& WithVolumeSize(int value) { SetVolumeSize(value); return *this;} /** *

Specifies the IOPS for Provisioned IOPS And GP3 EBS volume (SSD).

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

Specifies the IOPS for Provisioned IOPS And GP3 EBS volume (SSD).

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

Specifies the IOPS for Provisioned IOPS And GP3 EBS volume (SSD).

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

Specifies the IOPS for Provisioned IOPS And GP3 EBS volume (SSD).

*/ inline EBSOptions& WithIops(int value) { SetIops(value); return *this;} /** *

Specifies the Throughput for GP3 EBS volume (SSD).

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

Specifies the Throughput for GP3 EBS volume (SSD).

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

Specifies the Throughput for GP3 EBS volume (SSD).

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

Specifies the Throughput for GP3 EBS volume (SSD).

*/ inline EBSOptions& WithThroughput(int value) { SetThroughput(value); return *this;} private: bool m_eBSEnabled; bool m_eBSEnabledHasBeenSet = false; VolumeType m_volumeType; bool m_volumeTypeHasBeenSet = false; int m_volumeSize; bool m_volumeSizeHasBeenSet = false; int m_iops; bool m_iopsHasBeenSet = false; int m_throughput; bool m_throughputHasBeenSet = false; }; } // namespace Model } // namespace ElasticsearchService } // namespace Aws