Class CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.elasticsearch.mixins.CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomainPropsMixin.ElasticsearchClusterConfigProperty>
- Enclosing interface:
CfnDomainPropsMixin.ElasticsearchClusterConfigProperty
@Stability(Stable)
public static final class CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomainPropsMixin.ElasticsearchClusterConfigProperty>
A builder for
CfnDomainPropsMixin.ElasticsearchClusterConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.coldStorageOptions(IResolvable coldStorageOptions) coldStorageOptions(CfnDomainPropsMixin.ColdStorageOptionsProperty coldStorageOptions) dedicatedMasterCount(Number dedicatedMasterCount) dedicatedMasterEnabled(Boolean dedicatedMasterEnabled) dedicatedMasterEnabled(IResolvable dedicatedMasterEnabled) dedicatedMasterType(String dedicatedMasterType) instanceCount(Number instanceCount) instanceType(String instanceType) Sets the value ofCfnDomainPropsMixin.ElasticsearchClusterConfigProperty.getInstanceType()Sets the value ofCfnDomainPropsMixin.ElasticsearchClusterConfigProperty.getWarmCount()warmEnabled(Boolean warmEnabled) Sets the value ofCfnDomainPropsMixin.ElasticsearchClusterConfigProperty.getWarmEnabled()warmEnabled(IResolvable warmEnabled) Sets the value ofCfnDomainPropsMixin.ElasticsearchClusterConfigProperty.getWarmEnabled()Sets the value ofCfnDomainPropsMixin.ElasticsearchClusterConfigProperty.getWarmType()zoneAwarenessConfig(IResolvable zoneAwarenessConfig) zoneAwarenessConfig(CfnDomainPropsMixin.ZoneAwarenessConfigProperty zoneAwarenessConfig) zoneAwarenessEnabled(Boolean zoneAwarenessEnabled) zoneAwarenessEnabled(IResolvable zoneAwarenessEnabled)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
coldStorageOptions
@Stability(Stable) public CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder coldStorageOptions(IResolvable coldStorageOptions) - Parameters:
coldStorageOptions- Specifies cold storage options for the domain.- Returns:
this
-
coldStorageOptions
@Stability(Stable) public CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder coldStorageOptions(CfnDomainPropsMixin.ColdStorageOptionsProperty coldStorageOptions) - Parameters:
coldStorageOptions- Specifies cold storage options for the domain.- Returns:
this
-
dedicatedMasterCount
@Stability(Stable) public CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder dedicatedMasterCount(Number dedicatedMasterCount) - 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 CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder dedicatedMasterEnabled(Boolean dedicatedMasterEnabled) Sets the value ofCfnDomainPropsMixin.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 CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder dedicatedMasterEnabled(IResolvable dedicatedMasterEnabled) Sets the value ofCfnDomainPropsMixin.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 CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder dedicatedMasterType(String dedicatedMasterType) - 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 theDedicatedMasterEnabledproperty. For valid values, see Supported instance types in Amazon OpenSearch Service .- Returns:
this
-
instanceCount
@Stability(Stable) public CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder instanceCount(Number instanceCount) - Parameters:
instanceCount- The number of data nodes (instances) to use in the OpenSearch Service domain.- Returns:
this
-
instanceType
@Stability(Stable) public CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder instanceType(String instanceType) Sets the value ofCfnDomainPropsMixin.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 CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder warmCount(Number warmCount) Sets the value ofCfnDomainPropsMixin.ElasticsearchClusterConfigProperty.getWarmCount()- Parameters:
warmCount- The number of warm nodes in the cluster. Required if you enable warm storage.- Returns:
this
-
warmEnabled
@Stability(Stable) public CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder warmEnabled(Boolean warmEnabled) Sets the value ofCfnDomainPropsMixin.ElasticsearchClusterConfigProperty.getWarmEnabled()- Parameters:
warmEnabled- Whether to enable warm storage for the cluster.- Returns:
this
-
warmEnabled
@Stability(Stable) public CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder warmEnabled(IResolvable warmEnabled) Sets the value ofCfnDomainPropsMixin.ElasticsearchClusterConfigProperty.getWarmEnabled()- Parameters:
warmEnabled- Whether to enable warm storage for the cluster.- Returns:
this
-
warmType
@Stability(Stable) public CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder warmType(String warmType) Sets the value ofCfnDomainPropsMixin.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 CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder zoneAwarenessConfig(IResolvable zoneAwarenessConfig) - Parameters:
zoneAwarenessConfig- Specifies zone awareness configuration options. Only use ifZoneAwarenessEnabledistrue.- Returns:
this
-
zoneAwarenessConfig
@Stability(Stable) public CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder zoneAwarenessConfig(CfnDomainPropsMixin.ZoneAwarenessConfigProperty zoneAwarenessConfig) - Parameters:
zoneAwarenessConfig- Specifies zone awareness configuration options. Only use ifZoneAwarenessEnabledistrue.- Returns:
this
-
zoneAwarenessEnabled
@Stability(Stable) public CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder zoneAwarenessEnabled(Boolean zoneAwarenessEnabled) - 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 CfnDomainPropsMixin.ElasticsearchClusterConfigProperty.Builder zoneAwarenessEnabled(IResolvable zoneAwarenessEnabled) - 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnDomainPropsMixin.ElasticsearchClusterConfigProperty>- Returns:
- a new instance of
CfnDomainPropsMixin.ElasticsearchClusterConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-