#[non_exhaustive]pub struct IoTJobAbortCriteriaBuilder { /* private fields */ }
Expand description
A builder for IoTJobAbortCriteria
.
Implementations§
source§impl IoTJobAbortCriteriaBuilder
impl IoTJobAbortCriteriaBuilder
sourcepub fn failure_type(self, input: IoTJobExecutionFailureType) -> Self
pub fn failure_type(self, input: IoTJobExecutionFailureType) -> Self
The type of job deployment failure that can cancel a job.
This field is required.sourcepub fn set_failure_type(self, input: Option<IoTJobExecutionFailureType>) -> Self
pub fn set_failure_type(self, input: Option<IoTJobExecutionFailureType>) -> Self
The type of job deployment failure that can cancel a job.
sourcepub fn get_failure_type(&self) -> &Option<IoTJobExecutionFailureType>
pub fn get_failure_type(&self) -> &Option<IoTJobExecutionFailureType>
The type of job deployment failure that can cancel a job.
sourcepub fn action(self, input: IoTJobAbortAction) -> Self
pub fn action(self, input: IoTJobAbortAction) -> Self
The action to perform when the criteria are met.
This field is required.sourcepub fn set_action(self, input: Option<IoTJobAbortAction>) -> Self
pub fn set_action(self, input: Option<IoTJobAbortAction>) -> Self
The action to perform when the criteria are met.
sourcepub fn get_action(&self) -> &Option<IoTJobAbortAction>
pub fn get_action(&self) -> &Option<IoTJobAbortAction>
The action to perform when the criteria are met.
sourcepub fn threshold_percentage(self, input: f64) -> Self
pub fn threshold_percentage(self, input: f64) -> Self
The minimum percentage of failureType
failures that occur before the job can cancel.
This parameter supports up to two digits after the decimal (for example, you can specify 10.9
or 10.99
, but not 10.999
).
sourcepub fn set_threshold_percentage(self, input: Option<f64>) -> Self
pub fn set_threshold_percentage(self, input: Option<f64>) -> Self
The minimum percentage of failureType
failures that occur before the job can cancel.
This parameter supports up to two digits after the decimal (for example, you can specify 10.9
or 10.99
, but not 10.999
).
sourcepub fn get_threshold_percentage(&self) -> &Option<f64>
pub fn get_threshold_percentage(&self) -> &Option<f64>
The minimum percentage of failureType
failures that occur before the job can cancel.
This parameter supports up to two digits after the decimal (for example, you can specify 10.9
or 10.99
, but not 10.999
).
sourcepub fn min_number_of_executed_things(self, input: i32) -> Self
pub fn min_number_of_executed_things(self, input: i32) -> Self
The minimum number of things that receive the configuration before the job can cancel.
This field is required.sourcepub fn set_min_number_of_executed_things(self, input: Option<i32>) -> Self
pub fn set_min_number_of_executed_things(self, input: Option<i32>) -> Self
The minimum number of things that receive the configuration before the job can cancel.
sourcepub fn get_min_number_of_executed_things(&self) -> &Option<i32>
pub fn get_min_number_of_executed_things(&self) -> &Option<i32>
The minimum number of things that receive the configuration before the job can cancel.
sourcepub fn build(self) -> Result<IoTJobAbortCriteria, BuildError>
pub fn build(self) -> Result<IoTJobAbortCriteria, BuildError>
Consumes the builder and constructs a IoTJobAbortCriteria
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for IoTJobAbortCriteriaBuilder
impl Clone for IoTJobAbortCriteriaBuilder
source§fn clone(&self) -> IoTJobAbortCriteriaBuilder
fn clone(&self) -> IoTJobAbortCriteriaBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IoTJobAbortCriteriaBuilder
impl Debug for IoTJobAbortCriteriaBuilder
source§impl Default for IoTJobAbortCriteriaBuilder
impl Default for IoTJobAbortCriteriaBuilder
source§fn default() -> IoTJobAbortCriteriaBuilder
fn default() -> IoTJobAbortCriteriaBuilder
source§impl PartialEq for IoTJobAbortCriteriaBuilder
impl PartialEq for IoTJobAbortCriteriaBuilder
source§fn eq(&self, other: &IoTJobAbortCriteriaBuilder) -> bool
fn eq(&self, other: &IoTJobAbortCriteriaBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IoTJobAbortCriteriaBuilder
Auto Trait Implementations§
impl Freeze for IoTJobAbortCriteriaBuilder
impl RefUnwindSafe for IoTJobAbortCriteriaBuilder
impl Send for IoTJobAbortCriteriaBuilder
impl Sync for IoTJobAbortCriteriaBuilder
impl Unpin for IoTJobAbortCriteriaBuilder
impl UnwindSafe for IoTJobAbortCriteriaBuilder
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> 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