Class CfnDomain.EBSOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticsearch.CfnDomain.EBSOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomain.EBSOptionsProperty>
- Enclosing interface:
CfnDomain.EBSOptionsProperty
@Stability(Stable)
public static final class CfnDomain.EBSOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomain.EBSOptionsProperty>
A builder for
CfnDomain.EBSOptionsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.ebsEnabled
(Boolean ebsEnabled) Sets the value ofCfnDomain.EBSOptionsProperty.getEbsEnabled()
ebsEnabled
(IResolvable ebsEnabled) Sets the value ofCfnDomain.EBSOptionsProperty.getEbsEnabled()
Sets the value ofCfnDomain.EBSOptionsProperty.getIops()
volumeSize
(Number volumeSize) Sets the value ofCfnDomain.EBSOptionsProperty.getVolumeSize()
volumeType
(String volumeType) Sets the value ofCfnDomain.EBSOptionsProperty.getVolumeType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ebsEnabled
Sets the value ofCfnDomain.EBSOptionsProperty.getEbsEnabled()
- Parameters:
ebsEnabled
- Specifies whether Amazon EBS volumes are attached to data nodes in the OpenSearch Service domain.- Returns:
this
-
ebsEnabled
Sets the value ofCfnDomain.EBSOptionsProperty.getEbsEnabled()
- Parameters:
ebsEnabled
- Specifies whether Amazon EBS volumes are attached to data nodes in the OpenSearch Service domain.- Returns:
this
-
iops
Sets the value ofCfnDomain.EBSOptionsProperty.getIops()
- Parameters:
iops
- The number of I/O operations per second (IOPS) that the volume supports. This property applies only to provisioned IOPS EBS volume types.- Returns:
this
-
volumeSize
Sets the value ofCfnDomain.EBSOptionsProperty.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 more information, see EBS volume size limits in the Amazon OpenSearch Service Developer Guide .- Returns:
this
-
volumeType
Sets the value ofCfnDomain.EBSOptionsProperty.getVolumeType()
- Parameters:
volumeType
- The EBS volume type to use with the OpenSearch Service domain, such as standard, gp2, or io1. For more information about each type, see Amazon EBS volume types in the Amazon EC2 User Guide for Linux Instances .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDomain.EBSOptionsProperty>
- Returns:
- a new instance of
CfnDomain.EBSOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-