public static final class ZoneAwarenessConfig.Builder
extends java.lang.Object
ZoneAwarenessConfig
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ZoneAwarenessConfig.Builder |
availabilityZoneCount(java.lang.Number availabilityZoneCount)
Sets the value of
ZoneAwarenessConfig.getAvailabilityZoneCount() |
ZoneAwarenessConfig |
build()
Builds the configured instance.
|
ZoneAwarenessConfig.Builder |
enabled(java.lang.Boolean enabled)
Sets the value of
ZoneAwarenessConfig.getEnabled() |
public ZoneAwarenessConfig.Builder availabilityZoneCount(java.lang.Number availabilityZoneCount)
ZoneAwarenessConfig.getAvailabilityZoneCount()
availabilityZoneCount
- If you enabled multiple Availability Zones (AZs), the number of AZs that you want the domain to use.
Valid values are 2 and 3.this
public ZoneAwarenessConfig.Builder enabled(java.lang.Boolean enabled)
ZoneAwarenessConfig.getEnabled()
enabled
- Indicates whether to enable zone awareness for the Amazon OpenSearch Service domain.
When you enable zone awareness, Amazon 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]
(https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html)
in the Amazon OpenSearch Service Developer Guide.this
public ZoneAwarenessConfig build()
ZoneAwarenessConfig
java.lang.NullPointerException
- if any required attribute was not provided