Struct aws_sdk_batch::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 set_job_id(self, input: Option<String>) -> Self
pub fn set_job_id(self, input: Option<String>) -> Self
The Batch job ID of the job to cancel.
sourcepub fn get_job_id(&self) -> &Option<String>
pub fn get_job_id(&self) -> &Option<String>
The Batch job ID of the job to cancel.
sourcepub fn reason(self, input: impl Into<String>) -> Self
pub fn reason(self, input: impl Into<String>) -> Self
A message to attach to the job that explains the reason for canceling it. This message is returned by future DescribeJobs
operations on the job. This message is also recorded in the Batch activity logs.
sourcepub fn set_reason(self, input: Option<String>) -> Self
pub fn set_reason(self, input: Option<String>) -> Self
A message to attach to the job that explains the reason for canceling it. This message is returned by future DescribeJobs
operations on the job. This message is also recorded in the Batch activity logs.
sourcepub fn get_reason(&self) -> &Option<String>
pub fn get_reason(&self) -> &Option<String>
A message to attach to the job that explains the reason for canceling it. This message is returned by future DescribeJobs
operations on the job. This message is also recorded in the Batch activity logs.
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<CancelJobInputBuilder> for CancelJobInputBuilder
impl PartialEq<CancelJobInputBuilder> 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 ==
.