/** * 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 namespace Aws { namespace Batch { namespace Model { /** */ class AWS_BATCH_API CreateJobQueueRequest : public BatchRequest { public: 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::String SerializePayload() const override; /** *

The name of the job queue.

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

The name of the job queue.

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

The name of the job queue.

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

The name of the job queue.

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

The name of the job queue.

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

The name of the job queue.

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

The name of the job queue.

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

The name of the job queue.

*/ 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.

*/ 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.

*/ 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.

*/ 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.

*/ 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.

*/ 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.

*/ inline CreateJobQueueRequest& WithState(JQState&& value) { SetState(std::move(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.

*/ 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.

*/ 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.

*/ 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.

*/ 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 should execute a given 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.

*/ 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 should execute a given 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.

*/ 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 should execute a given 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.

*/ 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 should execute a given 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.

*/ 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 should execute a given 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.

*/ 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 should execute a given 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.

*/ 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 should execute a given 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.

*/ 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 should execute a given 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.

*/ inline CreateJobQueueRequest& AddComputeEnvironmentOrder(ComputeEnvironmentOrder&& value) { m_computeEnvironmentOrderHasBeenSet = true; m_computeEnvironmentOrder.push_back(std::move(value)); return *this; } private: Aws::String m_jobQueueName; bool m_jobQueueNameHasBeenSet; JQState m_state; bool m_stateHasBeenSet; int m_priority; bool m_priorityHasBeenSet; Aws::Vector m_computeEnvironmentOrder; bool m_computeEnvironmentOrderHasBeenSet; }; } // namespace Model } // namespace Batch } // namespace Aws