Interface CodeGenNode.Builder

All Superinterfaces:
Buildable, CopyableBuilder<CodeGenNode.Builder,CodeGenNode>, SdkBuilder<CodeGenNode.Builder,CodeGenNode>, SdkPojo
Enclosing class:
CodeGenNode

public static interface CodeGenNode.Builder extends SdkPojo, CopyableBuilder<CodeGenNode.Builder,CodeGenNode>
  • Method Details

    • id

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

      Parameters:
      id - A node identifier that is unique within the node's graph.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • nodeType

      CodeGenNode.Builder nodeType(String nodeType)

      The type of node that this is.

      Parameters:
      nodeType - The type of node that this is.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • args

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

      Parameters:
      args - Properties of the node, in the form of name-value pairs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • args

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

      Parameters:
      args - Properties of the node, in the form of name-value pairs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • args

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

      This is a convenience method that creates an instance of the CodeGenNodeArg.Builder avoiding the need to create one manually via CodeGenNodeArg.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to args(List<CodeGenNodeArg>).

      Parameters:
      args - a consumer that will call methods on CodeGenNodeArg.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lineNumber

      CodeGenNode.Builder lineNumber(Integer lineNumber)

      The line number of the node.

      Parameters:
      lineNumber - The line number of the node.
      Returns:
      Returns a reference to this object so that method calls can be chained together.