Package io.github.cdklabs.projen.github
Class DependabotGroup.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.github.DependabotGroup.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DependabotGroup>
- Enclosing interface:
- DependabotGroup
@Stability(Experimental) public static final class DependabotGroup.Builder extends Object implements software.amazon.jsii.Builder<DependabotGroup>
A builder forDependabotGroup
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DependabotGroupbuild()Builds the configured instance.DependabotGroup.BuilderexcludePatterns(List<String> excludePatterns)Sets the value ofDependabotGroup.getExcludePatterns()DependabotGroup.Builderpatterns(List<String> patterns)Sets the value ofDependabotGroup.getPatterns()
-
-
-
Method Detail
-
patterns
@Stability(Experimental) public DependabotGroup.Builder patterns(List<String> patterns)
Sets the value ofDependabotGroup.getPatterns()- Parameters:
patterns- Define a list of strings (with or without wildcards) that will match package names to form this dependency group. This parameter is required.- Returns:
this
-
excludePatterns
@Stability(Experimental) public DependabotGroup.Builder excludePatterns(List<String> excludePatterns)
Sets the value ofDependabotGroup.getExcludePatterns()- Parameters:
excludePatterns- Optionally you can use this to exclude certain dependencies from the group.- Returns:
this
-
build
@Stability(Experimental) public DependabotGroup build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DependabotGroup>- Returns:
- a new instance of
DependabotGroup - Throws:
NullPointerException- if any required attribute was not provided
-
-