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()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] (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/supported-instance-types.html) 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
-
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] (https://docs.aws.amazon.com/opensearch-service/latest/developerguide/limits.html#limits-ultrawarm) 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
-