Interface Workflow.Builder

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

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

    • name

      The name of the workflow.

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

      Workflow.Builder description(String description)

      A description of the workflow.

      Parameters:
      description - A description of the workflow.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • defaultRunProperties

      Workflow.Builder defaultRunProperties(Map<String,String> defaultRunProperties)

      A collection of properties to be used as part of each execution of the workflow. The run properties are made available to each job in the workflow. A job can modify the properties for the next jobs in the flow.

      Parameters:
      defaultRunProperties - A collection of properties to be used as part of each execution of the workflow. The run properties are made available to each job in the workflow. A job can modify the properties for the next jobs in the flow.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdOn

      Workflow.Builder createdOn(Instant createdOn)

      The date and time when the workflow was created.

      Parameters:
      createdOn - The date and time when the workflow was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastModifiedOn

      Workflow.Builder lastModifiedOn(Instant lastModifiedOn)

      The date and time when the workflow was last modified.

      Parameters:
      lastModifiedOn - The date and time when the workflow was last modified.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastRun

      Workflow.Builder lastRun(WorkflowRun lastRun)

      The information about the last execution of the workflow.

      Parameters:
      lastRun - The information about the last execution of the workflow.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastRun

      default Workflow.Builder lastRun(Consumer<WorkflowRun.Builder> lastRun)

      The information about the last execution of the workflow.

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

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

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

      The graph representing all the Glue components that belong to the workflow as nodes and directed connections between them as edges.

      Parameters:
      graph - The graph representing all the Glue components that belong to the workflow as nodes and directed connections between them as edges.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • graph

      The graph representing all the Glue components that belong to the workflow as nodes and directed connections between them as edges.

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

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

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

      Workflow.Builder maxConcurrentRuns(Integer maxConcurrentRuns)

      You can use this parameter to prevent unwanted multiple updates to data, to control costs, or in some cases, to prevent exceeding the maximum number of concurrent runs of any of the component jobs. If you leave this parameter blank, there is no limit to the number of concurrent workflow runs.

      Parameters:
      maxConcurrentRuns - You can use this parameter to prevent unwanted multiple updates to data, to control costs, or in some cases, to prevent exceeding the maximum number of concurrent runs of any of the component jobs. If you leave this parameter blank, there is no limit to the number of concurrent workflow runs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • blueprintDetails

      Workflow.Builder blueprintDetails(BlueprintDetails blueprintDetails)

      This structure indicates the details of the blueprint that this particular workflow is created from.

      Parameters:
      blueprintDetails - This structure indicates the details of the blueprint that this particular workflow is created from.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • blueprintDetails

      default Workflow.Builder blueprintDetails(Consumer<BlueprintDetails.Builder> blueprintDetails)

      This structure indicates the details of the blueprint that this particular workflow is created from.

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

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

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