#[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.
This field is required.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 for TerminateJobInputBuilder
impl PartialEq 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 ==
.impl StructuralPartialEq for TerminateJobInputBuilder
Auto Trait Implementations§
impl Freeze for TerminateJobInputBuilder
impl RefUnwindSafe for TerminateJobInputBuilder
impl Send for TerminateJobInputBuilder
impl Sync for TerminateJobInputBuilder
impl Unpin for TerminateJobInputBuilder
impl UnwindSafe for TerminateJobInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more