Class UpgradeDependenciesWorkflowOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.javascript.UpgradeDependenciesWorkflowOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<UpgradeDependenciesWorkflowOptions>
- Enclosing interface:
- UpgradeDependenciesWorkflowOptions
@Stability(Experimental) public static final class UpgradeDependenciesWorkflowOptions.Builder extends Object implements software.amazon.jsii.Builder<UpgradeDependenciesWorkflowOptions>
A builder forUpgradeDependenciesWorkflowOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
assignees
@Stability(Experimental) public UpgradeDependenciesWorkflowOptions.Builder assignees(List<String> assignees)
Sets the value ofUpgradeDependenciesWorkflowOptions.getAssignees()- Parameters:
assignees- Assignees to add on the PR.- Returns:
this
-
branches
@Stability(Experimental) public UpgradeDependenciesWorkflowOptions.Builder branches(List<String> branches)
Sets the value ofUpgradeDependenciesWorkflowOptions.getBranches()- Parameters:
branches- List of branches to create PR's for.- Returns:
this
-
container
@Stability(Experimental) public UpgradeDependenciesWorkflowOptions.Builder container(ContainerOptions container)
Sets the value ofUpgradeDependenciesWorkflowOptions.getContainer()- Parameters:
container- Job container options.- Returns:
this
-
gitIdentity
@Stability(Experimental) public UpgradeDependenciesWorkflowOptions.Builder gitIdentity(GitIdentity gitIdentity)
Sets the value ofUpgradeDependenciesWorkflowOptions.getGitIdentity()- Parameters:
gitIdentity- The git identity to use for commits.- Returns:
this
-
labels
@Stability(Experimental) public UpgradeDependenciesWorkflowOptions.Builder labels(List<String> labels)
Sets the value ofUpgradeDependenciesWorkflowOptions.getLabels()- Parameters:
labels- Labels to apply on the PR.- Returns:
this
-
permissions
@Stability(Experimental) public UpgradeDependenciesWorkflowOptions.Builder permissions(JobPermissions permissions)
Sets the value ofUpgradeDependenciesWorkflowOptions.getPermissions()- Parameters:
permissions- Permissions granted to the upgrade job To limit job permissions forcontents, the desired permissions have to be explicitly set, e.g.:{ contents: JobPermission.NONE }.- Returns:
this
-
projenCredentials
@Stability(Experimental) public UpgradeDependenciesWorkflowOptions.Builder projenCredentials(GithubCredentials projenCredentials)
Sets the value ofUpgradeDependenciesWorkflowOptions.getProjenCredentials()- Parameters:
projenCredentials- Choose a method for authenticating with GitHub for creating the PR. When using the default github token, PR's created by this workflow will not trigger any subsequent workflows (i.e the build workflow), so projen requires API access to be provided through e.g. a personal access token or other method.- Returns:
this
-
runsOn
@Stability(Experimental) public UpgradeDependenciesWorkflowOptions.Builder runsOn(List<String> runsOn)
Sets the value ofUpgradeDependenciesWorkflowOptions.getRunsOn()- Parameters:
runsOn- Github Runner selection labels.- Returns:
this
-
runsOnGroup
@Stability(Experimental) public UpgradeDependenciesWorkflowOptions.Builder runsOnGroup(GroupRunnerOptions runsOnGroup)
Sets the value ofUpgradeDependenciesWorkflowOptions.getRunsOnGroup()- Parameters:
runsOnGroup- Github Runner Group selection options.- Returns:
this
-
schedule
@Stability(Experimental) public UpgradeDependenciesWorkflowOptions.Builder schedule(UpgradeDependenciesSchedule schedule)
Sets the value ofUpgradeDependenciesWorkflowOptions.getSchedule()- Parameters:
schedule- Schedule to run on.- Returns:
this
-
build
@Stability(Experimental) public UpgradeDependenciesWorkflowOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<UpgradeDependenciesWorkflowOptions>- Returns:
- a new instance of
UpgradeDependenciesWorkflowOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-