#[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 ==
.