Class WorkflowRunOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.github.workflows.WorkflowRunOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<WorkflowRunOptions>
- Enclosing interface:
- WorkflowRunOptions
@Stability(Experimental) public static final class WorkflowRunOptions.Builder extends Object implements software.amazon.jsii.Builder<WorkflowRunOptions>
A builder forWorkflowRunOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowRunOptions.Builderbranches(List<String> branches)Sets the value ofWorkflowRunOptions.getBranches()WorkflowRunOptionsbuild()Builds the configured instance.WorkflowRunOptions.Buildertypes(List<String> types)Sets the value ofWorkflowRunOptions.getTypes()WorkflowRunOptions.Builderworkflows(List<String> workflows)Sets the value ofWorkflowRunOptions.getWorkflows()
-
-
-
Method Detail
-
branches
@Stability(Experimental) public WorkflowRunOptions.Builder branches(List<String> branches)
Sets the value ofWorkflowRunOptions.getBranches()- Parameters:
branches- Which branches or branch-ignore to limit the trigger to.- Returns:
this
-
types
@Stability(Experimental) public WorkflowRunOptions.Builder types(List<String> types)
Sets the value ofWorkflowRunOptions.getTypes()- Parameters:
types- Which activity types to trigger on.- Returns:
this
-
workflows
@Stability(Experimental) public WorkflowRunOptions.Builder workflows(List<String> workflows)
Sets the value ofWorkflowRunOptions.getWorkflows()- Parameters:
workflows- Which workflow to trigger on.- Returns:
this
-
build
@Stability(Experimental) public WorkflowRunOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WorkflowRunOptions>- Returns:
- a new instance of
WorkflowRunOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-