Package io.github.cdklabs.projen.github
Class DependabotIgnore.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.github.DependabotIgnore.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DependabotIgnore>
- Enclosing interface:
- DependabotIgnore
@Stability(Experimental) public static final class DependabotIgnore.Builder extends Object implements software.amazon.jsii.Builder<DependabotIgnore>
A builder forDependabotIgnore
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DependabotIgnorebuild()Builds the configured instance.DependabotIgnore.BuilderdependencyName(String dependencyName)Sets the value ofDependabotIgnore.getDependencyName()DependabotIgnore.Builderversions(List<String> versions)Sets the value ofDependabotIgnore.getVersions()
-
-
-
Method Detail
-
dependencyName
@Stability(Experimental) public DependabotIgnore.Builder dependencyName(String dependencyName)
Sets the value ofDependabotIgnore.getDependencyName()- Parameters:
dependencyName- Use to ignore updates for dependencies with matching names, optionally using*to match zero or more characters. This parameter is required. For Java dependencies, the format of the dependency-name attribute is:groupId:artifactId, for example:org.kohsuke:github-api.- Returns:
this
-
versions
@Stability(Experimental) public DependabotIgnore.Builder versions(List<String> versions)
Sets the value ofDependabotIgnore.getVersions()- Parameters:
versions- Use to ignore specific versions or ranges of versions. If you want to define a range, use the standard pattern for the package manager (for example:^1.0.0for npm, or~> 2.0for Bundler).- Returns:
this
-
build
@Stability(Experimental) public DependabotIgnore build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DependabotIgnore>- Returns:
- a new instance of
DependabotIgnore - Throws:
NullPointerException- if any required attribute was not provided
-
-