/* * 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 { /// /// An object that represents the node properties of a multi-node parallel job. /// /// /// /// Node properties can't be specified for Amazon EKS based job definitions. /// /// /// public partial class NodeProperties { private int? _mainNode; private List _nodeRangeProperties = new List(); private int? _numNodes; /// /// Gets and sets the property MainNode. /// /// Specifies the node index for the main node of a multi-node parallel job. This node /// index value must be fewer than the number of nodes. /// /// [AWSProperty(Required=true)] public int MainNode { get { return this._mainNode.GetValueOrDefault(); } set { this._mainNode = value; } } // Check to see if MainNode property is set internal bool IsSetMainNode() { return this._mainNode.HasValue; } /// /// Gets and sets the property NodeRangeProperties. /// /// A list of node ranges and their properties that are associated with a multi-node parallel /// job. /// /// [AWSProperty(Required=true)] public List NodeRangeProperties { get { return this._nodeRangeProperties; } set { this._nodeRangeProperties = value; } } // Check to see if NodeRangeProperties property is set internal bool IsSetNodeRangeProperties() { return this._nodeRangeProperties != null && this._nodeRangeProperties.Count > 0; } /// /// Gets and sets the property NumNodes. /// /// The number of nodes that are associated with a multi-node parallel job. /// /// [AWSProperty(Required=true)] public int NumNodes { get { return this._numNodes.GetValueOrDefault(); } set { this._numNodes = value; } } // Check to see if NumNodes property is set internal bool IsSetNumNodes() { return this._numNodes.HasValue; } } }