#[non_exhaustive]
pub struct JobDetailBuilder { /* private fields */ }
Expand description

A builder for JobDetail.

Implementations§

source§

impl JobDetailBuilder

source

pub fn job_arn(self, input: impl Into<String>) -> Self

The Amazon Resource Name (ARN) of the job.

source

pub fn set_job_arn(self, input: Option<String>) -> Self

The Amazon Resource Name (ARN) of the job.

source

pub fn get_job_arn(&self) -> &Option<String>

The Amazon Resource Name (ARN) of the job.

source

pub fn job_name(self, input: impl Into<String>) -> Self

The job name.

source

pub fn set_job_name(self, input: Option<String>) -> Self

The job name.

source

pub fn get_job_name(&self) -> &Option<String>

The job name.

source

pub fn job_id(self, input: impl Into<String>) -> Self

The job ID.

source

pub fn set_job_id(self, input: Option<String>) -> Self

The job ID.

source

pub fn get_job_id(&self) -> &Option<String>

The job ID.

source

pub fn job_queue(self, input: impl Into<String>) -> Self

The Amazon Resource Name (ARN) of the job queue that the job is associated with.

source

pub fn set_job_queue(self, input: Option<String>) -> Self

The Amazon Resource Name (ARN) of the job queue that the job is associated with.

source

pub fn get_job_queue(&self) -> &Option<String>

The Amazon Resource Name (ARN) of the job queue that the job is associated with.

source

pub fn status(self, input: JobStatus) -> Self

The current status for the job.

If your jobs don't progress to STARTING, see Jobs stuck in RUNNABLE status in the troubleshooting section of the Batch User Guide.

source

pub fn set_status(self, input: Option<JobStatus>) -> Self

The current status for the job.

If your jobs don't progress to STARTING, see Jobs stuck in RUNNABLE status in the troubleshooting section of the Batch User Guide.

source

pub fn get_status(&self) -> &Option<JobStatus>

The current status for the job.

If your jobs don't progress to STARTING, see Jobs stuck in RUNNABLE status in the troubleshooting section of the Batch User Guide.

source

pub fn share_identifier(self, input: impl Into<String>) -> Self

The share identifier for the job.

source

pub fn set_share_identifier(self, input: Option<String>) -> Self

The share identifier for the job.

source

pub fn get_share_identifier(&self) -> &Option<String>

The share identifier for the job.

source

pub fn scheduling_priority(self, input: i32) -> Self

The scheduling policy of the job definition. This only affects jobs in job queues with a fair share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority.

source

pub fn set_scheduling_priority(self, input: Option<i32>) -> Self

The scheduling policy of the job definition. This only affects jobs in job queues with a fair share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority.

source

pub fn get_scheduling_priority(&self) -> &Option<i32>

The scheduling policy of the job definition. This only affects jobs in job queues with a fair share policy. Jobs with a higher scheduling priority are scheduled before jobs with a lower scheduling priority.

source

pub fn attempts(self, input: AttemptDetail) -> Self

Appends an item to attempts.

To override the contents of this collection use set_attempts.

A list of job attempts that are associated with this job.

source

pub fn set_attempts(self, input: Option<Vec<AttemptDetail>>) -> Self

A list of job attempts that are associated with this job.

source

pub fn get_attempts(&self) -> &Option<Vec<AttemptDetail>>

A list of job attempts that are associated with this job.

source

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.

source

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.

source

pub fn get_status_reason(&self) -> &Option<String>

A short, human-readable string to provide more details for the current status of the job.

source

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. This is specifically 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.

source

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. This is specifically 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.

source

pub fn get_created_at(&self) -> &Option<i64>

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. This is specifically 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.

source

pub fn retry_strategy(self, input: RetryStrategy) -> Self

The retry strategy to use for this job if an attempt fails.

source

pub fn set_retry_strategy(self, input: Option<RetryStrategy>) -> Self

The retry strategy to use for this job if an attempt fails.

source

pub fn get_retry_strategy(&self) -> &Option<RetryStrategy>

The retry strategy to use for this job if an attempt fails.

source

pub fn started_at(self, input: i64) -> Self

