#[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 get_job_id(&self) -> &Option<String>
pub fn get_job_id(&self) -> &Option<String>
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 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<TerminateJobInput, BuildError>
pub fn build(self) -> Result<TerminateJobInput, BuildError>
Consumes the builder and constructs a TerminateJobInput
.
source§impl TerminateJobInputBuilder
impl TerminateJobInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<TerminateJobOutput, SdkError<TerminateJobError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<TerminateJobOutput, SdkError<TerminateJobError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for TerminateJobInputBuilder
impl Clone for TerminateJobInputBuilder
source§fn clone(&self) -> TerminateJobInputBuilder
fn clone(&self) -> TerminateJobInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl PartialEq<TerminateJobInputBuilder> for TerminateJobInputBuilder
impl PartialEq<TerminateJobInputBuilder> for TerminateJobInputBuilder
source§fn eq(&self, other: &TerminateJobInputBuilder) -> bool
fn eq(&self, other: &TerminateJobInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.