/** * 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 { /** *

The object that represents any node overrides to a job definition that's used * in a SubmitJob API operation.

See Also:

AWS * API Reference

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

The range of nodes, using node index values, that's used to override. 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.

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

The range of nodes, using node index values, that's used to override. 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.

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

The range of nodes, using node index values, that's used to override. 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.

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

The range of nodes, using node index values, that's used to override. 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.

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

The range of nodes, using node index values, that's used to override. 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.

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

The range of nodes, using node index values, that's used to override. 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.

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

The range of nodes, using node index values, that's used to override. 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.

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

The range of nodes, using node index values, that's used to override. 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.

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

The overrides that are sent to a node range.

*/ inline const ContainerOverrides& GetContainerOverrides() const{ return m_containerOverrides; } /** *

The overrides that are sent to a node range.

*/ inline bool ContainerOverridesHasBeenSet() const { return m_containerOverridesHasBeenSet; } /** *

The overrides that are sent to a node range.

*/ inline void SetContainerOverrides(const ContainerOverrides& value) { m_containerOverridesHasBeenSet = true; m_containerOverrides = value; } /** *

The overrides that are sent to a node range.

*/ inline void SetContainerOverrides(ContainerOverrides&& value) { m_containerOverridesHasBeenSet = true; m_containerOverrides = std::move(value); } /** *

The overrides that are sent to a node range.

*/ inline NodePropertyOverride& WithContainerOverrides(const ContainerOverrides& value) { SetContainerOverrides(value); return *this;} /** *

The overrides that are sent to a node range.

*/ inline NodePropertyOverride& WithContainerOverrides(ContainerOverrides&& value) { SetContainerOverrides(std::move(value)); return *this;} private: Aws::String m_targetNodes; bool m_targetNodesHasBeenSet = false; ContainerOverrides m_containerOverrides; bool m_containerOverridesHasBeenSet = false; }; } // namespace Model } // namespace Batch } // namespace Aws