Struct aws_sdk_batch::types::builders::AttemptDetailBuilder
source · #[non_exhaustive]pub struct AttemptDetailBuilder { /* private fields */ }Expand description
A builder for AttemptDetail.
Implementations§
source§impl AttemptDetailBuilder
impl AttemptDetailBuilder
sourcepub fn container(self, input: AttemptContainerDetail) -> Self
pub fn container(self, input: AttemptContainerDetail) -> Self
The details for the container in this job attempt.
sourcepub fn set_container(self, input: Option<AttemptContainerDetail>) -> Self
pub fn set_container(self, input: Option<AttemptContainerDetail>) -> Self
The details for the container in this job attempt.
sourcepub fn get_container(&self) -> &Option<AttemptContainerDetail>
pub fn get_container(&self) -> &Option<AttemptContainerDetail>
The details for the container in this job attempt.
sourcepub fn started_at(self, input: i64) -> Self
pub fn started_at(self, input: i64) -> Self
The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from the STARTING state to the RUNNING state).
sourcepub fn set_started_at(self, input: Option<i64>) -> Self
pub fn set_started_at(self, input: Option<i64>) -> Self
The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from the STARTING state to the RUNNING state).
sourcepub fn get_started_at(&self) -> &Option<i64>
pub fn get_started_at(&self) -> &Option<i64>
The Unix timestamp (in milliseconds) for when the attempt was started (when the attempt transitioned from the STARTING state to the RUNNING state).
sourcepub fn stopped_at(self, input: i64) -> Self
pub fn stopped_at(self, input: i64) -> Self
The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED).
sourcepub fn set_stopped_at(self, input: Option<i64>) -> Self
pub fn set_stopped_at(self, input: Option<i64>) -> Self
The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED).
sourcepub fn get_stopped_at(&self) -> &Option<i64>
pub fn get_stopped_at(&self) -> &Option<i64>
The Unix timestamp (in milliseconds) for when the attempt was stopped (when the attempt transitioned from the RUNNING state to a terminal state, such as SUCCEEDED or FAILED).
sourcepub fn status_reason(self, input: impl Into<String>) -> Self
pub fn status_reason(self, input: impl Into<String>) -> Self
A short, human-readable string to provide additional details for the current status of the job attempt.
sourcepub fn set_status_reason(self, input: Option<String>) -> Self
pub fn set_status_reason(self, input: Option<String>) -> Self
A short, human-readable string to provide additional details for the current status of the job attempt.
sourcepub fn get_status_reason(&self) -> &Option<String>
pub fn get_status_reason(&self) -> &Option<String>
A short, human-readable string to provide additional details for the current status of the job attempt.
sourcepub fn task_properties(self, input: AttemptEcsTaskDetails) -> Self
pub fn task_properties(self, input: AttemptEcsTaskDetails) -> Self
Appends an item to task_properties.
To override the contents of this collection use set_task_properties.
The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.
sourcepub fn set_task_properties(
self,
input: Option<Vec<AttemptEcsTaskDetails>>
) -> Self
pub fn set_task_properties( self, input: Option<Vec<AttemptEcsTaskDetails>> ) -> Self
The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.
sourcepub fn get_task_properties(&self) -> &Option<Vec<AttemptEcsTaskDetails>>
pub fn get_task_properties(&self) -> &Option<Vec<AttemptEcsTaskDetails>>
The properties for a task definition that describes the container and volume definitions of an Amazon ECS task.
sourcepub fn build(self) -> AttemptDetail
pub fn build(self) -> AttemptDetail
Consumes the builder and constructs a AttemptDetail.
Trait Implementations§
source§impl Clone for AttemptDetailBuilder
impl Clone for AttemptDetailBuilder
source§fn clone(&self) -> AttemptDetailBuilder
fn clone(&self) -> AttemptDetailBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AttemptDetailBuilder
impl Debug for AttemptDetailBuilder
source§impl Default for AttemptDetailBuilder
impl Default for AttemptDetailBuilder
source§fn default() -> AttemptDetailBuilder
fn default() -> AttemptDetailBuilder
source§impl PartialEq for AttemptDetailBuilder
impl PartialEq for AttemptDetailBuilder
source§fn eq(&self, other: &AttemptDetailBuilder) -> bool
fn eq(&self, other: &AttemptDetailBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AttemptDetailBuilder
Auto Trait Implementations§
impl Freeze for AttemptDetailBuilder
impl RefUnwindSafe for AttemptDetailBuilder
impl Send for AttemptDetailBuilder
impl Sync for AttemptDetailBuilder
impl Unpin for AttemptDetailBuilder
impl UnwindSafe for AttemptDetailBuilder
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