Class NodeConfig.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchservice.NodeConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NodeConfig>
- Enclosing interface:
NodeConfig
@Stability(Stable)
public static final class NodeConfig.Builder
extends Object
implements software.amazon.jsii.Builder<NodeConfig>
A builder for
NodeConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofNodeConfig.getCount()Sets the value ofNodeConfig.getEnabled()Sets the value ofNodeConfig.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
count
Sets the value ofNodeConfig.getCount()- Parameters:
count- The number of nodes of this type.- Returns:
this
-
enabled
Sets the value ofNodeConfig.getEnabled()- Parameters:
enabled- Whether this node type is enabled.- Returns:
this
-
type
Sets the value ofNodeConfig.getType()- Parameters:
type- The instance type for the nodes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NodeConfig>- Returns:
- a new instance of
NodeConfig - Throws:
NullPointerException- if any required attribute was not provided
-