Interface Flow.Builder

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

@Mutable @NotThreadSafe public static interface Flow.Builder extends SdkPojo, CopyableBuilder<Flow.Builder,Flow>
  • Method Details

    • name

      Flow.Builder name(String name)

      The flow's name, unique within the link.

      Parameters:
      name - The flow's name, unique within the link.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pipeline

      Flow.Builder pipeline(FlowPipeline pipeline)

      The pipeline that the flow's modules run in. In a sequential pipeline, each module sees the previous module's output. In a phased pipeline, a phase's modules see the prior phase's output, not each other's.

      Parameters:
      pipeline - The pipeline that the flow's modules run in. In a sequential pipeline, each module sees the previous module's output. In a phased pipeline, a phase's modules see the prior phase's output, not each other's.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pipeline

      default Flow.Builder pipeline(Consumer<FlowPipeline.Builder> pipeline)

      The pipeline that the flow's modules run in. In a sequential pipeline, each module sees the previous module's output. In a phased pipeline, a phase's modules see the prior phase's output, not each other's.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to pipeline(FlowPipeline).

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