#[non_exhaustive]pub struct OffPeakWindowOptionsBuilder { /* private fields */ }
Expand description
A builder for OffPeakWindowOptions
.
Implementations§
source§impl OffPeakWindowOptionsBuilder
impl OffPeakWindowOptionsBuilder
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Whether to enable an off-peak window.
This option is only available when modifying a domain created prior to February 16, 2023, not when creating a new domain. All domains created after this date have the off-peak window enabled by default. You can't disable the off-peak window after it's enabled for a domain.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Whether to enable an off-peak window.
This option is only available when modifying a domain created prior to February 16, 2023, not when creating a new domain. All domains created after this date have the off-peak window enabled by default. You can't disable the off-peak window after it's enabled for a domain.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
Whether to enable an off-peak window.
This option is only available when modifying a domain created prior to February 16, 2023, not when creating a new domain. All domains created after this date have the off-peak window enabled by default. You can't disable the off-peak window after it's enabled for a domain.
sourcepub fn off_peak_window(self, input: OffPeakWindow) -> Self
pub fn off_peak_window(self, input: OffPeakWindow) -> Self
Off-peak window settings for the domain.
sourcepub fn set_off_peak_window(self, input: Option<OffPeakWindow>) -> Self
pub fn set_off_peak_window(self, input: Option<OffPeakWindow>) -> Self
Off-peak window settings for the domain.
sourcepub fn get_off_peak_window(&self) -> &Option<OffPeakWindow>
pub fn get_off_peak_window(&self) -> &Option<OffPeakWindow>
Off-peak window settings for the domain.
sourcepub fn build(self) -> OffPeakWindowOptions
pub fn build(self) -> OffPeakWindowOptions
Consumes the builder and constructs a OffPeakWindowOptions
.
Trait Implementations§
source§impl Clone for OffPeakWindowOptionsBuilder
impl Clone for OffPeakWindowOptionsBuilder
source§fn clone(&self) -> OffPeakWindowOptionsBuilder
fn clone(&self) -> OffPeakWindowOptionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OffPeakWindowOptionsBuilder
impl Debug for OffPeakWindowOptionsBuilder
source§impl Default for OffPeakWindowOptionsBuilder
impl Default for OffPeakWindowOptionsBuilder
source§fn default() -> OffPeakWindowOptionsBuilder
fn default() -> OffPeakWindowOptionsBuilder
source§impl PartialEq for OffPeakWindowOptionsBuilder
impl PartialEq for OffPeakWindowOptionsBuilder
source§fn eq(&self, other: &OffPeakWindowOptionsBuilder) -> bool
fn eq(&self, other: &OffPeakWindowOptionsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OffPeakWindowOptionsBuilder
Auto Trait Implementations§
impl Freeze for OffPeakWindowOptionsBuilder
impl RefUnwindSafe for OffPeakWindowOptionsBuilder
impl Send for OffPeakWindowOptionsBuilder
impl Sync for OffPeakWindowOptionsBuilder
impl Unpin for OffPeakWindowOptionsBuilder
impl UnwindSafe for OffPeakWindowOptionsBuilder
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