Class EbsOptions.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchservice.EbsOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EbsOptions>
- Enclosing interface:
EbsOptions
@Stability(Stable)
public static final class EbsOptions.Builder
extends Object
implements software.amazon.jsii.Builder<EbsOptions>
A builder for
EbsOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofEbsOptions.getEnabled()
Sets the value ofEbsOptions.getIops()
throughput
(Number throughput) Sets the value ofEbsOptions.getThroughput()
volumeSize
(Number volumeSize) Sets the value ofEbsOptions.getVolumeSize()
volumeType
(EbsDeviceVolumeType volumeType) Sets the value ofEbsOptions.getVolumeType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofEbsOptions.getEnabled()
- Parameters:
enabled
- Specifies whether Amazon EBS volumes are attached to data nodes in the Amazon OpenSearch Service domain.- Returns:
this
-
iops
Sets the value ofEbsOptions.getIops()
- Parameters:
iops
- The number of I/O operations per second (IOPS) that the volume supports. This property applies only to the gp3 and Provisioned IOPS (SSD) EBS volume type.- Returns:
this
-
throughput
Sets the value ofEbsOptions.getThroughput()
- Parameters:
throughput
- The throughput (in MiB/s) of the EBS volumes attached to data nodes. This property applies only to the gp3 volume type.- Returns:
this
-
volumeSize
Sets the value ofEbsOptions.getVolumeSize()
- Parameters:
volumeSize
- The size (in GiB) of the EBS volume for each data node. The minimum and maximum size of an EBS volume depends on the EBS volume type and the instance type to which it is attached. For valid values, see EBS volume size limits in the Amazon OpenSearch Service Developer Guide.- Returns:
this
-
volumeType
Sets the value ofEbsOptions.getVolumeType()
- Parameters:
volumeType
- The EBS volume type to use with the Amazon OpenSearch Service domain, such as standard, gp2, io1.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EbsOptions>
- Returns:
- a new instance of
EbsOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-