pub struct CancelJobFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CancelJob
.
Cancels the specified job. You can only cancel a job before its JobState
value changes to PreparingAppliance
. Requesting the ListJobs
or DescribeJob
action returns a job's JobState
as part of the response element data returned.
Implementations§
source§impl CancelJobFluentBuilder
impl CancelJobFluentBuilder
sourcepub fn as_input(&self) -> &CancelJobInputBuilder
pub fn as_input(&self) -> &CancelJobInputBuilder
Access the CancelJob as a reference.
sourcepub async fn send(
self
) -> Result<CancelJobOutput, SdkError<CancelJobError, HttpResponse>>
pub async fn send( self ) -> Result<CancelJobOutput, SdkError<CancelJobError, 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<CancelJobOutput, CancelJobError, Self>
pub fn customize( self ) -> CustomizableOperation<CancelJobOutput, CancelJobError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn job_id(self, input: impl Into<String>) -> Self
pub fn job_id(self, input: impl Into<String>) -> Self
The 39-character job ID for the job that you want to cancel, for example JID123e4567-e89b-12d3-a456-426655440000
.
sourcepub fn set_job_id(self, input: Option<String>) -> Self
pub fn set_job_id(self, input: Option<String>) -> Self
The 39-character job ID for the job that you want to cancel, for example JID123e4567-e89b-12d3-a456-426655440000
.
sourcepub fn get_job_id(&self) -> &Option<String>
pub fn get_job_id(&self) -> &Option<String>
The 39-character job ID for the job that you want to cancel, for example JID123e4567-e89b-12d3-a456-426655440000
.
Trait Implementations§
source§impl Clone for CancelJobFluentBuilder
impl Clone for CancelJobFluentBuilder
source§fn clone(&self) -> CancelJobFluentBuilder
fn clone(&self) -> CancelJobFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more