/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Batch { namespace 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.

See Also:

AWS * API Reference

*/ class NodeProperties { public: AWS_BATCH_API NodeProperties(); AWS_BATCH_API NodeProperties(Aws::Utils::Json::JsonView jsonValue); AWS_BATCH_API NodeProperties& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The number of nodes that are associated with a multi-node parallel job.

*/ inline int GetNumNodes() const{ return m_numNodes; } /** *

The number of nodes that are associated with a multi-node parallel job.

*/ inline bool NumNodesHasBeenSet() const { return m_numNodesHasBeenSet; } /** *

The number of nodes that are associated with a multi-node parallel job.

*/ inline void SetNumNodes(int value) { m_numNodesHasBeenSet = true; m_numNodes = value; } /** *

The number of nodes that are associated with a multi-node parallel job.

*/ inline NodeProperties& WithNumNodes(int value) { SetNumNodes(value); return *this;} /** *

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.

*/ inline int GetMainNode() const{ return m_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.

*/ inline bool MainNodeHasBeenSet() const { return m_mainNodeHasBeenSet; } /** *

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.

*/ inline void SetMainNode(int value) { m_mainNodeHasBeenSet = true; m_mainNode = value; } /** *

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.

*/ inline NodeProperties& WithMainNode(int value) { SetMainNode(value); return *this;} /** *

A list of node ranges and their properties that are associated with a * multi-node parallel job.

*/ inline const Aws::Vector& GetNodeRangeProperties() const{ return m_nodeRangeProperties; } /** *

A list of node ranges and their properties that are associated with a * multi-node parallel job.

*/ inline bool NodeRangePropertiesHasBeenSet() const { return m_nodeRangePropertiesHasBeenSet; } /** *

A list of node ranges and their properties that are associated with a * multi-node parallel job.

*/ inline void SetNodeRangeProperties(const Aws::Vector& value) { m_nodeRangePropertiesHasBeenSet = true; m_nodeRangeProperties = value; } /** *

A list of node ranges and their properties that are associated with a * multi-node parallel job.

*/ inline void SetNodeRangeProperties(Aws::Vector&& value) { m_nodeRangePropertiesHasBeenSet = true; m_nodeRangeProperties = std::move(value); } /** *

A list of node ranges and their properties that are associated with a * multi-node parallel job.

*/ inline NodeProperties& WithNodeRangeProperties(const Aws::Vector& value) { SetNodeRangeProperties(value); return *this;} /** *

A list of node ranges and their properties that are associated with a * multi-node parallel job.

*/ inline NodeProperties& WithNodeRangeProperties(Aws::Vector&& value) { SetNodeRangeProperties(std::move(value)); return *this;} /** *

A list of node ranges and their properties that are associated with a * multi-node parallel job.

*/ inline NodeProperties& AddNodeRangeProperties(const NodeRangeProperty& value) { m_nodeRangePropertiesHasBeenSet = true; m_nodeRangeProperties.push_back(value); return *this; } /** *

A list of node ranges and their properties that are associated with a * multi-node parallel job.

*/ inline NodeProperties& AddNodeRangeProperties(NodeRangeProperty&& value) { m_nodeRangePropertiesHasBeenSet = true; m_nodeRangeProperties.push_back(std::move(value)); return *this; } private: int m_numNodes; bool m_numNodesHasBeenSet = false; int m_mainNode; bool m_mainNodeHasBeenSet = false; Aws::Vector m_nodeRangeProperties; bool m_nodeRangePropertiesHasBeenSet = false; }; } // namespace Model } // namespace Batch } // namespace Aws