Interface AwsElasticsearchDomainElasticsearchClusterConfigDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsElasticsearchDomainElasticsearchClusterConfigDetails.Builder,
,AwsElasticsearchDomainElasticsearchClusterConfigDetails> SdkBuilder<AwsElasticsearchDomainElasticsearchClusterConfigDetails.Builder,
,AwsElasticsearchDomainElasticsearchClusterConfigDetails> SdkPojo
- Enclosing class:
AwsElasticsearchDomainElasticsearchClusterConfigDetails
-
Method Summary
Modifier and TypeMethodDescriptiondedicatedMasterCount
(Integer dedicatedMasterCount) The number of instances to use for the master node.dedicatedMasterEnabled
(Boolean dedicatedMasterEnabled) Whether to use a dedicated master node for the Elasticsearch domain.dedicatedMasterType
(String dedicatedMasterType) The hardware configuration of the computer that hosts the dedicated master node.instanceCount
(Integer instanceCount) The number of data nodes to use in the Elasticsearch domain.instanceType
(String instanceType) The instance type for your data nodes.zoneAwarenessConfig
(Consumer<AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails.Builder> zoneAwarenessConfig) Configuration options for zone awareness.zoneAwarenessConfig
(AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails zoneAwarenessConfig) Configuration options for zone awareness.zoneAwarenessEnabled
(Boolean zoneAwarenessEnabled) Whether to enable zone awareness for the Elasticsearch domain.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
dedicatedMasterCount
AwsElasticsearchDomainElasticsearchClusterConfigDetails.Builder dedicatedMasterCount(Integer dedicatedMasterCount) The number of instances to use for the master node. If this attribute is specified, then
DedicatedMasterEnabled
must betrue
.- Parameters:
dedicatedMasterCount
- The number of instances to use for the master node. If this attribute is specified, thenDedicatedMasterEnabled
must betrue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dedicatedMasterEnabled
AwsElasticsearchDomainElasticsearchClusterConfigDetails.Builder dedicatedMasterEnabled(Boolean dedicatedMasterEnabled) Whether to use a dedicated master node for the Elasticsearch domain. A dedicated master node performs cluster management tasks, but doesn't hold data or respond to data upload requests.
- Parameters:
dedicatedMasterEnabled
- Whether to use a dedicated master node for the Elasticsearch domain. A dedicated master node performs cluster management tasks, but doesn't hold data or respond to data upload requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dedicatedMasterType
AwsElasticsearchDomainElasticsearchClusterConfigDetails.Builder dedicatedMasterType(String dedicatedMasterType) The hardware configuration of the computer that hosts the dedicated master node. A sample value is
m3.medium.elasticsearch
. If this attribute is specified, thenDedicatedMasterEnabled
must betrue
.For a list of valid values, see Supported instance types in Amazon OpenSearch Service in the Amazon OpenSearch Service Developer Guide.
- Parameters:
dedicatedMasterType
- The hardware configuration of the computer that hosts the dedicated master node. A sample value ism3.medium.elasticsearch
. If this attribute is specified, thenDedicatedMasterEnabled
must betrue
.For a list of valid values, see Supported instance types in Amazon OpenSearch Service in the Amazon OpenSearch Service Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceCount
AwsElasticsearchDomainElasticsearchClusterConfigDetails.Builder instanceCount(Integer instanceCount) The number of data nodes to use in the Elasticsearch domain.
- Parameters:
instanceCount
- The number of data nodes to use in the Elasticsearch domain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
The instance type for your data nodes. For example,
m3.medium.elasticsearch
.For a list of valid values, see Supported instance types in Amazon OpenSearch Service in the Amazon OpenSearch Service Developer Guide.
- Parameters:
instanceType
- The instance type for your data nodes. For example,m3.medium.elasticsearch
.For a list of valid values, see Supported instance types in Amazon OpenSearch Service in the Amazon OpenSearch Service Developer Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
zoneAwarenessConfig
AwsElasticsearchDomainElasticsearchClusterConfigDetails.Builder zoneAwarenessConfig(AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails zoneAwarenessConfig) Configuration options for zone awareness. Provided if
ZoneAwarenessEnabled
istrue
.- Parameters:
zoneAwarenessConfig
- Configuration options for zone awareness. Provided ifZoneAwarenessEnabled
istrue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
zoneAwarenessConfig
default AwsElasticsearchDomainElasticsearchClusterConfigDetails.Builder zoneAwarenessConfig(Consumer<AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails.Builder> zoneAwarenessConfig) Configuration options for zone awareness. Provided if
This is a convenience method that creates an instance of theZoneAwarenessEnabled
istrue
.AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails.Builder
avoiding the need to create one manually viaAwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tozoneAwarenessConfig(AwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails)
.- Parameters:
zoneAwarenessConfig
- a consumer that will call methods onAwsElasticsearchDomainElasticsearchClusterConfigZoneAwarenessConfigDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
zoneAwarenessEnabled
AwsElasticsearchDomainElasticsearchClusterConfigDetails.Builder zoneAwarenessEnabled(Boolean zoneAwarenessEnabled) Whether to enable zone awareness for the Elasticsearch domain. When zone awareness is enabled, OpenSearch allocates the cluster's nodes and replica index shards across Availability Zones in the same Region. This prevents data loss and minimizes downtime if a node or data center fails.
- Parameters:
zoneAwarenessEnabled
- Whether to enable zone awareness for the Elasticsearch domain. When zone awareness is enabled, OpenSearch allocates the cluster's nodes and replica index shards across Availability Zones in the same Region. This prevents data loss and minimizes downtime if a node or data center fails.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-