Package io.github.cdklabs.projen.gitlab
Class WorkflowRule.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.gitlab.WorkflowRule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<WorkflowRule>
- Enclosing interface:
- WorkflowRule
@Stability(Experimental) public static final class WorkflowRule.Builder extends Object implements software.amazon.jsii.Builder<WorkflowRule>
A builder forWorkflowRule
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowRulebuild()Builds the configured instance.WorkflowRule.Builderchanges(List<String> changes)Sets the value ofWorkflowRule.getChanges()WorkflowRule.Builderexists(List<String> exists)Sets the value ofWorkflowRule.getExists()WorkflowRule.BuilderifValue(String ifValue)Sets the value ofWorkflowRule.getIfValue()WorkflowRule.Buildervariables(Map<String,? extends Object> variables)Sets the value ofWorkflowRule.getVariables()WorkflowRule.Builderwhen(JobWhen when)Sets the value ofWorkflowRule.getWhen()
-
-
-
Method Detail
-
changes
@Stability(Experimental) public WorkflowRule.Builder changes(List<String> changes)
Sets the value ofWorkflowRule.getChanges()- Parameters:
changes- the value to be set.- Returns:
this
-
exists
@Stability(Experimental) public WorkflowRule.Builder exists(List<String> exists)
Sets the value ofWorkflowRule.getExists()- Parameters:
exists- the value to be set.- Returns:
this
-
ifValue
@Stability(Experimental) public WorkflowRule.Builder ifValue(String ifValue)
Sets the value ofWorkflowRule.getIfValue()- Parameters:
ifValue- the value to be set.- Returns:
this
-
variables
@Stability(Experimental) public WorkflowRule.Builder variables(Map<String,? extends Object> variables)
Sets the value ofWorkflowRule.getVariables()- Parameters:
variables- the value to be set.- Returns:
this
-
when
@Stability(Experimental) public WorkflowRule.Builder when(JobWhen when)
Sets the value ofWorkflowRule.getWhen()- Parameters:
when- the value to be set.- Returns:
this
-
build
@Stability(Experimental) public WorkflowRule build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WorkflowRule>- Returns:
- a new instance of
WorkflowRule - Throws:
NullPointerException- if any required attribute was not provided
-
-