public static final class CapacityConfig.Builder
extends java.lang.Object
CapacityConfig
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CapacityConfig |
build()
Builds the configured instance.
|
CapacityConfig.Builder |
dataNodeInstanceType(java.lang.String dataNodeInstanceType)
Sets the value of
CapacityConfig.getDataNodeInstanceType() |
CapacityConfig.Builder |
dataNodes(java.lang.Number dataNodes)
Sets the value of
CapacityConfig.getDataNodes() |
CapacityConfig.Builder |
masterNodeInstanceType(java.lang.String masterNodeInstanceType)
Sets the value of
CapacityConfig.getMasterNodeInstanceType() |
CapacityConfig.Builder |
masterNodes(java.lang.Number masterNodes)
Sets the value of
CapacityConfig.getMasterNodes() |
CapacityConfig.Builder |
warmInstanceType(java.lang.String warmInstanceType)
Sets the value of
CapacityConfig.getWarmInstanceType() |
CapacityConfig.Builder |
warmNodes(java.lang.Number warmNodes)
Sets the value of
CapacityConfig.getWarmNodes() |
public CapacityConfig.Builder dataNodeInstanceType(java.lang.String dataNodeInstanceType)
CapacityConfig.getDataNodeInstanceType()
dataNodeInstanceType
- The instance type for your data nodes, such as `m3.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.this
public CapacityConfig.Builder dataNodes(java.lang.Number dataNodes)
CapacityConfig.getDataNodes()
dataNodes
- The number of data nodes (instances) to use in the Amazon OpenSearch Service domain.this
public CapacityConfig.Builder masterNodeInstanceType(java.lang.String masterNodeInstanceType)
CapacityConfig.getMasterNodeInstanceType()
masterNodeInstanceType
- The hardware configuration of the computer that hosts the dedicated master node, such as `m3.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.this
public CapacityConfig.Builder masterNodes(java.lang.Number masterNodes)
CapacityConfig.getMasterNodes()
masterNodes
- The number of instances to use for the master node.this
public CapacityConfig.Builder warmInstanceType(java.lang.String warmInstanceType)
CapacityConfig.getWarmInstanceType()
warmInstanceType
- The instance type for your UltraWarm node, such as `ultrawarm1.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.this
public CapacityConfig.Builder warmNodes(java.lang.Number warmNodes)
CapacityConfig.getWarmNodes()
warmNodes
- The number of UltraWarm nodes (instances) to use in the Amazon OpenSearch Service domain.this
public CapacityConfig build()
CapacityConfig
java.lang.NullPointerException
- if any required attribute was not provided