Class CfnDomain.ElasticsearchClusterConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.elasticsearch.CfnDomain.ElasticsearchClusterConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomain.ElasticsearchClusterConfigProperty>
- Enclosing interface:
- CfnDomain.ElasticsearchClusterConfigProperty
@Stability(Stable)
public static final class CfnDomain.ElasticsearchClusterConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomain.ElasticsearchClusterConfigProperty>
A builder for
CfnDomain.ElasticsearchClusterConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.coldStorageOptions
(IResolvable coldStorageOptions) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getColdStorageOptions()
coldStorageOptions
(CfnDomain.ColdStorageOptionsProperty coldStorageOptions) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getColdStorageOptions()
dedicatedMasterCount
(Number dedicatedMasterCount) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getDedicatedMasterCount()
dedicatedMasterEnabled
(Boolean dedicatedMasterEnabled) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getDedicatedMasterEnabled()
dedicatedMasterEnabled
(IResolvable dedicatedMasterEnabled) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getDedicatedMasterEnabled()
dedicatedMasterType
(String dedicatedMasterType) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getDedicatedMasterType()
instanceCount
(Number instanceCount) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getInstanceCount()
instanceType
(String instanceType) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getInstanceType()
Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getWarmCount()
warmEnabled
(Boolean warmEnabled) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getWarmEnabled()
warmEnabled
(IResolvable warmEnabled) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getWarmEnabled()
Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getWarmType()
zoneAwarenessConfig
(IResolvable zoneAwarenessConfig) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getZoneAwarenessConfig()
zoneAwarenessConfig
(CfnDomain.ZoneAwarenessConfigProperty zoneAwarenessConfig) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getZoneAwarenessConfig()
zoneAwarenessEnabled
(Boolean zoneAwarenessEnabled) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getZoneAwarenessEnabled()
zoneAwarenessEnabled
(IResolvable zoneAwarenessEnabled) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getZoneAwarenessEnabled()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
coldStorageOptions
@Stability(Stable) public CfnDomain.ElasticsearchClusterConfigProperty.Builder coldStorageOptions(IResolvable coldStorageOptions) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getColdStorageOptions()
- Parameters:
coldStorageOptions
- Specifies cold storage options for the domain.- Returns:
this
-
coldStorageOptions
@Stability(Stable) public CfnDomain.ElasticsearchClusterConfigProperty.Builder coldStorageOptions(CfnDomain.ColdStorageOptionsProperty coldStorageOptions) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getColdStorageOptions()
- Parameters:
coldStorageOptions
- Specifies cold storage options for the domain.- Returns:
this
-
dedicatedMasterCount
@Stability(Stable) public CfnDomain.ElasticsearchClusterConfigProperty.Builder dedicatedMasterCount(Number dedicatedMasterCount) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getDedicatedMasterCount()
- Parameters:
dedicatedMasterCount
- The number of instances to use for the master node. If you specify this property, you must specify true for the DedicatedMasterEnabled property.- Returns:
this
-
dedicatedMasterEnabled
@Stability(Stable) public CfnDomain.ElasticsearchClusterConfigProperty.Builder dedicatedMasterEnabled(Boolean dedicatedMasterEnabled) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getDedicatedMasterEnabled()
- Parameters:
dedicatedMasterEnabled
- Indicates whether to use a dedicated master node for the OpenSearch Service domain. A dedicated master node is a cluster node that performs cluster management tasks, but doesn't hold data or respond to data upload requests. Dedicated master nodes offload cluster management tasks to increase the stability of your search clusters. See Dedicated master nodes in Amazon OpenSearch Service .- Returns:
this
-
dedicatedMasterEnabled
@Stability(Stable) public CfnDomain.ElasticsearchClusterConfigProperty.Builder dedicatedMasterEnabled(IResolvable dedicatedMasterEnabled) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getDedicatedMasterEnabled()
- Parameters:
dedicatedMasterEnabled
- Indicates whether to use a dedicated master node for the OpenSearch Service domain. A dedicated master node is a cluster node that performs cluster management tasks, but doesn't hold data or respond to data upload requests. Dedicated master nodes offload cluster management tasks to increase the stability of your search clusters. See Dedicated master nodes in Amazon OpenSearch Service .- Returns:
this
-
dedicatedMasterType
@Stability(Stable) public CfnDomain.ElasticsearchClusterConfigProperty.Builder dedicatedMasterType(String dedicatedMasterType) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getDedicatedMasterType()
- Parameters:
dedicatedMasterType
- The hardware configuration of the computer that hosts the dedicated master node, such asm3.medium.elasticsearch
. If you specify this property, you must specify true for theDedicatedMasterEnabled
property. For valid values, see Supported instance types in Amazon OpenSearch Service .- Returns:
this
-
instanceCount
@Stability(Stable) public CfnDomain.ElasticsearchClusterConfigProperty.Builder instanceCount(Number instanceCount) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getInstanceCount()
- Parameters:
instanceCount
- The number of data nodes (instances) to use in the OpenSearch Service domain.- Returns:
this
-
instanceType
@Stability(Stable) public CfnDomain.ElasticsearchClusterConfigProperty.Builder instanceType(String instanceType) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getInstanceType()
- Parameters:
instanceType
- The instance type for your data nodes, such asm3.medium.elasticsearch
. For valid values, see Supported instance types in Amazon OpenSearch Service .- Returns:
this
-
warmCount
@Stability(Stable) public CfnDomain.ElasticsearchClusterConfigProperty.Builder warmCount(Number warmCount) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getWarmCount()
- Parameters:
warmCount
- The number of warm nodes in the cluster. Required if you enable warm storage.- Returns:
this
-
warmEnabled
@Stability(Stable) public CfnDomain.ElasticsearchClusterConfigProperty.Builder warmEnabled(Boolean warmEnabled) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getWarmEnabled()
- Parameters:
warmEnabled
- Whether to enable warm storage for the cluster.- Returns:
this
-
warmEnabled
@Stability(Stable) public CfnDomain.ElasticsearchClusterConfigProperty.Builder warmEnabled(IResolvable warmEnabled) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getWarmEnabled()
- Parameters:
warmEnabled
- Whether to enable warm storage for the cluster.- Returns:
this
-
warmType
@Stability(Stable) public CfnDomain.ElasticsearchClusterConfigProperty.Builder warmType(String warmType) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getWarmType()
- Parameters:
warmType
- The instance type for the cluster's warm nodes. Required if you enable warm storage.- Returns:
this
-
zoneAwarenessConfig
@Stability(Stable) public CfnDomain.ElasticsearchClusterConfigProperty.Builder zoneAwarenessConfig(IResolvable zoneAwarenessConfig) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getZoneAwarenessConfig()
- Parameters:
zoneAwarenessConfig
- Specifies zone awareness configuration options. Only use ifZoneAwarenessEnabled
istrue
.- Returns:
this
-
zoneAwarenessConfig
@Stability(Stable) public CfnDomain.ElasticsearchClusterConfigProperty.Builder zoneAwarenessConfig(CfnDomain.ZoneAwarenessConfigProperty zoneAwarenessConfig) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getZoneAwarenessConfig()
- Parameters:
zoneAwarenessConfig
- Specifies zone awareness configuration options. Only use ifZoneAwarenessEnabled
istrue
.- Returns:
this
-
zoneAwarenessEnabled
@Stability(Stable) public CfnDomain.ElasticsearchClusterConfigProperty.Builder zoneAwarenessEnabled(Boolean zoneAwarenessEnabled) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getZoneAwarenessEnabled()
- Parameters:
zoneAwarenessEnabled
- Indicates whether to enable zone awareness for the OpenSearch Service domain. When you enable zone awareness, OpenSearch Service allocates the nodes and replica index shards that belong to a cluster across two Availability Zones (AZs) in the same region to prevent data loss and minimize downtime in the event of node or data center failure. Don't enable zone awareness if your cluster has no replica index shards or is a single-node cluster. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service .- Returns:
this
-
zoneAwarenessEnabled
@Stability(Stable) public CfnDomain.ElasticsearchClusterConfigProperty.Builder zoneAwarenessEnabled(IResolvable zoneAwarenessEnabled) Sets the value ofCfnDomain.ElasticsearchClusterConfigProperty.getZoneAwarenessEnabled()
- Parameters:
zoneAwarenessEnabled
- Indicates whether to enable zone awareness for the OpenSearch Service domain. When you enable zone awareness, OpenSearch Service allocates the nodes and replica index shards that belong to a cluster across two Availability Zones (AZs) in the same region to prevent data loss and minimize downtime in the event of node or data center failure. Don't enable zone awareness if your cluster has no replica index shards or is a single-node cluster. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDomain.ElasticsearchClusterConfigProperty>
- Returns:
- a new instance of
CfnDomain.ElasticsearchClusterConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-