The Unix timestamp (in milliseconds) for when the job was started. More specifically, it's when the job transitioned from the STARTING state to the RUNNING state. This parameter isn't provided for child jobs of array jobs or multi-node parallel jobs.

source

pub fn set_started_at(self, input: Option<i64>) -> Self

The Unix timestamp (in milliseconds) for when the job was started. More specifically, it's when the job transitioned from the STARTING state to the RUNNING state. This parameter isn't provided for child jobs of array jobs or multi-node parallel jobs.

source

pub fn get_started_at(&self) -> &Option<i64>

The Unix timestamp (in milliseconds) for when the job was started. More specifically, it's when the job transitioned from the STARTING state to the RUNNING state. This parameter isn't provided for child jobs of array jobs or multi-node parallel jobs.

source

pub fn stopped_at(self, input: i64) -> Self

The Unix timestamp (in milliseconds) 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.

source

pub fn set_stopped_at(self, input: Option<i64>) -> Self

The Unix timestamp (in milliseconds) 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.

source

pub fn get_stopped_at(&self) -> &Option<i64>

The Unix timestamp (in milliseconds) 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.

source

pub fn depends_on(self, input: JobDependency) -> Self

Appends an item to depends_on.

To override the contents of this collection use set_depends_on.

A list of job IDs that this job depends on.

source

pub fn set_depends_on(self, input: Option<Vec<JobDependency>>) -> Self

A list of job IDs that this job depends on.

source

pub fn get_depends_on(&self) -> &Option<Vec<JobDependency>>

A list of job IDs that this job depends on.

source

pub fn job_definition(self, input: impl Into<String>) -> Self

The Amazon Resource Name (ARN) of the job definition that this job uses.

source

pub fn set_job_definition(self, input: Option<String>) -> Self

The Amazon Resource Name (ARN) of the job definition that this job uses.

source

pub fn get_job_definition(&self) -> &Option<String>

The Amazon Resource Name (ARN) of the job definition that this job uses.

source

pub fn parameters(self, k: impl Into<String>, v: impl Into<String>) -> Self

Adds a key-value pair to parameters.

To override the contents of this collection use set_parameters.

Additional parameters that are passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.

source

pub fn set_parameters(self, input: Option<HashMap<String, String>>) -> Self

Additional parameters that are passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.

source

pub fn get_parameters(&self) -> &Option<HashMap<String, String>>

Additional parameters that are passed to the job that replace parameter substitution placeholders or override any corresponding parameter defaults from the job definition.

source

pub fn container(self, input: ContainerDetail) -> Self

An object that represents the details for the container that's associated with the job.

source

pub fn set_container(self, input: Option<ContainerDetail>) -> Self

An object that represents the details for the container that's associated with the job.

source

pub fn get_container(&self) -> &Option<ContainerDetail>

An object that represents the details for the container that's associated with the job.

source

pub fn node_details(self, input: NodeDetails) -> Self

An object that represents the details of a node that's associated with a multi-node parallel job.

source

pub fn set_node_details(self, input: Option<NodeDetails>) -> Self

An object that represents the details of a node that's associated with a multi-node parallel job.

source

pub fn get_node_details(&self) -> &Option<NodeDetails>

An object that represents the details of a node that's associated with a multi-node parallel job.

source

pub fn node_properties(self, input: NodeProperties) -> Self

An object that represents the node properties of a multi-node parallel job.

This isn't applicable to jobs that are running on Fargate resources.

source

pub fn set_node_properties(self, input: Option<NodeProperties>) -> Self

An object that represents the node properties of a multi-node parallel job.

This isn't applicable to jobs that are running on Fargate resources.

source

pub fn get_node_properties(&self) -> &Option<NodeProperties>

An object that represents the node properties of a multi-node parallel job.

This isn't applicable to jobs that are running on Fargate resources.

source

pub fn array_properties(self, input: ArrayPropertiesDetail) -> Self

The array properties of the job, if it's an array job.

source

pub fn set_array_properties(self, input: Option<ArrayPropertiesDetail>) -> Self

The array properties of the job, if it's an array job.

source

pub fn get_array_properties(&self) -> &Option<ArrayPropertiesDetail>

The array properties of the job, if it's an array job.

source

pub fn timeout(self, input: JobTimeout) -> Self

The timeout configuration for the job.

