Struct aws_sdk_batch::types::builders::JobQueueDetailBuilder
source · #[non_exhaustive]pub struct JobQueueDetailBuilder { /* private fields */ }
Expand description
A builder for JobQueueDetail
.
Implementations§
source§impl JobQueueDetailBuilder
impl JobQueueDetailBuilder
sourcepub fn job_queue_name(self, input: impl Into<String>) -> Self
pub fn job_queue_name(self, input: impl Into<String>) -> Self
The job queue name.
sourcepub fn set_job_queue_name(self, input: Option<String>) -> Self
pub fn set_job_queue_name(self, input: Option<String>) -> Self
The job queue name.
sourcepub fn job_queue_arn(self, input: impl Into<String>) -> Self
pub fn job_queue_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the job queue.
sourcepub fn set_job_queue_arn(self, input: Option<String>) -> Self
pub fn set_job_queue_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the job queue.
sourcepub fn state(self, input: JqState) -> Self
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.
sourcepub fn set_state(self, input: Option<JqState>) -> Self
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.
sourcepub fn scheduling_policy_arn(self, input: impl Into<String>) -> Self
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
.
sourcepub fn set_scheduling_policy_arn(self, input: Option<String>) -> Self
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
.
sourcepub fn status(self, input: JqStatus) -> Self
pub fn status(self, input: JqStatus) -> Self
The status of the job queue (for example, CREATING
or VALID
).
sourcepub fn set_status(self, input: Option<JqStatus>) -> Self
pub fn set_status(self, input: Option<JqStatus>) -> Self
The status of the job queue (for example, CREATING
or VALID
).
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 queue.
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 queue.
sourcepub fn priority(self, input: i32) -> Self
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.
sourcepub fn set_priority(self, input: Option<i32>) -> Self
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.
sourcepub fn compute_environment_order(self, input: ComputeEnvironmentOrder) -> Self
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.
sourcepub fn set_compute_environment_order(
self,
input: Option<Vec<ComputeEnvironmentOrder>>
) -> Self
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.
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.
The tags that are applied to the job queue. For more information, see Tagging your Batch resources in Batch User Guide.
sourcepub fn build(self) -> JobQueueDetail
pub fn build(self) -> JobQueueDetail
Consumes the builder and constructs a JobQueueDetail
.
Trait Implementations§
source§impl Clone for JobQueueDetailBuilder
impl Clone for JobQueueDetailBuilder
source§fn clone(&self) -> JobQueueDetailBuilder
fn clone(&self) -> JobQueueDetailBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JobQueueDetailBuilder
impl Debug for JobQueueDetailBuilder
source§impl Default for JobQueueDetailBuilder
impl Default for JobQueueDetailBuilder
source§fn default() -> JobQueueDetailBuilder
fn default() -> JobQueueDetailBuilder
source§impl PartialEq<JobQueueDetailBuilder> for JobQueueDetailBuilder
impl PartialEq<JobQueueDetailBuilder> for JobQueueDetailBuilder
source§fn eq(&self, other: &JobQueueDetailBuilder) -> bool
fn eq(&self, other: &JobQueueDetailBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.