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