#[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 Freeze for AutoRollbackConfigurationBuilder
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.