Class MergeGroupOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.github.workflows.MergeGroupOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MergeGroupOptions>
- Enclosing interface:
- MergeGroupOptions
@Stability(Experimental) public static final class MergeGroupOptions.Builder extends Object implements software.amazon.jsii.Builder<MergeGroupOptions>
A builder forMergeGroupOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MergeGroupOptions.Builderbranches(List<String> branches)Sets the value ofMergeGroupOptions.getBranches()MergeGroupOptionsbuild()Builds the configured instance.
-
-
-
Method Detail
-
branches
@Stability(Experimental) public MergeGroupOptions.Builder branches(List<String> branches)
Sets the value ofMergeGroupOptions.getBranches()- Parameters:
branches- When using the merge_group events, you can configure a workflow to run on specific base branches. If not specified, all branches will trigger the workflow.- Returns:
this
-
build
@Stability(Experimental) public MergeGroupOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MergeGroupOptions>- Returns:
- a new instance of
MergeGroupOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-