Struct aws_sdk_iot::operation::cancel_job::builders::CancelJobInputBuilder
source · #[non_exhaustive]pub struct CancelJobInputBuilder { /* private fields */ }Expand description
A builder for CancelJobInput.
Implementations§
source§impl CancelJobInputBuilder
impl CancelJobInputBuilder
sourcepub fn job_id(self, input: impl Into<String>) -> Self
pub fn job_id(self, input: impl Into<String>) -> Self
The unique identifier you assigned to this job when it was created.
This field is required.sourcepub fn set_job_id(self, input: Option<String>) -> Self
pub fn set_job_id(self, input: Option<String>) -> Self
The unique identifier you assigned to this job when it was created.
sourcepub fn get_job_id(&self) -> &Option<String>
pub fn get_job_id(&self) -> &Option<String>
The unique identifier you assigned to this job when it was created.
sourcepub fn reason_code(self, input: impl Into<String>) -> Self
pub fn reason_code(self, input: impl Into<String>) -> Self
(Optional)A reason code string that explains why the job was canceled.
sourcepub fn set_reason_code(self, input: Option<String>) -> Self
pub fn set_reason_code(self, input: Option<String>) -> Self
(Optional)A reason code string that explains why the job was canceled.
sourcepub fn get_reason_code(&self) -> &Option<String>
pub fn get_reason_code(&self) -> &Option<String>
(Optional)A reason code string that explains why the job was canceled.
sourcepub fn comment(self, input: impl Into<String>) -> Self
pub fn comment(self, input: impl Into<String>) -> Self
An optional comment string describing why the job was canceled.
sourcepub fn set_comment(self, input: Option<String>) -> Self
pub fn set_comment(self, input: Option<String>) -> Self
An optional comment string describing why the job was canceled.
sourcepub fn get_comment(&self) -> &Option<String>
pub fn get_comment(&self) -> &Option<String>
An optional comment string describing why the job was canceled.
sourcepub fn force(self, input: bool) -> Self
pub fn force(self, input: bool) -> Self
(Optional) If true job executions with status "IN_PROGRESS" and "QUEUED" are canceled, otherwise only job executions with status "QUEUED" are canceled. The default is false.
Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.
sourcepub fn set_force(self, input: Option<bool>) -> Self
pub fn set_force(self, input: Option<bool>) -> Self
(Optional) If true job executions with status "IN_PROGRESS" and "QUEUED" are canceled, otherwise only job executions with status "QUEUED" are canceled. The default is false.
Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.
sourcepub fn get_force(&self) -> &Option<bool>
pub fn get_force(&self) -> &Option<bool>
(Optional) If true job executions with status "IN_PROGRESS" and "QUEUED" are canceled, otherwise only job executions with status "QUEUED" are canceled. The default is false.
Canceling a job which is "IN_PROGRESS", will cause a device which is executing the job to be unable to update the job execution status. Use caution and ensure that each device executing a job which is canceled is able to recover to a valid state.
sourcepub fn build(self) -> Result<CancelJobInput, BuildError>
pub fn build(self) -> Result<CancelJobInput, BuildError>
Consumes the builder and constructs a CancelJobInput.
source§impl CancelJobInputBuilder
impl CancelJobInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CancelJobOutput, SdkError<CancelJobError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CancelJobOutput, SdkError<CancelJobError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CancelJobInputBuilder
impl Clone for CancelJobInputBuilder
source§fn clone(&self) -> CancelJobInputBuilder
fn clone(&self) -> CancelJobInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CancelJobInputBuilder
impl Debug for CancelJobInputBuilder
source§impl Default for CancelJobInputBuilder
impl Default for CancelJobInputBuilder
source§fn default() -> CancelJobInputBuilder
fn default() -> CancelJobInputBuilder
source§impl PartialEq for CancelJobInputBuilder
impl PartialEq for CancelJobInputBuilder
source§fn eq(&self, other: &CancelJobInputBuilder) -> bool
fn eq(&self, other: &CancelJobInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CancelJobInputBuilder
Auto Trait Implementations§
impl Freeze for CancelJobInputBuilder
impl RefUnwindSafe for CancelJobInputBuilder
impl Send for CancelJobInputBuilder
impl Sync for CancelJobInputBuilder
impl Unpin for CancelJobInputBuilder
impl UnwindSafe for CancelJobInputBuilder
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> 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)
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>
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