1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateJobExecution`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`job_id(impl Into<String>)`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::job_id) / [`set_job_id(Option<String>)`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::set_job_id):<br>required: **true**<br><p>The unique identifier assigned to this job when it was created.</p><br>
    ///   - [`thing_name(impl Into<String>)`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::thing_name) / [`set_thing_name(Option<String>)`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::set_thing_name):<br>required: **true**<br><p>The name of the thing associated with the device.</p><br>
    ///   - [`status(JobExecutionStatus)`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::status) / [`set_status(Option<JobExecutionStatus>)`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::set_status):<br>required: **true**<br><p>The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED). This must be specified on every update.</p><br>
    ///   - [`status_details(impl Into<String>, impl Into<String>)`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::status_details) / [`set_status_details(Option<HashMap::<String, String>>)`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::set_status_details):<br>required: **false**<br><p>Optional. A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged.</p><br>
    ///   - [`step_timeout_in_minutes(i64)`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::step_timeout_in_minutes) / [`set_step_timeout_in_minutes(Option<i64>)`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::set_step_timeout_in_minutes):<br>required: **false**<br><p>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 again calling <code>UpdateJobExecution</code>, setting the status to <code>IN_PROGRESS</code> and specifying a new timeout value in this field) the job execution status will be automatically set to <code>TIMED_OUT</code>. Note that setting or resetting this timeout has no effect on that job execution timeout which may have been specified when the job was created (<code>CreateJob</code> using field <code>timeoutConfig</code>).</p><br>
    ///   - [`expected_version(i64)`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::expected_version) / [`set_expected_version(Option<i64>)`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::set_expected_version):<br>required: **false**<br><p>Optional. The expected current version of the job execution. Each time you update the job execution, its version is incremented. If the version of the job execution stored in Jobs does not match, the update is rejected with a VersionMismatch error, and an ErrorResponse that contains the current job execution status data is returned. (This makes it unnecessary to perform a separate DescribeJobExecution request in order to obtain the job execution status data.)</p><br>
    ///   - [`include_job_execution_state(bool)`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::include_job_execution_state) / [`set_include_job_execution_state(Option<bool>)`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::set_include_job_execution_state):<br>required: **false**<br><p>Optional. When included and set to true, the response contains the JobExecutionState data. The default is false.</p><br>
    ///   - [`include_job_document(bool)`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::include_job_document) / [`set_include_job_document(Option<bool>)`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::set_include_job_document):<br>required: **false**<br><p>Optional. When set to true, the response contains the job document. The default is false.</p><br>
    ///   - [`execution_number(i64)`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::execution_number) / [`set_execution_number(Option<i64>)`](crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::set_execution_number):<br>required: **false**<br><p>Optional. A number that identifies a particular job execution on a particular device.</p><br>
    /// - On success, responds with [`UpdateJobExecutionOutput`](crate::operation::update_job_execution::UpdateJobExecutionOutput) with field(s):
    ///   - [`execution_state(Option<JobExecutionState>)`](crate::operation::update_job_execution::UpdateJobExecutionOutput::execution_state): <p>A JobExecutionState object.</p>
    ///   - [`job_document(Option<String>)`](crate::operation::update_job_execution::UpdateJobExecutionOutput::job_document): <p>The contents of the Job Documents.</p>
    /// - On failure, responds with [`SdkError<UpdateJobExecutionError>`](crate::operation::update_job_execution::UpdateJobExecutionError)
    pub fn update_job_execution(&self) -> crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder {
        crate::operation::update_job_execution::builders::UpdateJobExecutionFluentBuilder::new(self.handle.clone())
    }
}