Class CapacityConfig.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchservice.CapacityConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CapacityConfig>
- Enclosing interface:
CapacityConfig
@Stability(Stable)
public static final class CapacityConfig.Builder
extends Object
implements software.amazon.jsii.Builder<CapacityConfig>
A builder for
CapacityConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dataNodeInstanceType(String dataNodeInstanceType) Sets the value ofCapacityConfig.getDataNodeInstanceType()Sets the value ofCapacityConfig.getDataNodes()masterNodeInstanceType(String masterNodeInstanceType) Sets the value ofCapacityConfig.getMasterNodeInstanceType()masterNodes(Number masterNodes) Sets the value ofCapacityConfig.getMasterNodes()multiAzWithStandbyEnabled(Boolean multiAzWithStandbyEnabled) Sets the value ofCapacityConfig.getMultiAzWithStandbyEnabled()nodeOptions(List<? extends NodeOptions> nodeOptions) Sets the value ofCapacityConfig.getNodeOptions()warmInstanceType(String warmInstanceType) Sets the value ofCapacityConfig.getWarmInstanceType()Sets the value ofCapacityConfig.getWarmNodes()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dataNodeInstanceType
Sets the value ofCapacityConfig.getDataNodeInstanceType()- Parameters:
dataNodeInstanceType- The instance type for your data nodes, such asm3.medium.search. For valid values, see Supported Instance Types in the Amazon OpenSearch Service Developer Guide.- Returns:
this
-
dataNodes
Sets the value ofCapacityConfig.getDataNodes()- Parameters:
dataNodes- The number of data nodes (instances) to use in the Amazon OpenSearch Service domain.- Returns:
this
-
masterNodeInstanceType
@Stability(Stable) public CapacityConfig.Builder masterNodeInstanceType(String masterNodeInstanceType) Sets the value ofCapacityConfig.getMasterNodeInstanceType()- Parameters:
masterNodeInstanceType- The hardware configuration of the computer that hosts the dedicated master node, such asm3.medium.search. For valid values, see Supported Instance Types in the Amazon OpenSearch Service Developer Guide.- Returns:
this
-
masterNodes
Sets the value ofCapacityConfig.getMasterNodes()- Parameters:
masterNodes- The number of instances to use for the master node.- Returns:
this
-
multiAzWithStandbyEnabled
@Stability(Stable) public CapacityConfig.Builder multiAzWithStandbyEnabled(Boolean multiAzWithStandbyEnabled) Sets the value ofCapacityConfig.getMultiAzWithStandbyEnabled()- Parameters:
multiAzWithStandbyEnabled- Indicates whether Multi-AZ with Standby deployment option is enabled. For more information, see Multi-AZ with Standby- Returns:
this
-
nodeOptions
@Stability(Stable) public CapacityConfig.Builder nodeOptions(List<? extends NodeOptions> nodeOptions) Sets the value ofCapacityConfig.getNodeOptions()- Parameters:
nodeOptions- Additional node options for the domain.- Returns:
this
-
warmInstanceType
Sets the value ofCapacityConfig.getWarmInstanceType()- Parameters:
warmInstanceType- The instance type for your UltraWarm node, such asultrawarm1.medium.search. For valid values, see UltraWarm Storage Limits in the Amazon OpenSearch Service Developer Guide.- Returns:
this
-
warmNodes
Sets the value ofCapacityConfig.getWarmNodes()- Parameters:
warmNodes- The number of UltraWarm nodes (instances) to use in the Amazon OpenSearch Service domain.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CapacityConfig>- Returns:
- a new instance of
CapacityConfig - Throws:
NullPointerException- if any required attribute was not provided
-