/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

Represents a node in a directed acyclic graph (DAG)

See Also:

* AWS * API Reference

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

A node identifier that is unique within the node's graph.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

A node identifier that is unique within the node's graph.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

A node identifier that is unique within the node's graph.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

A node identifier that is unique within the node's graph.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

A node identifier that is unique within the node's graph.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

A node identifier that is unique within the node's graph.

*/ inline CodeGenNode& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

A node identifier that is unique within the node's graph.

*/ inline CodeGenNode& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

A node identifier that is unique within the node's graph.

*/ inline CodeGenNode& WithId(const char* value) { SetId(value); return *this;} /** *

The type of node that this is.

*/ inline const Aws::String& GetNodeType() const{ return m_nodeType; } /** *

The type of node that this is.

*/ inline bool NodeTypeHasBeenSet() const { return m_nodeTypeHasBeenSet; } /** *

The type of node that this is.

*/ inline void SetNodeType(const Aws::String& value) { m_nodeTypeHasBeenSet = true; m_nodeType = value; } /** *

The type of node that this is.

*/ inline void SetNodeType(Aws::String&& value) { m_nodeTypeHasBeenSet = true; m_nodeType = std::move(value); } /** *

The type of node that this is.

*/ inline void SetNodeType(const char* value) { m_nodeTypeHasBeenSet = true; m_nodeType.assign(value); } /** *

The type of node that this is.

*/ inline CodeGenNode& WithNodeType(const Aws::String& value) { SetNodeType(value); return *this;} /** *

The type of node that this is.

*/ inline CodeGenNode& WithNodeType(Aws::String&& value) { SetNodeType(std::move(value)); return *this;} /** *

The type of node that this is.

*/ inline CodeGenNode& WithNodeType(const char* value) { SetNodeType(value); return *this;} /** *

Properties of the node, in the form of name-value pairs.

*/ inline const Aws::Vector& GetArgs() const{ return m_args; } /** *

Properties of the node, in the form of name-value pairs.

*/ inline bool ArgsHasBeenSet() const { return m_argsHasBeenSet; } /** *

Properties of the node, in the form of name-value pairs.

*/ inline void SetArgs(const Aws::Vector& value) { m_argsHasBeenSet = true; m_args = value; } /** *

Properties of the node, in the form of name-value pairs.

*/ inline void SetArgs(Aws::Vector&& value) { m_argsHasBeenSet = true; m_args = std::move(value); } /** *

Properties of the node, in the form of name-value pairs.

*/ inline CodeGenNode& WithArgs(const Aws::Vector& value) { SetArgs(value); return *this;} /** *

Properties of the node, in the form of name-value pairs.

*/ inline CodeGenNode& WithArgs(Aws::Vector&& value) { SetArgs(std::move(value)); return *this;} /** *

Properties of the node, in the form of name-value pairs.

*/ inline CodeGenNode& AddArgs(const CodeGenNodeArg& value) { m_argsHasBeenSet = true; m_args.push_back(value); return *this; } /** *

Properties of the node, in the form of name-value pairs.

*/ inline CodeGenNode& AddArgs(CodeGenNodeArg&& value) { m_argsHasBeenSet = true; m_args.push_back(std::move(value)); return *this; } /** *

The line number of the node.

*/ inline int GetLineNumber() const{ return m_lineNumber; } /** *

The line number of the node.

*/ inline bool LineNumberHasBeenSet() const { return m_lineNumberHasBeenSet; } /** *

The line number of the node.

*/ inline void SetLineNumber(int value) { m_lineNumberHasBeenSet = true; m_lineNumber = value; } /** *

The line number of the node.

*/ inline CodeGenNode& WithLineNumber(int value) { SetLineNumber(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_nodeType; bool m_nodeTypeHasBeenSet = false; Aws::Vector m_args; bool m_argsHasBeenSet = false; int m_lineNumber; bool m_lineNumberHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws