Package io.github.cdklabs.projen.github
Class MergifyRule.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.github.MergifyRule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<MergifyRule>
- Enclosing interface:
- MergifyRule
@Stability(Experimental) public static final class MergifyRule.Builder extends Object implements software.amazon.jsii.Builder<MergifyRule>
A builder forMergifyRule
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MergifyRule.Builderactions(Map<String,? extends Object> actions)Sets the value ofMergifyRule.getActions()MergifyRulebuild()Builds the configured instance.MergifyRule.Builderconditions(List<? extends Object> conditions)Sets the value ofMergifyRule.getConditions()MergifyRule.Buildername(String name)Sets the value ofMergifyRule.getName()
-
-
-
Method Detail
-
actions
@Stability(Experimental) public MergifyRule.Builder actions(Map<String,? extends Object> actions)
Sets the value ofMergifyRule.getActions()- Parameters:
actions- A dictionary made of Actions that will be executed on the matching pull requests. This parameter is required.- Returns:
this
-
conditions
@Stability(Experimental) public MergifyRule.Builder conditions(List<? extends Object> conditions)
Sets the value ofMergifyRule.getConditions()- Parameters:
conditions- A list of Conditions string that must match against the pull request for the rule to be applied. This parameter is required.- Returns:
this
-
name
@Stability(Experimental) public MergifyRule.Builder name(String name)
Sets the value ofMergifyRule.getName()- Parameters:
name- The name of the rule. This parameter is required. This is not used by the engine directly, but is used when reporting information about a rule.- Returns:
this
-
build
@Stability(Experimental) public MergifyRule build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<MergifyRule>- Returns:
- a new instance of
MergifyRule - Throws:
NullPointerException- if any required attribute was not provided
-
-