Struct aws_sdk_opensearch::types::builders::ClusterConfigBuilder
source · #[non_exhaustive]pub struct ClusterConfigBuilder { /* private fields */ }
Expand description
A builder for ClusterConfig
.
Implementations§
source§impl ClusterConfigBuilder
impl ClusterConfigBuilder
sourcepub fn instance_type(self, input: OpenSearchPartitionInstanceType) -> Self
pub fn instance_type(self, input: OpenSearchPartitionInstanceType) -> Self
Instance type of data nodes in the cluster.
sourcepub fn set_instance_type(
self,
input: Option<OpenSearchPartitionInstanceType>
) -> Self
pub fn set_instance_type( self, input: Option<OpenSearchPartitionInstanceType> ) -> Self
Instance type of data nodes in the cluster.
sourcepub fn get_instance_type(&self) -> &Option<OpenSearchPartitionInstanceType>
pub fn get_instance_type(&self) -> &Option<OpenSearchPartitionInstanceType>
Instance type of data nodes in the cluster.
sourcepub fn instance_count(self, input: i32) -> Self
pub fn instance_count(self, input: i32) -> Self
Number of data nodes in the cluster. This number must be greater than 1, otherwise you receive a validation exception.
sourcepub fn set_instance_count(self, input: Option<i32>) -> Self
pub fn set_instance_count(self, input: Option<i32>) -> Self
Number of data nodes in the cluster. This number must be greater than 1, otherwise you receive a validation exception.
sourcepub fn get_instance_count(&self) -> &Option<i32>
pub fn get_instance_count(&self) -> &Option<i32>
Number of data nodes in the cluster. This number must be greater than 1, otherwise you receive a validation exception.
sourcepub fn dedicated_master_enabled(self, input: bool) -> Self
pub fn dedicated_master_enabled(self, input: bool) -> Self
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.
sourcepub fn set_dedicated_master_enabled(self, input: Option<bool>) -> Self
pub fn set_dedicated_master_enabled(self, input: Option<bool>) -> Self
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.
sourcepub fn get_dedicated_master_enabled(&self) -> &Option<bool>
pub fn get_dedicated_master_enabled(&self) -> &Option<bool>
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.
sourcepub fn zone_awareness_enabled(self, input: bool) -> Self
pub fn zone_awareness_enabled(self, input: bool) -> Self
Indicates whether multiple Availability Zones are enabled. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service.
sourcepub fn set_zone_awareness_enabled(self, input: Option<bool>) -> Self
pub fn set_zone_awareness_enabled(self, input: Option<bool>) -> Self
Indicates whether multiple Availability Zones are enabled. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service.
sourcepub fn get_zone_awareness_enabled(&self) -> &Option<bool>
pub fn get_zone_awareness_enabled(&self) -> &Option<bool>
Indicates whether multiple Availability Zones are enabled. For more information, see Configuring a multi-AZ domain in Amazon OpenSearch Service.
sourcepub fn zone_awareness_config(self, input: ZoneAwarenessConfig) -> Self
pub fn zone_awareness_config(self, input: ZoneAwarenessConfig) -> Self
Container for zone awareness configuration options. Only required if ZoneAwarenessEnabled
is true
.
sourcepub fn set_zone_awareness_config(
self,
input: Option<ZoneAwarenessConfig>
) -> Self
pub fn set_zone_awareness_config( self, input: Option<ZoneAwarenessConfig> ) -> Self
Container for zone awareness configuration options. Only required if ZoneAwarenessEnabled
is true
.
sourcepub fn get_zone_awareness_config(&self) -> &Option<ZoneAwarenessConfig>
pub fn get_zone_awareness_config(&self) -> &Option<ZoneAwarenessConfig>
Container for zone awareness configuration options. Only required if ZoneAwarenessEnabled
is true
.
sourcepub fn dedicated_master_type(
self,
input: OpenSearchPartitionInstanceType
) -> Self
pub fn dedicated_master_type( self, input: OpenSearchPartitionInstanceType ) -> Self
OpenSearch Service instance type of the dedicated master nodes in the cluster.
sourcepub fn set_dedicated_master_type(
self,
input: Option<OpenSearchPartitionInstanceType>
) -> Self
pub fn set_dedicated_master_type( self, input: Option<OpenSearchPartitionInstanceType> ) -> Self
OpenSearch Service instance type of the dedicated master nodes in the cluster.
sourcepub fn get_dedicated_master_type(
&self
) -> &Option<OpenSearchPartitionInstanceType>
pub fn get_dedicated_master_type( &self ) -> &Option<OpenSearchPartitionInstanceType>
OpenSearch Service instance type of the dedicated master nodes in the cluster.
sourcepub fn dedicated_master_count(self, input: i32) -> Self
pub fn dedicated_master_count(self, input: i32) -> Self
Number of dedicated master nodes in the cluster. This number must be greater than 2 and not 4, otherwise you receive a validation exception.
sourcepub fn set_dedicated_master_count(self, input: Option<i32>) -> Self
pub fn set_dedicated_master_count(self, input: Option<i32>) -> Self
Number of dedicated master nodes in the cluster. This number must be greater than 2 and not 4, otherwise you receive a validation exception.
sourcepub fn get_dedicated_master_count(&self) -> &Option<i32>
pub fn get_dedicated_master_count(&self) -> &Option<i32>
Number of dedicated master nodes in the cluster. This number must be greater than 2 and not 4, otherwise you receive a validation exception.
sourcepub fn warm_enabled(self, input: bool) -> Self
pub fn warm_enabled(self, input: bool) -> Self
Whether to enable warm storage for the cluster.
sourcepub fn set_warm_enabled(self, input: Option<bool>) -> Self
pub fn set_warm_enabled(self, input: Option<bool>) -> Self
Whether to enable warm storage for the cluster.
sourcepub fn get_warm_enabled(&self) -> &Option<bool>
pub fn get_warm_enabled(&self) -> &Option<bool>
Whether to enable warm storage for the cluster.
sourcepub fn warm_type(self, input: OpenSearchWarmPartitionInstanceType) -> Self
pub fn warm_type(self, input: OpenSearchWarmPartitionInstanceType) -> Self
The instance type for the cluster's warm nodes.
sourcepub fn set_warm_type(
self,
input: Option<OpenSearchWarmPartitionInstanceType>
) -> Self
pub fn set_warm_type( self, input: Option<OpenSearchWarmPartitionInstanceType> ) -> Self
The instance type for the cluster's warm nodes.
sourcepub fn get_warm_type(&self) -> &Option<OpenSearchWarmPartitionInstanceType>
pub fn get_warm_type(&self) -> &Option<OpenSearchWarmPartitionInstanceType>
The instance type for the cluster's warm nodes.
sourcepub fn warm_count(self, input: i32) -> Self
pub fn warm_count(self, input: i32) -> Self
The number of warm nodes in the cluster.
sourcepub fn set_warm_count(self, input: Option<i32>) -> Self
pub fn set_warm_count(self, input: Option<i32>) -> Self
The number of warm nodes in the cluster.
sourcepub fn get_warm_count(&self) -> &Option<i32>
pub fn get_warm_count(&self) -> &Option<i32>
The number of warm nodes in the cluster.
sourcepub fn cold_storage_options(self, input: ColdStorageOptions) -> Self
pub fn cold_storage_options(self, input: ColdStorageOptions) -> Self
Container for cold storage configuration options.
sourcepub fn set_cold_storage_options(self, input: Option<ColdStorageOptions>) -> Self
pub fn set_cold_storage_options(self, input: Option<ColdStorageOptions>) -> Self
Container for cold storage configuration options.
sourcepub fn get_cold_storage_options(&self) -> &Option<ColdStorageOptions>
pub fn get_cold_storage_options(&self) -> &Option<ColdStorageOptions>
Container for cold storage configuration options.
sourcepub fn multi_az_with_standby_enabled(self, input: bool) -> Self
pub fn multi_az_with_standby_enabled(self, input: bool) -> Self
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.
sourcepub fn set_multi_az_with_standby_enabled(self, input: Option<bool>) -> Self
pub fn set_multi_az_with_standby_enabled(self, input: Option<bool>) -> Self
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.
sourcepub fn get_multi_az_with_standby_enabled(&self) -> &Option<bool>
pub fn get_multi_az_with_standby_enabled(&self) -> &Option<bool>
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.
sourcepub fn build(self) -> ClusterConfig
pub fn build(self) -> ClusterConfig
Consumes the builder and constructs a ClusterConfig
.
Trait Implementations§
source§impl Clone for ClusterConfigBuilder
impl Clone for ClusterConfigBuilder
source§fn clone(&self) -> ClusterConfigBuilder
fn clone(&self) -> ClusterConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClusterConfigBuilder
impl Debug for ClusterConfigBuilder
source§impl Default for ClusterConfigBuilder
impl Default for ClusterConfigBuilder
source§fn default() -> ClusterConfigBuilder
fn default() -> ClusterConfigBuilder
source§impl PartialEq for ClusterConfigBuilder
impl PartialEq for ClusterConfigBuilder
source§fn eq(&self, other: &ClusterConfigBuilder) -> bool
fn eq(&self, other: &ClusterConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.