Class PushOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.github.workflows.PushOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PushOptions>
- Enclosing interface:
- PushOptions
@Stability(Experimental) public static final class PushOptions.Builder extends Object implements software.amazon.jsii.Builder<PushOptions>
A builder forPushOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PushOptions.Builderbranches(List<String> branches)Sets the value ofPushOptions.getBranches()PushOptionsbuild()Builds the configured instance.PushOptions.Builderpaths(List<String> paths)Sets the value ofPushOptions.getPaths()PushOptions.Buildertags(List<String> tags)Sets the value ofPushOptions.getTags()
-
-
-
Method Detail
-
branches
@Stability(Experimental) public PushOptions.Builder branches(List<String> branches)
Sets the value ofPushOptions.getBranches()- Parameters:
branches- When using the push, pull_request and pull_request_target events, you can configure a workflow to run on specific branches or tags. For a pull_request event, only branches and tags on the base are evaluated. If you define only tags or only branches, the workflow won't run for events affecting the undefined Git ref.- Returns:
this
-
paths
@Stability(Experimental) public PushOptions.Builder paths(List<String> paths)
Sets the value ofPushOptions.getPaths()- Parameters:
paths- When using the push, pull_request and pull_request_target events, you can configure a workflow to run when at least one file does not match paths-ignore or at least one modified file matches the configured paths. Path filters are not evaluated for pushes to tags.- Returns:
this
-
tags
@Stability(Experimental) public PushOptions.Builder tags(List<String> tags)
Sets the value ofPushOptions.getTags()- Parameters:
tags- When using the push, pull_request and pull_request_target events, you can configure a workflow to run on specific branches or tags. For a pull_request event, only branches and tags on the base are evaluated. If you define only tags or only branches, the workflow won't run for events affecting the undefined Git ref.- Returns:
this
-
build
@Stability(Experimental) public PushOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PushOptions>- Returns:
- a new instance of
PushOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-