/** * 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 representing the node properties of a multi-node parallel * job.

See Also:

AWS * API Reference

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

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

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

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

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

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

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

The number of nodes 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 associated with a multi-node * parallel job.

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

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

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

A list of node ranges and their properties 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 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 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 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 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 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; int m_mainNode; bool m_mainNodeHasBeenSet; Aws::Vector m_nodeRangeProperties; bool m_nodeRangePropertiesHasBeenSet; }; } // namespace Model } // namespace Batch } // namespace Aws