Interface ClusterConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ClusterConfig.Builder,
,ClusterConfig> SdkBuilder<ClusterConfig.Builder,
,ClusterConfig> SdkPojo
- Enclosing class:
ClusterConfig
-
Method Summary
Modifier and TypeMethodDescriptiondefault ClusterConfig.Builder
coldStorageOptions
(Consumer<ColdStorageOptions.Builder> coldStorageOptions) Container for cold storage configuration options.coldStorageOptions
(ColdStorageOptions coldStorageOptions) Container for cold storage configuration options.dedicatedMasterCount
(Integer dedicatedMasterCount) Number of dedicated master nodes in the cluster.dedicatedMasterEnabled
(Boolean dedicatedMasterEnabled) Indicates whether dedicated master nodes are enabled for the cluster.True
if the cluster will use a dedicated master node.False
if the cluster will not.dedicatedMasterType
(String dedicatedMasterType) OpenSearch Service instance type of the dedicated master nodes in the cluster.dedicatedMasterType
(OpenSearchPartitionInstanceType dedicatedMasterType) OpenSearch Service instance type of the dedicated master nodes in the cluster.instanceCount
(Integer instanceCount) Number of data nodes in the cluster.instanceType
(String instanceType) Instance type of data nodes in the cluster.instanceType
(OpenSearchPartitionInstanceType instanceType) Instance type of data nodes in the cluster.multiAZWithStandbyEnabled
(Boolean multiAZWithStandbyEnabled) A boolean that indicates whether a multi-AZ domain is turned on with a standby AZ.The number of warm nodes in the cluster.warmEnabled
(Boolean warmEnabled) Whether to enable warm storage for the cluster.The instance type for the cluster's warm nodes.warmType
(OpenSearchWarmPartitionInstanceType warmType) The instance type for the cluster's warm nodes.default ClusterConfig.Builder
zoneAwarenessConfig
(Consumer<ZoneAwarenessConfig.Builder> zoneAwarenessConfig) Container for zone awareness configuration options.zoneAwarenessConfig
(ZoneAwarenessConfig zoneAwarenessConfig) Container for zone awareness configuration options.zoneAwarenessEnabled
(Boolean zoneAwarenessEnabled) Indicates whether multiple Availability Zones are enabled.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
-
instanceType
Instance type of data nodes in the cluster.
- Parameters:
instanceType
- Instance type of data nodes in the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
Instance type of data nodes in the cluster.
- Parameters:
instanceType
- Instance type of data nodes in the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceCount
Number of data nodes in the cluster. This number must be greater than 1, otherwise you receive a validation exception.
- Parameters:
instanceCount
- Number of data nodes in the cluster. This number must be greater than 1, otherwise you receive a validation exception.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dedicatedMasterEnabled
Indicates whether dedicated master nodes are enabled for the cluster.
True
if the cluster will use a dedicated master node.False
if the cluster will not.- Parameters:
dedicatedMasterEnabled
- Indicates whether dedicated master nodes are enabled for the cluster.True
if the cluster will use a dedicated master node.False
if the cluster will not.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
zoneAwarenessEnabled
Indicates whether multiple Availability Zones are enabled. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service.
- Parameters:
zoneAwarenessEnabled
- Indicates whether multiple Availability Zones are enabled. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
zoneAwarenessConfig
Container for zone awareness configuration options. Only required if
ZoneAwarenessEnabled
istrue
.- Parameters:
zoneAwarenessConfig
- Container for zone awareness configuration options. Only required ifZoneAwarenessEnabled
istrue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
zoneAwarenessConfig
default ClusterConfig.Builder zoneAwarenessConfig(Consumer<ZoneAwarenessConfig.Builder> zoneAwarenessConfig) Container for zone awareness configuration options. Only required if
This is a convenience method that creates an instance of theZoneAwarenessEnabled
istrue
.ZoneAwarenessConfig.Builder
avoiding the need to create one manually viaZoneAwarenessConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tozoneAwarenessConfig(ZoneAwarenessConfig)
.- Parameters:
zoneAwarenessConfig
- a consumer that will call methods onZoneAwarenessConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dedicatedMasterType
OpenSearch Service instance type of the dedicated master nodes in the cluster.
- Parameters:
dedicatedMasterType
- OpenSearch Service instance type of the dedicated master nodes in the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dedicatedMasterType
OpenSearch Service instance type of the dedicated master nodes in the cluster.
- Parameters:
dedicatedMasterType
- OpenSearch Service instance type of the dedicated master nodes in the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dedicatedMasterCount
Number of dedicated master nodes in the cluster. This number must be greater than 2 and not 4, otherwise you receive a validation exception.
- Parameters:
dedicatedMasterCount
- Number of dedicated master nodes in the cluster. This number must be greater than 2 and not 4, otherwise you receive a validation exception.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
warmEnabled
Whether to enable warm storage for the cluster.
- Parameters:
warmEnabled
- Whether to enable warm storage for the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
warmType
The instance type for the cluster's warm nodes.
- Parameters:
warmType
- The instance type for the cluster's warm nodes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
warmType
The instance type for the cluster's warm nodes.
- Parameters:
warmType
- The instance type for the cluster's warm nodes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
warmCount
The number of warm nodes in the cluster.
- Parameters:
warmCount
- The number of warm nodes in the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
coldStorageOptions
Container for cold storage configuration options.
- Parameters:
coldStorageOptions
- Container for cold storage configuration options.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
coldStorageOptions
default ClusterConfig.Builder coldStorageOptions(Consumer<ColdStorageOptions.Builder> coldStorageOptions) Container for cold storage configuration options.
This is a convenience method that creates an instance of theColdStorageOptions.Builder
avoiding the need to create one manually viaColdStorageOptions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocoldStorageOptions(ColdStorageOptions)
.- Parameters:
coldStorageOptions
- a consumer that will call methods onColdStorageOptions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
multiAZWithStandbyEnabled
A boolean that indicates whether a multi-AZ domain is turned on with a standby AZ. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service.
- Parameters:
multiAZWithStandbyEnabled
- A boolean that indicates whether a multi-AZ domain is turned on with a standby AZ. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-