Package io.github.cdklabs.projen.github
Class AutoMergeOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.github.AutoMergeOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AutoMergeOptions>
- Enclosing interface:
- AutoMergeOptions
@Stability(Experimental) public static final class AutoMergeOptions.Builder extends Object implements software.amazon.jsii.Builder<AutoMergeOptions>
A builder forAutoMergeOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoMergeOptions.BuilderapprovedReviews(Number approvedReviews)Sets the value ofAutoMergeOptions.getApprovedReviews()AutoMergeOptions.BuilderblockingLabels(List<String> blockingLabels)Sets the value ofAutoMergeOptions.getBlockingLabels()AutoMergeOptionsbuild()Builds the configured instance.AutoMergeOptions.BuilderqueueName(String queueName)Sets the value ofAutoMergeOptions.getQueueName()AutoMergeOptions.BuilderruleName(String ruleName)Sets the value ofAutoMergeOptions.getRuleName()
-
-
-
Method Detail
-
approvedReviews
@Stability(Experimental) public AutoMergeOptions.Builder approvedReviews(Number approvedReviews)
Sets the value ofAutoMergeOptions.getApprovedReviews()- Parameters:
approvedReviews- Number of approved code reviews.- Returns:
this
-
blockingLabels
@Stability(Experimental) public AutoMergeOptions.Builder blockingLabels(List<String> blockingLabels)
Sets the value ofAutoMergeOptions.getBlockingLabels()- Parameters:
blockingLabels- List of labels that will prevent auto-merging.- Returns:
this
-
queueName
@Stability(Experimental) public AutoMergeOptions.Builder queueName(String queueName)
Sets the value ofAutoMergeOptions.getQueueName()- Parameters:
queueName- Name of the mergify queue.- Returns:
this
-
ruleName
@Stability(Experimental) public AutoMergeOptions.Builder ruleName(String ruleName)
Sets the value ofAutoMergeOptions.getRuleName()- Parameters:
ruleName- Name of the mergify rule.- Returns:
this
-
build
@Stability(Experimental) public AutoMergeOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AutoMergeOptions>- Returns:
- a new instance of
AutoMergeOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-