/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the batch-2016-08-10.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Batch.Model { /// /// 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 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. /// /// /// /// 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. /// /// /// public partial class ComputeEnvironmentOrder { private string _computeEnvironment; private int? _order; /// /// Gets and sets the property ComputeEnvironment. /// /// The Amazon Resource Name (ARN) of the compute environment. /// /// [AWSProperty(Required=true)] public string ComputeEnvironment { get { return this._computeEnvironment; } set { this._computeEnvironment = value; } } // Check to see if ComputeEnvironment property is set internal bool IsSetComputeEnvironment() { return this._computeEnvironment != null; } /// /// Gets and sets the property Order. /// /// 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. /// /// [AWSProperty(Required=true)] public int Order { get { return this._order.GetValueOrDefault(); } set { this._order = value; } } // Check to see if Order property is set internal bool IsSetOrder() { return this._order.HasValue; } } }