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

Represents a directional edge in a directed acyclic graph * (DAG).

See Also:

AWS * API Reference

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

The ID of the node at which the edge starts.

*/ inline const Aws::String& GetSource() const{ return m_source; } /** *

The ID of the node at which the edge starts.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The ID of the node at which the edge starts.

*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The ID of the node at which the edge starts.

*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The ID of the node at which the edge starts.

*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *

The ID of the node at which the edge starts.

*/ inline CodeGenEdge& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *

The ID of the node at which the edge starts.

*/ inline CodeGenEdge& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *

The ID of the node at which the edge starts.

*/ inline CodeGenEdge& WithSource(const char* value) { SetSource(value); return *this;} /** *

The ID of the node at which the edge ends.

*/ inline const Aws::String& GetTarget() const{ return m_target; } /** *

The ID of the node at which the edge ends.

*/ inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; } /** *

The ID of the node at which the edge ends.

*/ inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; } /** *

The ID of the node at which the edge ends.

*/ inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); } /** *

The ID of the node at which the edge ends.

*/ inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); } /** *

The ID of the node at which the edge ends.

*/ inline CodeGenEdge& WithTarget(const Aws::String& value) { SetTarget(value); return *this;} /** *

The ID of the node at which the edge ends.

*/ inline CodeGenEdge& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;} /** *

The ID of the node at which the edge ends.

*/ inline CodeGenEdge& WithTarget(const char* value) { SetTarget(value); return *this;} /** *

The target of the edge.

*/ inline const Aws::String& GetTargetParameter() const{ return m_targetParameter; } /** *

The target of the edge.

*/ inline bool TargetParameterHasBeenSet() const { return m_targetParameterHasBeenSet; } /** *

The target of the edge.

*/ inline void SetTargetParameter(const Aws::String& value) { m_targetParameterHasBeenSet = true; m_targetParameter = value; } /** *

The target of the edge.

*/ inline void SetTargetParameter(Aws::String&& value) { m_targetParameterHasBeenSet = true; m_targetParameter = std::move(value); } /** *

The target of the edge.

*/ inline void SetTargetParameter(const char* value) { m_targetParameterHasBeenSet = true; m_targetParameter.assign(value); } /** *

The target of the edge.

*/ inline CodeGenEdge& WithTargetParameter(const Aws::String& value) { SetTargetParameter(value); return *this;} /** *

The target of the edge.

*/ inline CodeGenEdge& WithTargetParameter(Aws::String&& value) { SetTargetParameter(std::move(value)); return *this;} /** *

The target of the edge.

*/ inline CodeGenEdge& WithTargetParameter(const char* value) { SetTargetParameter(value); return *this;} private: Aws::String m_source; bool m_sourceHasBeenSet = false; Aws::String m_target; bool m_targetHasBeenSet = false; Aws::String m_targetParameter; bool m_targetParameterHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws