Struct aws_sdk_opensearch::types::builders::AutoTuneOptionsBuilder
source · #[non_exhaustive]pub struct AutoTuneOptionsBuilder { /* private fields */ }
Expand description
A builder for AutoTuneOptions
.
Implementations§
source§impl AutoTuneOptionsBuilder
impl AutoTuneOptionsBuilder
sourcepub fn desired_state(self, input: AutoTuneDesiredState) -> Self
pub fn desired_state(self, input: AutoTuneDesiredState) -> Self
Whether Auto-Tune is enabled or disabled.
sourcepub fn set_desired_state(self, input: Option<AutoTuneDesiredState>) -> Self
pub fn set_desired_state(self, input: Option<AutoTuneDesiredState>) -> Self
Whether Auto-Tune is enabled or disabled.
sourcepub fn get_desired_state(&self) -> &Option<AutoTuneDesiredState>
pub fn get_desired_state(&self) -> &Option<AutoTuneDesiredState>
Whether Auto-Tune is enabled or disabled.
sourcepub fn rollback_on_disable(self, input: RollbackOnDisable) -> Self
pub fn rollback_on_disable(self, input: RollbackOnDisable) -> Self
When disabling Auto-Tune, specify NO_ROLLBACK
to retain all prior Auto-Tune settings or DEFAULT_ROLLBACK
to revert to the OpenSearch Service defaults. If you specify DEFAULT_ROLLBACK
, you must include a MaintenanceSchedule
in the request. Otherwise, OpenSearch Service is unable to perform the rollback.
sourcepub fn set_rollback_on_disable(self, input: Option<RollbackOnDisable>) -> Self
pub fn set_rollback_on_disable(self, input: Option<RollbackOnDisable>) -> Self
When disabling Auto-Tune, specify NO_ROLLBACK
to retain all prior Auto-Tune settings or DEFAULT_ROLLBACK
to revert to the OpenSearch Service defaults. If you specify DEFAULT_ROLLBACK
, you must include a MaintenanceSchedule
in the request. Otherwise, OpenSearch Service is unable to perform the rollback.
sourcepub fn get_rollback_on_disable(&self) -> &Option<RollbackOnDisable>
pub fn get_rollback_on_disable(&self) -> &Option<RollbackOnDisable>
When disabling Auto-Tune, specify NO_ROLLBACK
to retain all prior Auto-Tune settings or DEFAULT_ROLLBACK
to revert to the OpenSearch Service defaults. If you specify DEFAULT_ROLLBACK
, you must include a MaintenanceSchedule
in the request. Otherwise, OpenSearch Service is unable to perform the rollback.
sourcepub fn maintenance_schedules(self, input: AutoTuneMaintenanceSchedule) -> Self
pub fn maintenance_schedules(self, input: AutoTuneMaintenanceSchedule) -> Self
Appends an item to maintenance_schedules
.
To override the contents of this collection use set_maintenance_schedules
.
DEPRECATED. Use off-peak window instead.
A list of maintenance schedules during which Auto-Tune can deploy changes.
sourcepub fn set_maintenance_schedules(
self,
input: Option<Vec<AutoTuneMaintenanceSchedule>>
) -> Self
pub fn set_maintenance_schedules( self, input: Option<Vec<AutoTuneMaintenanceSchedule>> ) -> Self
DEPRECATED. Use off-peak window instead.
A list of maintenance schedules during which Auto-Tune can deploy changes.
sourcepub fn get_maintenance_schedules(
&self
) -> &Option<Vec<AutoTuneMaintenanceSchedule>>
pub fn get_maintenance_schedules( &self ) -> &Option<Vec<AutoTuneMaintenanceSchedule>>
DEPRECATED. Use off-peak window instead.
A list of maintenance schedules during which Auto-Tune can deploy changes.
sourcepub fn use_off_peak_window(self, input: bool) -> Self
pub fn use_off_peak_window(self, input: bool) -> Self
Whether to use the domain's off-peak window to deploy configuration changes on the domain rather than a maintenance schedule.
sourcepub fn set_use_off_peak_window(self, input: Option<bool>) -> Self
pub fn set_use_off_peak_window(self, input: Option<bool>) -> Self
Whether to use the domain's off-peak window to deploy configuration changes on the domain rather than a maintenance schedule.
sourcepub fn get_use_off_peak_window(&self) -> &Option<bool>
pub fn get_use_off_peak_window(&self) -> &Option<bool>
Whether to use the domain's off-peak window to deploy configuration changes on the domain rather than a maintenance schedule.
sourcepub fn build(self) -> AutoTuneOptions
pub fn build(self) -> AutoTuneOptions
Consumes the builder and constructs a AutoTuneOptions
.
Trait Implementations§
source§impl Clone for AutoTuneOptionsBuilder
impl Clone for AutoTuneOptionsBuilder
source§fn clone(&self) -> AutoTuneOptionsBuilder
fn clone(&self) -> AutoTuneOptionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AutoTuneOptionsBuilder
impl Debug for AutoTuneOptionsBuilder
source§impl Default for AutoTuneOptionsBuilder
impl Default for AutoTuneOptionsBuilder
source§fn default() -> AutoTuneOptionsBuilder
fn default() -> AutoTuneOptionsBuilder
source§impl PartialEq for AutoTuneOptionsBuilder
impl PartialEq for AutoTuneOptionsBuilder
source§fn eq(&self, other: &AutoTuneOptionsBuilder) -> bool
fn eq(&self, other: &AutoTuneOptionsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.