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

A builder for JobQueueDetail.

Implementations§

source§

impl JobQueueDetailBuilder

source

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

The job queue name.

source

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

The job queue name.

source

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

The Amazon Resource Name (ARN) of the job queue.

source

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

The Amazon Resource Name (ARN) of the job queue.

source

pub fn state(self, input: JqState) -> Self

Describes the ability of the queue to accept new jobs. If the job queue state is ENABLED, it can accept jobs. If the job queue state is DISABLED, new jobs can't be added to the queue, but jobs already in the queue can finish.

source

pub fn set_state(self, input: Option<JqState>) -> Self

Describes the ability of the queue to accept new jobs. If the job queue state is ENABLED, it can accept jobs. If the job queue state is DISABLED, new jobs can't be added to the queue, but jobs already in the queue can finish.

source

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

The Amazon Resource Name (ARN) of the scheduling policy. The format is aws:Partition:batch:Region:Account:scheduling-policy/Name . For example, aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

source

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

The Amazon Resource Name (ARN) of the scheduling policy. The format is aws:Partition:batch:Region:Account:scheduling-policy/Name . For example, aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

source

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

The status of the job queue (for example, CREATING or VALID).

source

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

The status of the job queue (for example, CREATING or VALID).

source

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 queue.

source

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 queue.

source

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

The priority of the job queue. Job queues with a higher priority (or a higher integer value for the priority parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of 10 is given scheduling preference over a job queue with a priority value of 1. All of the compute environments must be either EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT). EC2 and Fargate compute environments can't be mixed.

source

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

The priority of the job queue. Job queues with a higher priority (or a higher integer value for the priority parameter) are evaluated first when associated with the same compute environment. Priority is determined in descending order. For example, a job queue with a priority value of 10 is given scheduling preference over a job queue with a priority value of 1. All of the compute environments must be either EC2 (EC2 or SPOT) or Fargate (FARGATE or FARGATE_SPOT). EC2 and Fargate compute environments can't be mixed.

source

pub fn compute_environment_order(self, input: ComputeEnvironmentOrder) -> Self

Appends an item to compute_environment_order.

To override the contents of this collection use set_compute_environment_order.

The compute environments that are attached to the job queue and the order that job placement is preferred. Compute environments are selected for job placement in ascending order.

source

pub fn set_compute_environment_order( self, input: Option<Vec<ComputeEnvironmentOrder>> ) -> Self

The compute environments that are attached to the job queue and the order that job placement is preferred. Compute environments are selected for job placement in ascending order.

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 queue. For more information, see Tagging your Batch resources in Batch User Guide.

source

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

The tags that are applied to the job queue. For more information, see Tagging your Batch resources in Batch User Guide.

source

pub fn build(self) -> JobQueueDetail

Consumes the builder and constructs a JobQueueDetail.

Trait Implementations§

source§

impl Clone for JobQueueDetailBuilder

source§

fn clone(&self) -> JobQueueDetailBuilder

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 JobQueueDetailBuilder

source§

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

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

impl Default for JobQueueDetailBuilder

source§

fn default() -> JobQueueDetailBuilder

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

impl PartialEq<JobQueueDetailBuilder> for JobQueueDetailBuilder

source§

fn eq(&self, other: &JobQueueDetailBuilder) -> 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 JobQueueDetailBuilder

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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · 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>,

const: unstable · 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.
const: unstable · 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.
const: unstable · 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