#[non_exhaustive]pub struct TerminateJobInputBuilder { /* private fields */ }
Expand description
A builder for TerminateJobInput
.
Implementations§
source§impl TerminateJobInputBuilder
impl TerminateJobInputBuilder
sourcepub fn job_id(self, input: impl Into<String>) -> Self
pub fn job_id(self, input: impl Into<String>) -> Self
The Batch job ID of the job to terminate.
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 terminate.
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 build(self) -> Result<TerminateJobInput, BuildError>
pub fn build(self) -> Result<TerminateJobInput, BuildError>
Consumes the builder and constructs a TerminateJobInput
.
Trait Implementations§
source§impl Clone for TerminateJobInputBuilder
impl Clone for TerminateJobInputBuilder
source§fn clone(&self) -> TerminateJobInputBuilder
fn clone(&self) -> TerminateJobInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TerminateJobInputBuilder
impl Debug for TerminateJobInputBuilder
source§impl Default for TerminateJobInputBuilder
impl Default for TerminateJobInputBuilder
source§fn default() -> TerminateJobInputBuilder
fn default() -> TerminateJobInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<TerminateJobInputBuilder> for TerminateJobInputBuilder
impl PartialEq<TerminateJobInputBuilder> for TerminateJobInputBuilder
source§fn eq(&self, other: &TerminateJobInputBuilder) -> bool
fn eq(&self, other: &TerminateJobInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.