Interface WorkflowRun.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<WorkflowRun.Builder,WorkflowRun>,SdkBuilder<WorkflowRun.Builder,WorkflowRun>,SdkPojo
- Enclosing class:
- WorkflowRun
public static interface WorkflowRun.Builder extends SdkPojo, CopyableBuilder<WorkflowRun.Builder,WorkflowRun>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description WorkflowRun.BuildercompletedOn(Instant completedOn)The date and time when the workflow run completed.WorkflowRun.BuildererrorMessage(String errorMessage)This error message describes any error that may have occurred in starting the workflow run.default WorkflowRun.Buildergraph(Consumer<WorkflowGraph.Builder> graph)The graph representing all the Glue components that belong to the workflow as nodes and directed connections between them as edges.WorkflowRun.Buildergraph(WorkflowGraph graph)The graph representing all the Glue components that belong to the workflow as nodes and directed connections between them as edges.WorkflowRun.Buildername(String name)Name of the workflow that was run.WorkflowRun.BuilderpreviousRunId(String previousRunId)The ID of the previous workflow run.WorkflowRun.BuilderstartedOn(Instant startedOn)The date and time when the workflow run was started.default WorkflowRun.BuilderstartingEventBatchCondition(Consumer<StartingEventBatchCondition.Builder> startingEventBatchCondition)The batch condition that started the workflow run.WorkflowRun.BuilderstartingEventBatchCondition(StartingEventBatchCondition startingEventBatchCondition)The batch condition that started the workflow run.default WorkflowRun.Builderstatistics(Consumer<WorkflowRunStatistics.Builder> statistics)The statistics of the run.WorkflowRun.Builderstatistics(WorkflowRunStatistics statistics)The statistics of the run.WorkflowRun.Builderstatus(String status)The status of the workflow run.WorkflowRun.Builderstatus(WorkflowRunStatus status)The status of the workflow run.WorkflowRun.BuilderworkflowRunId(String workflowRunId)The ID of this workflow run.WorkflowRun.BuilderworkflowRunProperties(Map<String,String> workflowRunProperties)The workflow run properties which were set during the run.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
name
WorkflowRun.Builder name(String name)
Name of the workflow that was run.
- Parameters:
name- Name of the workflow that was run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workflowRunId
WorkflowRun.Builder workflowRunId(String workflowRunId)
The ID of this workflow run.
- Parameters:
workflowRunId- The ID of this workflow run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
previousRunId
WorkflowRun.Builder previousRunId(String previousRunId)
The ID of the previous workflow run.
- Parameters:
previousRunId- The ID of the previous workflow run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workflowRunProperties
WorkflowRun.Builder workflowRunProperties(Map<String,String> workflowRunProperties)
The workflow run properties which were set during the run.
- Parameters:
workflowRunProperties- The workflow run properties which were set during the run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startedOn
WorkflowRun.Builder startedOn(Instant startedOn)
The date and time when the workflow run was started.
- Parameters:
startedOn- The date and time when the workflow run was started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
completedOn
WorkflowRun.Builder completedOn(Instant completedOn)
The date and time when the workflow run completed.
- Parameters:
completedOn- The date and time when the workflow run completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
WorkflowRun.Builder status(String status)
The status of the workflow run.
- Parameters:
status- The status of the workflow run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
WorkflowRunStatus,WorkflowRunStatus
-
status
WorkflowRun.Builder status(WorkflowRunStatus status)
The status of the workflow run.
- Parameters:
status- The status of the workflow run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
WorkflowRunStatus,WorkflowRunStatus
-
errorMessage
WorkflowRun.Builder errorMessage(String errorMessage)
This error message describes any error that may have occurred in starting the workflow run. Currently the only error message is "Concurrent runs exceeded for workflow:
foo."- Parameters:
errorMessage- This error message describes any error that may have occurred in starting the workflow run. Currently the only error message is "Concurrent runs exceeded for workflow:foo."- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statistics
WorkflowRun.Builder statistics(WorkflowRunStatistics statistics)
The statistics of the run.
- Parameters:
statistics- The statistics of the run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statistics
default WorkflowRun.Builder statistics(Consumer<WorkflowRunStatistics.Builder> statistics)
The statistics of the run.
This is a convenience method that creates an instance of theWorkflowRunStatistics.Builderavoiding the need to create one manually viaWorkflowRunStatistics.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostatistics(WorkflowRunStatistics).- Parameters:
statistics- a consumer that will call methods onWorkflowRunStatistics.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
statistics(WorkflowRunStatistics)
-
graph
WorkflowRun.Builder graph(WorkflowGraph 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
default WorkflowRun.Builder graph(Consumer<WorkflowGraph.Builder> 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 theWorkflowGraph.Builderavoiding the need to create one manually viaWorkflowGraph.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tograph(WorkflowGraph).- Parameters:
graph- a consumer that will call methods onWorkflowGraph.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
graph(WorkflowGraph)
-
startingEventBatchCondition
WorkflowRun.Builder startingEventBatchCondition(StartingEventBatchCondition startingEventBatchCondition)
The batch condition that started the workflow run.
- Parameters:
startingEventBatchCondition- The batch condition that started the workflow run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startingEventBatchCondition
default WorkflowRun.Builder startingEventBatchCondition(Consumer<StartingEventBatchCondition.Builder> startingEventBatchCondition)
The batch condition that started the workflow run.
This is a convenience method that creates an instance of theStartingEventBatchCondition.Builderavoiding the need to create one manually viaStartingEventBatchCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostartingEventBatchCondition(StartingEventBatchCondition).- Parameters:
startingEventBatchCondition- a consumer that will call methods onStartingEventBatchCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
startingEventBatchCondition(StartingEventBatchCondition)
-
-