/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The order that compute environments are tried in for job placement within a
* queue. Compute environments are tried in ascending order. For example, if two
* compute environments are associated with a job queue, the compute environment
* with a lower order integer value is tried for job placement first. Compute
* environments must be in the 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.VALID
state before you can associate
* them 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.See
* Also:
AWS
* API Reference
The order of the compute environment. Compute environments are tried in
* ascending order. For example, if two compute environments are associated with a
* job queue, the compute environment with a lower order
integer value
* is tried for job placement first.
The order of the compute environment. Compute environments are tried in
* ascending order. For example, if two compute environments are associated with a
* job queue, the compute environment with a lower order
integer value
* is tried for job placement first.
The order of the compute environment. Compute environments are tried in
* ascending order. For example, if two compute environments are associated with a
* job queue, the compute environment with a lower order
integer value
* is tried for job placement first.
The order of the compute environment. Compute environments are tried in
* ascending order. For example, if two compute environments are associated with a
* job queue, the compute environment with a lower order
integer value
* is tried for job placement first.
The Amazon Resource Name (ARN) of the compute environment.
*/ inline const Aws::String& GetComputeEnvironment() const{ return m_computeEnvironment; } /** *The Amazon Resource Name (ARN) of the compute environment.
*/ inline bool ComputeEnvironmentHasBeenSet() const { return m_computeEnvironmentHasBeenSet; } /** *The Amazon Resource Name (ARN) of the compute environment.
*/ inline void SetComputeEnvironment(const Aws::String& value) { m_computeEnvironmentHasBeenSet = true; m_computeEnvironment = value; } /** *The Amazon Resource Name (ARN) of the compute environment.
*/ inline void SetComputeEnvironment(Aws::String&& value) { m_computeEnvironmentHasBeenSet = true; m_computeEnvironment = std::move(value); } /** *The Amazon Resource Name (ARN) of the compute environment.
*/ inline void SetComputeEnvironment(const char* value) { m_computeEnvironmentHasBeenSet = true; m_computeEnvironment.assign(value); } /** *The Amazon Resource Name (ARN) of the compute environment.
*/ inline ComputeEnvironmentOrder& WithComputeEnvironment(const Aws::String& value) { SetComputeEnvironment(value); return *this;} /** *The Amazon Resource Name (ARN) of the compute environment.
*/ inline ComputeEnvironmentOrder& WithComputeEnvironment(Aws::String&& value) { SetComputeEnvironment(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the compute environment.
*/ inline ComputeEnvironmentOrder& WithComputeEnvironment(const char* value) { SetComputeEnvironment(value); return *this;} private: int m_order; bool m_orderHasBeenSet = false; Aws::String m_computeEnvironment; bool m_computeEnvironmentHasBeenSet = false; }; } // namespace Model } // namespace Batch } // namespace Aws