source

pub fn set_timeout(self, input: Option<JobTimeout>) -> Self

The timeout configuration for the job.

source

pub fn get_timeout(&self) -> &Option<JobTimeout>

The timeout configuration for the job.

source

pub fn tags(self, k: impl Into<String>, v: impl Into<String>) -> Self

Adds a key-value pair to tags.

To override the contents of this collection use set_tags.

The tags that are applied to the job.

source

pub fn set_tags(self, input: Option<HashMap<String, String>>) -> Self

The tags that are applied to the job.

source

pub fn get_tags(&self) -> &Option<HashMap<String, String>>

The tags that are applied to the job.

source

pub fn propagate_tags(self, input: bool) -> Self

Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks when the tasks are created. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the FAILED state.

source

pub fn set_propagate_tags(self, input: Option<bool>) -> Self

Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks when the tasks are created. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the FAILED state.

source

pub fn get_propagate_tags(&self) -> &Option<bool>

Specifies whether to propagate the tags from the job or job definition to the corresponding Amazon ECS task. If no value is specified, the tags aren't propagated. Tags can only be propagated to the tasks when the tasks are created. For tags with the same name, job tags are given priority over job definitions tags. If the total number of combined tags from the job and job definition is over 50, the job is moved to the FAILED state.

source

pub fn platform_capabilities(self, input: PlatformCapability) -> Self

Appends an item to platform_capabilities.

To override the contents of this collection use set_platform_capabilities.

The platform capabilities required by the job definition. If no value is specified, it defaults to EC2. Jobs run on Fargate resources specify FARGATE.

source

pub fn set_platform_capabilities( self, input: Option<Vec<PlatformCapability>> ) -> Self

The platform capabilities required by the job definition. If no value is specified, it defaults to EC2. Jobs run on Fargate resources specify FARGATE.

source

pub fn get_platform_capabilities(&self) -> &Option<Vec<PlatformCapability>>

The platform capabilities required by the job definition. If no value is specified, it defaults to EC2. Jobs run on Fargate resources specify FARGATE.

source

pub fn eks_properties(self, input: EksPropertiesDetail) -> Self

An object with various properties that are specific to Amazon EKS based jobs. Only one of container, eksProperties, or nodeDetails is specified.

source

pub fn set_eks_properties(self, input: Option<EksPropertiesDetail>) -> Self

An object with various properties that are specific to Amazon EKS based jobs. Only one of container, eksProperties, or nodeDetails is specified.

source

pub fn get_eks_properties(&self) -> &Option<EksPropertiesDetail>

An object with various properties that are specific to Amazon EKS based jobs. Only one of container, eksProperties, or nodeDetails is specified.

source

pub fn eks_attempts(self, input: EksAttemptDetail) -> Self

Appends an item to eks_attempts.

To override the contents of this collection use set_eks_attempts.

A list of job attempts that are associated with this job.

source

pub fn set_eks_attempts(self, input: Option<Vec<EksAttemptDetail>>) -> Self

A list of job attempts that are associated with this job.

source

pub fn get_eks_attempts(&self) -> &Option<Vec<EksAttemptDetail>>

A list of job attempts that are associated with this job.

source

pub fn is_cancelled(self, input: bool) -> Self

Indicates whether the job is canceled.

source

pub fn set_is_cancelled(self, input: Option<bool>) -> Self

Indicates whether the job is canceled.

source

pub fn get_is_cancelled(&self) -> &Option<bool>

Indicates whether the job is canceled.

source

pub fn is_terminated(self, input: bool) -> Self

Indicates whether the job is terminated.

source

pub fn set_is_terminated(self, input: Option<bool>) -> Self

Indicates whether the job is terminated.

source

pub fn get_is_terminated(&self) -> &Option<bool>

Indicates whether the job is terminated.

source

pub fn build(self) -> JobDetail

Consumes the builder and constructs a JobDetail.

Trait Implementations§

source§

impl Clone for JobDetailBuilder

source§

fn clone(&self) -> JobDetailBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for JobDetailBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for JobDetailBuilder

source§

fn default() -> JobDetailBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq<JobDetailBuilder> for JobDetailBuilder

source§

fn eq(&self, other: &JobDetailBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for JobDetailBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more