#[non_exhaustive]pub struct AutoRollbackConfigBuilder { /* private fields */ }
Expand description
A builder for AutoRollbackConfig
.
Implementations§
source§impl AutoRollbackConfigBuilder
impl AutoRollbackConfigBuilder
sourcepub fn alarms(self, input: Alarm) -> Self
pub fn alarms(self, input: Alarm) -> Self
Appends an item to alarms
.
To override the contents of this collection use set_alarms
.
List of CloudWatch alarms in your account that are configured to monitor metrics on an endpoint. If any alarms are tripped during a deployment, SageMaker rolls back the deployment.
sourcepub fn set_alarms(self, input: Option<Vec<Alarm>>) -> Self
pub fn set_alarms(self, input: Option<Vec<Alarm>>) -> Self
List of CloudWatch alarms in your account that are configured to monitor metrics on an endpoint. If any alarms are tripped during a deployment, SageMaker rolls back the deployment.
sourcepub fn get_alarms(&self) -> &Option<Vec<Alarm>>
pub fn get_alarms(&self) -> &Option<Vec<Alarm>>
List of CloudWatch alarms in your account that are configured to monitor metrics on an endpoint. If any alarms are tripped during a deployment, SageMaker rolls back the deployment.
sourcepub fn build(self) -> AutoRollbackConfig
pub fn build(self) -> AutoRollbackConfig
Consumes the builder and constructs a AutoRollbackConfig
.
Trait Implementations§
source§impl Clone for AutoRollbackConfigBuilder
impl Clone for AutoRollbackConfigBuilder
source§fn clone(&self) -> AutoRollbackConfigBuilder
fn clone(&self) -> AutoRollbackConfigBuilder
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 Debug for AutoRollbackConfigBuilder
impl Debug for AutoRollbackConfigBuilder
source§impl Default for AutoRollbackConfigBuilder
impl Default for AutoRollbackConfigBuilder
source§fn default() -> AutoRollbackConfigBuilder
fn default() -> AutoRollbackConfigBuilder
Returns the “default value” for a type. Read more
impl StructuralPartialEq for AutoRollbackConfigBuilder
Auto Trait Implementations§
impl Freeze for AutoRollbackConfigBuilder
impl RefUnwindSafe for AutoRollbackConfigBuilder
impl Send for AutoRollbackConfigBuilder
impl Sync for AutoRollbackConfigBuilder
impl Unpin for AutoRollbackConfigBuilder
impl UnwindSafe for AutoRollbackConfigBuilder
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> 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)
🔬This is a nightly-only experimental API. (
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>
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.