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 ==
.impl StructuralPartialEq for AutoTuneOptionsBuilder
Auto Trait Implementations§
impl Freeze for AutoTuneOptionsBuilder
impl RefUnwindSafe for AutoTuneOptionsBuilder
impl Send for AutoTuneOptionsBuilder
impl Sync for AutoTuneOptionsBuilder
impl Unpin for AutoTuneOptionsBuilder
impl UnwindSafe for AutoTuneOptionsBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more