Struct aws_sdk_batch::model::job_summary::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for JobSummary
Implementations
sourceimpl Builder
impl Builder
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 ID of the job.
sourcepub fn set_job_name(self, input: Option<String>) -> Self
pub fn set_job_name(self, input: Option<String>) -> Self
The name of the job.
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 additional details about 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 additional details about 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 (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 (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 (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 (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 representing 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 representing 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 is 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 is 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
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more