Interface Step.Builder

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

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

    • name

      Step.Builder name(String name)

      The name of the step.

      Parameters:
      name - The name of the step.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      Step.Builder description(String description)

      The description of the step.

      Parameters:
      description - The description of the step.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • action

      Step.Builder action(StepAction action)

      The action of the step.

      Parameters:
      action - The action of the step.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • action

      default Step.Builder action(Consumer<StepAction.Builder> action)

      The action of the step.

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

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

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