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

See Also:

AWS * API Reference

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

The range of nodes, using node index values. A range of 0:3 * indicates nodes with index values of 0 through 3. If * the starting range value is omitted (:n), then 0 is * used to start the range. If the ending range value is omitted (n:), * then the highest possible node index is used to end the range. Your accumulative * node ranges must account for all nodes (0:n). You can nest node * ranges (for example, 0:10 and 4:5). In this case, the * 4:5 range properties override the 0:10 properties.

*/ inline const Aws::String& GetTargetNodes() const{ return m_targetNodes; } /** *

The range of nodes, using node index values. A range of 0:3 * indicates nodes with index values of 0 through 3. If * the starting range value is omitted (:n), then 0 is * used to start the range. If the ending range value is omitted (n:), * then the highest possible node index is used to end the range. Your accumulative * node ranges must account for all nodes (0:n). You can nest node * ranges (for example, 0:10 and 4:5). In this case, the * 4:5 range properties override the 0:10 properties.

*/ inline bool TargetNodesHasBeenSet() const { return m_targetNodesHasBeenSet; } /** *

The range of nodes, using node index values. A range of 0:3 * indicates nodes with index values of 0 through 3. If * the starting range value is omitted (:n), then 0 is * used to start the range. If the ending range value is omitted (n:), * then the highest possible node index is used to end the range. Your accumulative * node ranges must account for all nodes (0:n). You can nest node * ranges (for example, 0:10 and 4:5). In this case, the * 4:5 range properties override the 0:10 properties.

*/ inline void SetTargetNodes(const Aws::String& value) { m_targetNodesHasBeenSet = true; m_targetNodes = value; } /** *

The range of nodes, using node index values. A range of 0:3 * indicates nodes with index values of 0 through 3. If * the starting range value is omitted (:n), then 0 is * used to start the range. If the ending range value is omitted (n:), * then the highest possible node index is used to end the range. Your accumulative * node ranges must account for all nodes (0:n). You can nest node * ranges (for example, 0:10 and 4:5). In this case, the * 4:5 range properties override the 0:10 properties.

*/ inline void SetTargetNodes(Aws::String&& value) { m_targetNodesHasBeenSet = true; m_targetNodes = std::move(value); } /** *

The range of nodes, using node index values. A range of 0:3 * indicates nodes with index values of 0 through 3. If * the starting range value is omitted (:n), then 0 is * used to start the range. If the ending range value is omitted (n:), * then the highest possible node index is used to end the range. Your accumulative * node ranges must account for all nodes (0:n). You can nest node * ranges (for example, 0:10 and 4:5). In this case, the * 4:5 range properties override the 0:10 properties.

*/ inline void SetTargetNodes(const char* value) { m_targetNodesHasBeenSet = true; m_targetNodes.assign(value); } /** *

The range of nodes, using node index values. A range of 0:3 * indicates nodes with index values of 0 through 3. If * the starting range value is omitted (:n), then 0 is * used to start the range. If the ending range value is omitted (n:), * then the highest possible node index is used to end the range. Your accumulative * node ranges must account for all nodes (0:n). You can nest node * ranges (for example, 0:10 and 4:5). In this case, the * 4:5 range properties override the 0:10 properties.

*/ inline NodeRangeProperty& WithTargetNodes(const Aws::String& value) { SetTargetNodes(value); return *this;} /** *

The range of nodes, using node index values. A range of 0:3 * indicates nodes with index values of 0 through 3. If * the starting range value is omitted (:n), then 0 is * used to start the range. If the ending range value is omitted (n:), * then the highest possible node index is used to end the range. Your accumulative * node ranges must account for all nodes (0:n). You can nest node * ranges (for example, 0:10 and 4:5). In this case, the * 4:5 range properties override the 0:10 properties.

*/ inline NodeRangeProperty& WithTargetNodes(Aws::String&& value) { SetTargetNodes(std::move(value)); return *this;} /** *

The range of nodes, using node index values. A range of 0:3 * indicates nodes with index values of 0 through 3. If * the starting range value is omitted (:n), then 0 is * used to start the range. If the ending range value is omitted (n:), * then the highest possible node index is used to end the range. Your accumulative * node ranges must account for all nodes (0:n). You can nest node * ranges (for example, 0:10 and 4:5). In this case, the * 4:5 range properties override the 0:10 properties.

*/ inline NodeRangeProperty& WithTargetNodes(const char* value) { SetTargetNodes(value); return *this;} /** *

The container details for the node range.

*/ inline const ContainerProperties& GetContainer() const{ return m_container; } /** *

The container details for the node range.

*/ inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; } /** *

The container details for the node range.

*/ inline void SetContainer(const ContainerProperties& value) { m_containerHasBeenSet = true; m_container = value; } /** *

The container details for the node range.

*/ inline void SetContainer(ContainerProperties&& value) { m_containerHasBeenSet = true; m_container = std::move(value); } /** *

The container details for the node range.

*/ inline NodeRangeProperty& WithContainer(const ContainerProperties& value) { SetContainer(value); return *this;} /** *

The container details for the node range.

*/ inline NodeRangeProperty& WithContainer(ContainerProperties&& value) { SetContainer(std::move(value)); return *this;} private: Aws::String m_targetNodes; bool m_targetNodesHasBeenSet = false; ContainerProperties m_container; bool m_containerHasBeenSet = false; }; } // namespace Model } // namespace Batch } // namespace Aws