Package io.github.cdklabs.projen
Class GitpodPrebuilds.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.GitpodPrebuilds.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<GitpodPrebuilds>
- Enclosing interface:
- GitpodPrebuilds
@Stability(Experimental) public static final class GitpodPrebuilds.Builder extends Object implements software.amazon.jsii.Builder<GitpodPrebuilds>
A builder forGitpodPrebuilds
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitpodPrebuilds.BuilderaddBadge(Boolean addBadge)Sets the value ofGitpodPrebuilds.getAddBadge()GitpodPrebuilds.BuilderaddCheck(Boolean addCheck)Sets the value ofGitpodPrebuilds.getAddCheck()GitpodPrebuilds.BuilderaddComment(Boolean addComment)Sets the value ofGitpodPrebuilds.getAddComment()GitpodPrebuilds.BuilderaddLabel(Boolean addLabel)Sets the value ofGitpodPrebuilds.getAddLabel()GitpodPrebuilds.Builderbranches(Boolean branches)Sets the value ofGitpodPrebuilds.getBranches()GitpodPrebuildsbuild()Builds the configured instance.GitpodPrebuilds.Buildermaster(Boolean master)Sets the value ofGitpodPrebuilds.getMaster()GitpodPrebuilds.BuilderpullRequests(Boolean pullRequests)Sets the value ofGitpodPrebuilds.getPullRequests()GitpodPrebuilds.BuilderpullRequestsFromForks(Boolean pullRequestsFromForks)Sets the value ofGitpodPrebuilds.getPullRequestsFromForks()
-
-
-
Method Detail
-
addBadge
@Stability(Experimental) public GitpodPrebuilds.Builder addBadge(Boolean addBadge)
Sets the value ofGitpodPrebuilds.getAddBadge()- Parameters:
addBadge- Add a "Review in Gitpod" button to the pull request's description.- Returns:
this
-
addCheck
@Stability(Experimental) public GitpodPrebuilds.Builder addCheck(Boolean addCheck)
Sets the value ofGitpodPrebuilds.getAddCheck()- Parameters:
addCheck- Add a check to pull requests.- Returns:
this
-
addComment
@Stability(Experimental) public GitpodPrebuilds.Builder addComment(Boolean addComment)
Sets the value ofGitpodPrebuilds.getAddComment()- Parameters:
addComment- Add a "Review in Gitpod" button as a comment to pull requests.- Returns:
this
-
addLabel
@Stability(Experimental) public GitpodPrebuilds.Builder addLabel(Boolean addLabel)
Sets the value ofGitpodPrebuilds.getAddLabel()- Parameters:
addLabel- Add a label once the prebuild is ready to pull requests.- Returns:
this
-
branches
@Stability(Experimental) public GitpodPrebuilds.Builder branches(Boolean branches)
Sets the value ofGitpodPrebuilds.getBranches()- Parameters:
branches- Enable for all branches in this repo.- Returns:
this
-
master
@Stability(Experimental) public GitpodPrebuilds.Builder master(Boolean master)
Sets the value ofGitpodPrebuilds.getMaster()- Parameters:
master- Enable for the master/default branch.- Returns:
this
-
pullRequests
@Stability(Experimental) public GitpodPrebuilds.Builder pullRequests(Boolean pullRequests)
Sets the value ofGitpodPrebuilds.getPullRequests()- Parameters:
pullRequests- Enable for pull requests coming from this repo.- Returns:
this
-
pullRequestsFromForks
@Stability(Experimental) public GitpodPrebuilds.Builder pullRequestsFromForks(Boolean pullRequestsFromForks)
Sets the value ofGitpodPrebuilds.getPullRequestsFromForks()- Parameters:
pullRequestsFromForks- Enable for pull requests coming from forks.- Returns:
this
-
build
@Stability(Experimental) public GitpodPrebuilds build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GitpodPrebuilds>- Returns:
- a new instance of
GitpodPrebuilds - Throws:
NullPointerException- if any required attribute was not provided
-
-