Class WorkflowConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.alpha.WorkflowConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WorkflowConfiguration>
- Enclosing interface:
WorkflowConfiguration
@Stability(Experimental)
public static final class WorkflowConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<WorkflowConfiguration>
A builder for
WorkflowConfiguration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.onFailure(WorkflowOnFailure onFailure) Sets the value ofWorkflowConfiguration.getOnFailure()parallelGroup(String parallelGroup) Sets the value ofWorkflowConfiguration.getParallelGroup()parameters(Map<String, ? extends WorkflowParameterValue> parameters) Sets the value ofWorkflowConfiguration.getParameters()Sets the value ofWorkflowConfiguration.getWorkflow()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
workflow
Sets the value ofWorkflowConfiguration.getWorkflow()- Parameters:
workflow- The workflow to execute in the image build. This parameter is required.- Returns:
this
-
onFailure
@Stability(Experimental) public WorkflowConfiguration.Builder onFailure(WorkflowOnFailure onFailure) Sets the value ofWorkflowConfiguration.getOnFailure()- Parameters:
onFailure- The action to take if the workflow fails.- Returns:
this
-
parallelGroup
Sets the value ofWorkflowConfiguration.getParallelGroup()- Parameters:
parallelGroup- The named parallel group to include this workflow in. Workflows in the same parallel group run in parallel of each other.- Returns:
this
-
parameters
@Stability(Experimental) public WorkflowConfiguration.Builder parameters(Map<String, ? extends WorkflowParameterValue> parameters) Sets the value ofWorkflowConfiguration.getParameters()- Parameters:
parameters- The parameters to pass to the workflow at execution time.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WorkflowConfiguration>- Returns:
- a new instance of
WorkflowConfiguration - Throws:
NullPointerException- if any required attribute was not provided
-