/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Batch { namespace Model { /** *

Contains the parameters for CreateJobQueue.

See * Also:

AWS * API Reference

*/ class CreateJobQueueRequest : public BatchRequest { public: AWS_BATCH_API CreateJobQueueRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateJobQueue"; } AWS_BATCH_API Aws::String SerializePayload() const override; /** *

The name of the job queue. It can be up to 128 letters long. It can contain * uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

*/ inline const Aws::String& GetJobQueueName() const{ return m_jobQueueName; } /** *

The name of the job queue. It can be up to 128 letters long. It can contain * uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

*/ inline bool JobQueueNameHasBeenSet() const { return m_jobQueueNameHasBeenSet; } /** *

The name of the job queue. It can be up to 128 letters long. It can contain * uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

*/ inline void SetJobQueueName(const Aws::String& value) { m_jobQueueNameHasBeenSet = true; m_jobQueueName = value; } /** *

The name of the job queue. It can be up to 128 letters long. It can contain * uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

*/ inline void SetJobQueueName(Aws::String&& value) { m_jobQueueNameHasBeenSet = true; m_jobQueueName = std::move(value); } /** *

The name of the job queue. It can be up to 128 letters long. It can contain * uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

*/ inline void SetJobQueueName(const char* value) { m_jobQueueNameHasBeenSet = true; m_jobQueueName.assign(value); } /** *

The name of the job queue. It can be up to 128 letters long. It can contain * uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

*/ inline CreateJobQueueRequest& WithJobQueueName(const Aws::String& value) { SetJobQueueName(value); return *this;} /** *

The name of the job queue. It can be up to 128 letters long. It can contain * uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

*/ inline CreateJobQueueRequest& WithJobQueueName(Aws::String&& value) { SetJobQueueName(std::move(value)); return *this;} /** *

The name of the job queue. It can be up to 128 letters long. It can contain * uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).

*/ inline CreateJobQueueRequest& WithJobQueueName(const char* value) { SetJobQueueName(value); return *this;} /** *

The state of the job queue. If the job queue state is ENABLED, * it is able to 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.

*/ inline const JQState& GetState() const{ return m_state; } /** *

The state of the job queue. If the job queue state is ENABLED, * it is able to 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.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the job queue. If the job queue state is ENABLED, * it is able to 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.

*/ inline void SetState(const JQState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the job queue. If the job queue state is ENABLED, * it is able to 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.

*/ inline void SetState(JQState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the job queue. If the job queue state is ENABLED, * it is able to 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.

*/ inline CreateJobQueueRequest& WithState(const JQState& value) { SetState(value); return *this;} /** *

The state of the job queue. If the job queue state is ENABLED, * it is able to 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.

*/ inline CreateJobQueueRequest& WithState(JQState&& value) { SetState(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the fair share scheduling policy. If this * parameter is specified, the job queue uses a fair share scheduling policy. If * this parameter isn't specified, the job queue uses a first in, first out (FIFO) * scheduling policy. After a job queue is created, you can replace but can't * remove the fair share scheduling policy. The format is * aws:Partition:batch:Region:Account:scheduling-policy/Name * . An example is * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ inline const Aws::String& GetSchedulingPolicyArn() const{ return m_schedulingPolicyArn; } /** *

The Amazon Resource Name (ARN) of the fair share scheduling policy. If this * parameter is specified, the job queue uses a fair share scheduling policy. If * this parameter isn't specified, the job queue uses a first in, first out (FIFO) * scheduling policy. After a job queue is created, you can replace but can't * remove the fair share scheduling policy. The format is * aws:Partition:batch:Region:Account:scheduling-policy/Name * . An example is * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ inline bool SchedulingPolicyArnHasBeenSet() const { return m_schedulingPolicyArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the fair share scheduling policy. If this * parameter is specified, the job queue uses a fair share scheduling policy. If * this parameter isn't specified, the job queue uses a first in, first out (FIFO) * scheduling policy. After a job queue is created, you can replace but can't * remove the fair share scheduling policy. The format is * aws:Partition:batch:Region:Account:scheduling-policy/Name * . An example is * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ inline void SetSchedulingPolicyArn(const Aws::String& value) { m_schedulingPolicyArnHasBeenSet = true; m_schedulingPolicyArn = value; } /** *

The Amazon Resource Name (ARN) of the fair share scheduling policy. If this * parameter is specified, the job queue uses a fair share scheduling policy. If * this parameter isn't specified, the job queue uses a first in, first out (FIFO) * scheduling policy. After a job queue is created, you can replace but can't * remove the fair share scheduling policy. The format is * aws:Partition:batch:Region:Account:scheduling-policy/Name * . An example is * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ inline void SetSchedulingPolicyArn(Aws::String&& value) { m_schedulingPolicyArnHasBeenSet = true; m_schedulingPolicyArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the fair share scheduling policy. If this * parameter is specified, the job queue uses a fair share scheduling policy. If * this parameter isn't specified, the job queue uses a first in, first out (FIFO) * scheduling policy. After a job queue is created, you can replace but can't * remove the fair share scheduling policy. The format is * aws:Partition:batch:Region:Account:scheduling-policy/Name * . An example is * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ inline void SetSchedulingPolicyArn(const char* value) { m_schedulingPolicyArnHasBeenSet = true; m_schedulingPolicyArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the fair share scheduling policy. If this * parameter is specified, the job queue uses a fair share scheduling policy. If * this parameter isn't specified, the job queue uses a first in, first out (FIFO) * scheduling policy. After a job queue is created, you can replace but can't * remove the fair share scheduling policy. The format is * aws:Partition:batch:Region:Account:scheduling-policy/Name * . An example is * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ inline CreateJobQueueRequest& WithSchedulingPolicyArn(const Aws::String& value) { SetSchedulingPolicyArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the fair share scheduling policy. If this * parameter is specified, the job queue uses a fair share scheduling policy. If * this parameter isn't specified, the job queue uses a first in, first out (FIFO) * scheduling policy. After a job queue is created, you can replace but can't * remove the fair share scheduling policy. The format is * aws:Partition:batch:Region:Account:scheduling-policy/Name * . An example is * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ inline CreateJobQueueRequest& WithSchedulingPolicyArn(Aws::String&& value) { SetSchedulingPolicyArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the fair share scheduling policy. If this * parameter is specified, the job queue uses a fair share scheduling policy. If * this parameter isn't specified, the job queue uses a first in, first out (FIFO) * scheduling policy. After a job queue is created, you can replace but can't * remove the fair share scheduling policy. The format is * aws:Partition:batch:Region:Account:scheduling-policy/Name * . An example is * aws:aws:batch:us-west-2:123456789012:scheduling-policy/MySchedulingPolicy.

*/ inline CreateJobQueueRequest& WithSchedulingPolicyArn(const char* value) { SetSchedulingPolicyArn(value); return *this;} /** *

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.

*/ inline int GetPriority() const{ return m_priority; } /** *

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.

*/ inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; } /** *

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.

*/ inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; } /** *

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.

*/ inline CreateJobQueueRequest& WithPriority(int value) { SetPriority(value); return *this;} /** *

The set of compute environments mapped to a job queue and their order * relative to each other. The job scheduler uses this parameter to determine which * compute environment runs a specific job. Compute environments must be in the * VALID state before you can associate them with a job queue. You can * associate up to three compute environments with a job queue. 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.

All compute environments that * are associated with a job queue must share the same architecture. Batch doesn't * support mixing compute environment architecture types in a single job queue.

* */ inline const Aws::Vector& GetComputeEnvironmentOrder() const{ return m_computeEnvironmentOrder; } /** *

The set of compute environments mapped to a job queue and their order * relative to each other. The job scheduler uses this parameter to determine which * compute environment runs a specific job. Compute environments must be in the * VALID state before you can associate them with a job queue. You can * associate up to three compute environments with a job queue. 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.

All compute environments that * are associated with a job queue must share the same architecture. Batch doesn't * support mixing compute environment architecture types in a single job queue.

* */ inline bool ComputeEnvironmentOrderHasBeenSet() const { return m_computeEnvironmentOrderHasBeenSet; } /** *

The set of compute environments mapped to a job queue and their order * relative to each other. The job scheduler uses this parameter to determine which * compute environment runs a specific job. Compute environments must be in the * VALID state before you can associate them with a job queue. You can * associate up to three compute environments with a job queue. 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.

All compute environments that * are associated with a job queue must share the same architecture. Batch doesn't * support mixing compute environment architecture types in a single job queue.

* */ inline void SetComputeEnvironmentOrder(const Aws::Vector& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder = value; } /** *

The set of compute environments mapped to a job queue and their order * relative to each other. The job scheduler uses this parameter to determine which * compute environment runs a specific job. Compute environments must be in the * VALID state before you can associate them with a job queue. You can * associate up to three compute environments with a job queue. 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.

All compute environments that * are associated with a job queue must share the same architecture. Batch doesn't * support mixing compute environment architecture types in a single job queue.

* */ inline void SetComputeEnvironmentOrder(Aws::Vector&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder = std::move(value); } /** *

The set of compute environments mapped to a job queue and their order * relative to each other. The job scheduler uses this parameter to determine which * compute environment runs a specific job. Compute environments must be in the * VALID state before you can associate them with a job queue. You can * associate up to three compute environments with a job queue. 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.

All compute environments that * are associated with a job queue must share the same architecture. Batch doesn't * support mixing compute environment architecture types in a single job queue.

* */ inline CreateJobQueueRequest& WithComputeEnvironmentOrder(const Aws::Vector& value) { SetComputeEnvironmentOrder(value); return *this;} /** *

The set of compute environments mapped to a job queue and their order * relative to each other. The job scheduler uses this parameter to determine which * compute environment runs a specific job. Compute environments must be in the * VALID state before you can associate them with a job queue. You can * associate up to three compute environments with a job queue. 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.

All compute environments that * are associated with a job queue must share the same architecture. Batch doesn't * support mixing compute environment architecture types in a single job queue.

* */ inline CreateJobQueueRequest& WithComputeEnvironmentOrder(Aws::Vector&& value) { SetComputeEnvironmentOrder(std::move(value)); return *this;} /** *

The set of compute environments mapped to a job queue and their order * relative to each other. The job scheduler uses this parameter to determine which * compute environment runs a specific job. Compute environments must be in the * VALID state before you can associate them with a job queue. You can * associate up to three compute environments with a job queue. 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.

All compute environments that * are associated with a job queue must share the same architecture. Batch doesn't * support mixing compute environment architecture types in a single job queue.

* */ inline CreateJobQueueRequest& AddComputeEnvironmentOrder(const ComputeEnvironmentOrder& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder.push_back(value); return *this; } /** *

The set of compute environments mapped to a job queue and their order * relative to each other. The job scheduler uses this parameter to determine which * compute environment runs a specific job. Compute environments must be in the * VALID state before you can associate them with a job queue. You can * associate up to three compute environments with a job queue. 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.

All compute environments that * are associated with a job queue must share the same architecture. Batch doesn't * support mixing compute environment architecture types in a single job queue.

* */ inline CreateJobQueueRequest& AddComputeEnvironmentOrder(ComputeEnvironmentOrder&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder.push_back(std::move(value)); return *this; } /** *

The tags that you apply to the job queue to help you categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * your Batch resources in Batch User Guide.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags that you apply to the job queue to help you categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * your Batch resources in Batch User Guide.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags that you apply to the job queue to help you categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * your Batch resources in Batch User Guide.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags that you apply to the job queue to help you categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * your Batch resources in Batch User Guide.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags that you apply to the job queue to help you categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * your Batch resources in Batch User Guide.

*/ inline CreateJobQueueRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags that you apply to the job queue to help you categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * your Batch resources in Batch User Guide.

*/ inline CreateJobQueueRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags that you apply to the job queue to help you categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * your Batch resources in Batch User Guide.

*/ inline CreateJobQueueRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags that you apply to the job queue to help you categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * your Batch resources in Batch User Guide.

*/ inline CreateJobQueueRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags that you apply to the job queue to help you categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * your Batch resources in Batch User Guide.

*/ inline CreateJobQueueRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags that you apply to the job queue to help you categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * your Batch resources in Batch User Guide.

*/ inline CreateJobQueueRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags that you apply to the job queue to help you categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * your Batch resources in Batch User Guide.

*/ inline CreateJobQueueRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags that you apply to the job queue to help you categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * your Batch resources in Batch User Guide.

*/ inline CreateJobQueueRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags that you apply to the job queue to help you categorize and organize * your resources. Each tag consists of a key and an optional value. For more * information, see Tagging * your Batch resources in Batch User Guide.

*/ inline CreateJobQueueRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_jobQueueName; bool m_jobQueueNameHasBeenSet = false; JQState m_state; bool m_stateHasBeenSet = false; Aws::String m_schedulingPolicyArn; bool m_schedulingPolicyArnHasBeenSet = false; int m_priority; bool m_priorityHasBeenSet = false; Aws::Vector m_computeEnvironmentOrder; bool m_computeEnvironmentOrderHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Batch } // namespace Aws