#[non_exhaustive]pub struct AutoRollbackConfigurationBuilder { /* private fields */ }
Expand description
A builder for AutoRollbackConfiguration
.
Implementations§
source§impl AutoRollbackConfigurationBuilder
impl AutoRollbackConfigurationBuilder
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Indicates whether a defined automatic rollback configuration is currently enabled.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Indicates whether a defined automatic rollback configuration is currently enabled.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
Indicates whether a defined automatic rollback configuration is currently enabled.
sourcepub fn events(self, input: AutoRollbackEvent) -> Self
pub fn events(self, input: AutoRollbackEvent) -> Self
Appends an item to events
.
To override the contents of this collection use set_events
.
The event type or types that trigger a rollback.
sourcepub fn set_events(self, input: Option<Vec<AutoRollbackEvent>>) -> Self
pub fn set_events(self, input: Option<Vec<AutoRollbackEvent>>) -> Self
The event type or types that trigger a rollback.
sourcepub fn get_events(&self) -> &Option<Vec<AutoRollbackEvent>>
pub fn get_events(&self) -> &Option<Vec<AutoRollbackEvent>>
The event type or types that trigger a rollback.
sourcepub fn build(self) -> AutoRollbackConfiguration
pub fn build(self) -> AutoRollbackConfiguration
Consumes the builder and constructs a AutoRollbackConfiguration
.
Trait Implementations§
source§impl Clone for AutoRollbackConfigurationBuilder
impl Clone for AutoRollbackConfigurationBuilder
source§fn clone(&self) -> AutoRollbackConfigurationBuilder
fn clone(&self) -> AutoRollbackConfigurationBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for AutoRollbackConfigurationBuilder
impl Default for AutoRollbackConfigurationBuilder
source§fn default() -> AutoRollbackConfigurationBuilder
fn default() -> AutoRollbackConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for AutoRollbackConfigurationBuilder
impl PartialEq for AutoRollbackConfigurationBuilder
source§fn eq(&self, other: &AutoRollbackConfigurationBuilder) -> bool
fn eq(&self, other: &AutoRollbackConfigurationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AutoRollbackConfigurationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for AutoRollbackConfigurationBuilder
impl Send for AutoRollbackConfigurationBuilder
impl Sync for AutoRollbackConfigurationBuilder
impl Unpin for AutoRollbackConfigurationBuilder
impl UnwindSafe for AutoRollbackConfigurationBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.