Struct aws_sdk_batch::types::builders::JobSummaryBuilder
source · #[non_exhaustive]pub struct JobSummaryBuilder { /* private fields */ }
Expand description
A builder for JobSummary
.
Implementations§
source§impl JobSummaryBuilder
impl JobSummaryBuilder
sourcepub fn job_arn(self, input: impl Into<String>) -> Self
pub fn job_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the job.
sourcepub fn set_job_arn(self, input: Option<String>) -> Self
pub fn set_job_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the job.
sourcepub fn set_job_id(self, input: Option<String>) -> Self
pub fn set_job_id(self, input: Option<String>) -> Self
The job ID.
sourcepub fn set_job_name(self, input: Option<String>) -> Self
pub fn set_job_name(self, input: Option<String>) -> Self
The job name.
sourcepub fn created_at(self, input: i64) -> Self
pub fn created_at(self, input: i64) -> Self
The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs and parent array jobs, this is when the job entered the SUBMITTED
state (at the time SubmitJob
was called). For array child jobs, this is when the child job was spawned by its parent and entered the PENDING
state.
sourcepub fn set_created_at(self, input: Option<i64>) -> Self
pub fn set_created_at(self, input: Option<i64>) -> Self
The Unix timestamp (in milliseconds) for when the job was created. For non-array jobs and parent array jobs, this is when the job entered the SUBMITTED
state (at the time SubmitJob
was called). For array child jobs, this is when the child job was spawned by its parent and entered the PENDING
state.
sourcepub fn set_status(self, input: Option<JobStatus>) -> Self
pub fn set_status(self, input: Option<JobStatus>) -> Self
The current status for the job.
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 more details for the current status of the job.
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 more details for the current status of the job.
sourcepub fn started_at(self, input: i64) -> Self
pub fn started_at(self, input: i64) -> Self
The Unix timestamp for when the job was started. More specifically, it's when the job 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 for when the job was started. More specifically, it's when the job 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 for when the job was stopped. More specifically, it's when the job 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 for when the job was stopped. More specifically, it's when the job transitioned from the RUNNING
state to a terminal state, such as SUCCEEDED
or FAILED
.
sourcepub fn container(self, input: ContainerSummary) -> Self
pub fn container(self, input: ContainerSummary) -> Self
An object that represents the details of the container that's associated with the job.
sourcepub fn set_container(self, input: Option<ContainerSummary>) -> Self
pub fn set_container(self, input: Option<ContainerSummary>) -> Self
An object that represents the details of the container that's associated with the job.
sourcepub fn array_properties(self, input: ArrayPropertiesSummary) -> Self
pub fn array_properties(self, input: ArrayPropertiesSummary) -> Self
The array properties of the job, if it's an array job.
sourcepub fn set_array_properties(self, input: Option<ArrayPropertiesSummary>) -> Self
pub fn set_array_properties(self, input: Option<ArrayPropertiesSummary>) -> Self
The array properties of the job, if it's an array job.
sourcepub fn node_properties(self, input: NodePropertiesSummary) -> Self
pub fn node_properties(self, input: NodePropertiesSummary) -> Self
The node properties for a single node in a job summary list.
This isn't applicable to jobs that are running on Fargate resources.
sourcepub fn set_node_properties(self, input: Option<NodePropertiesSummary>) -> Self
pub fn set_node_properties(self, input: Option<NodePropertiesSummary>) -> Self
The node properties for a single node in a job summary list.
This isn't applicable to jobs that are running on Fargate resources.
sourcepub fn job_definition(self, input: impl Into<String>) -> Self
pub fn job_definition(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the job definition.
sourcepub fn set_job_definition(self, input: Option<String>) -> Self
pub fn set_job_definition(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the job definition.
sourcepub fn build(self) -> JobSummary
pub fn build(self) -> JobSummary
Consumes the builder and constructs a JobSummary
.
Trait Implementations§
source§impl Clone for JobSummaryBuilder
impl Clone for JobSummaryBuilder
source§fn clone(&self) -> JobSummaryBuilder
fn clone(&self) -> JobSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JobSummaryBuilder
impl Debug for JobSummaryBuilder
source§impl Default for JobSummaryBuilder
impl Default for JobSummaryBuilder
source§fn default() -> JobSummaryBuilder
fn default() -> JobSummaryBuilder
source§impl PartialEq<JobSummaryBuilder> for JobSummaryBuilder
impl PartialEq<JobSummaryBuilder> for JobSummaryBuilder
source§fn eq(&self, other: &JobSummaryBuilder) -> bool
fn eq(&self, other: &JobSummaryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.