Struct aws_sdk_batch::types::builders::JobTimeoutBuilder
source · #[non_exhaustive]pub struct JobTimeoutBuilder { /* private fields */ }Expand description
A builder for JobTimeout.
Implementations§
source§impl JobTimeoutBuilder
impl JobTimeoutBuilder
sourcepub fn attempt_duration_seconds(self, input: i32) -> Self
pub fn attempt_duration_seconds(self, input: i32) -> Self
The job timeout time (in seconds) that's measured from the job attempt's startedAt timestamp. After this time passes, Batch terminates your jobs if they aren't finished. The minimum value for the timeout is 60 seconds.
For array jobs, the timeout applies to the child jobs, not to the parent array job.
For multi-node parallel (MNP) jobs, the timeout applies to the whole job, not to the individual nodes.
sourcepub fn set_attempt_duration_seconds(self, input: Option<i32>) -> Self
pub fn set_attempt_duration_seconds(self, input: Option<i32>) -> Self
The job timeout time (in seconds) that's measured from the job attempt's startedAt timestamp. After this time passes, Batch terminates your jobs if they aren't finished. The minimum value for the timeout is 60 seconds.
For array jobs, the timeout applies to the child jobs, not to the parent array job.
For multi-node parallel (MNP) jobs, the timeout applies to the whole job, not to the individual nodes.
sourcepub fn get_attempt_duration_seconds(&self) -> &Option<i32>
pub fn get_attempt_duration_seconds(&self) -> &Option<i32>
The job timeout time (in seconds) that's measured from the job attempt's startedAt timestamp. After this time passes, Batch terminates your jobs if they aren't finished. The minimum value for the timeout is 60 seconds.
For array jobs, the timeout applies to the child jobs, not to the parent array job.
For multi-node parallel (MNP) jobs, the timeout applies to the whole job, not to the individual nodes.
sourcepub fn build(self) -> JobTimeout
pub fn build(self) -> JobTimeout
Consumes the builder and constructs a JobTimeout.
Trait Implementations§
source§impl Clone for JobTimeoutBuilder
impl Clone for JobTimeoutBuilder
source§fn clone(&self) -> JobTimeoutBuilder
fn clone(&self) -> JobTimeoutBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for JobTimeoutBuilder
impl Debug for JobTimeoutBuilder
source§impl Default for JobTimeoutBuilder
impl Default for JobTimeoutBuilder
source§fn default() -> JobTimeoutBuilder
fn default() -> JobTimeoutBuilder
source§impl PartialEq for JobTimeoutBuilder
impl PartialEq for JobTimeoutBuilder
source§fn eq(&self, other: &JobTimeoutBuilder) -> bool
fn eq(&self, other: &JobTimeoutBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for JobTimeoutBuilder
Auto Trait Implementations§
impl Freeze for JobTimeoutBuilder
impl RefUnwindSafe for JobTimeoutBuilder
impl Send for JobTimeoutBuilder
impl Sync for JobTimeoutBuilder
impl Unpin for JobTimeoutBuilder
impl UnwindSafe for JobTimeoutBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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