Struct aws_sdk_iotjobsdataplane::operation::start_next_pending_job_execution::builders::StartNextPendingJobExecutionFluentBuilder
source · pub struct StartNextPendingJobExecutionFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to StartNextPendingJobExecution
.
Gets and starts the next pending (status IN_PROGRESS or QUEUED) job execution for a thing.
Implementations§
source§impl StartNextPendingJobExecutionFluentBuilder
impl StartNextPendingJobExecutionFluentBuilder
sourcepub fn as_input(&self) -> &StartNextPendingJobExecutionInputBuilder
pub fn as_input(&self) -> &StartNextPendingJobExecutionInputBuilder
Access the StartNextPendingJobExecution as a reference.
sourcepub async fn send(
self
) -> Result<StartNextPendingJobExecutionOutput, SdkError<StartNextPendingJobExecutionError, HttpResponse>>
pub async fn send( self ) -> Result<StartNextPendingJobExecutionOutput, SdkError<StartNextPendingJobExecutionError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<StartNextPendingJobExecutionOutput, StartNextPendingJobExecutionError, Self>
pub fn customize( self ) -> CustomizableOperation<StartNextPendingJobExecutionOutput, StartNextPendingJobExecutionError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn thing_name(self, input: impl Into<String>) -> Self
pub fn thing_name(self, input: impl Into<String>) -> Self
The name of the thing associated with the device.
sourcepub fn set_thing_name(self, input: Option<String>) -> Self
pub fn set_thing_name(self, input: Option<String>) -> Self
The name of the thing associated with the device.
sourcepub fn get_thing_name(&self) -> &Option<String>
pub fn get_thing_name(&self) -> &Option<String>
The name of the thing associated with the device.
sourcepub fn status_details(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn status_details(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to statusDetails
.
To override the contents of this collection use set_status_details
.
A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged.
sourcepub fn set_status_details(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_status_details(self, input: Option<HashMap<String, String>>) -> Self
A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged.
sourcepub fn get_status_details(&self) -> &Option<HashMap<String, String>>
pub fn get_status_details(&self) -> &Option<HashMap<String, String>>
A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged.
sourcepub fn step_timeout_in_minutes(self, input: i64) -> Self
pub fn step_timeout_in_minutes(self, input: i64) -> Self
Specifies the amount of time this device has to finish execution of this job. If the job execution status is not set to a terminal state before this timer expires, or before the timer is reset (by calling UpdateJobExecution
, setting the status to IN_PROGRESS
and specifying a new timeout value in field stepTimeoutInMinutes
) the job execution status will be automatically set to TIMED_OUT
. Note that setting this timeout has no effect on that job execution timeout which may have been specified when the job was created (CreateJob
using field timeoutConfig
).
sourcepub fn set_step_timeout_in_minutes(self, input: Option<i64>) -> Self
pub fn set_step_timeout_in_minutes(self, input: Option<i64>) -> Self
Specifies the amount of time this device has to finish execution of this job. If the job execution status is not set to a terminal state before this timer expires, or before the timer is reset (by calling UpdateJobExecution
, setting the status to IN_PROGRESS
and specifying a new timeout value in field stepTimeoutInMinutes
) the job execution status will be automatically set to TIMED_OUT
. Note that setting this timeout has no effect on that job execution timeout which may have been specified when the job was created (CreateJob
using field timeoutConfig
).
sourcepub fn get_step_timeout_in_minutes(&self) -> &Option<i64>
pub fn get_step_timeout_in_minutes(&self) -> &Option<i64>
Specifies the amount of time this device has to finish execution of this job. If the job execution status is not set to a terminal state before this timer expires, or before the timer is reset (by calling UpdateJobExecution
, setting the status to IN_PROGRESS
and specifying a new timeout value in field stepTimeoutInMinutes
) the job execution status will be automatically set to TIMED_OUT
. Note that setting this timeout has no effect on that job execution timeout which may have been specified when the job was created (CreateJob
using field timeoutConfig
).
Trait Implementations§
source§impl Clone for StartNextPendingJobExecutionFluentBuilder
impl Clone for StartNextPendingJobExecutionFluentBuilder
source§fn clone(&self) -> StartNextPendingJobExecutionFluentBuilder
fn clone(&self) -> StartNextPendingJobExecutionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for StartNextPendingJobExecutionFluentBuilder
impl !RefUnwindSafe for StartNextPendingJobExecutionFluentBuilder
impl Send for StartNextPendingJobExecutionFluentBuilder
impl Sync for StartNextPendingJobExecutionFluentBuilder
impl Unpin for StartNextPendingJobExecutionFluentBuilder
impl !UnwindSafe for StartNextPendingJobExecutionFluentBuilder
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