Package io.github.cdklabs.projen
Class DependencyCoordinates.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.DependencyCoordinates.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DependencyCoordinates>
- Enclosing interface:
- DependencyCoordinates
@Stability(Experimental) public static final class DependencyCoordinates.Builder extends Object implements software.amazon.jsii.Builder<DependencyCoordinates>
A builder forDependencyCoordinates
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DependencyCoordinatesbuild()Builds the configured instance.DependencyCoordinates.Buildername(String name)Sets the value ofDependencyCoordinates.getName()DependencyCoordinates.Builderversion(String version)Sets the value ofDependencyCoordinates.getVersion()
-
-
-
Method Detail
-
name
@Stability(Experimental) public DependencyCoordinates.Builder name(String name)
Sets the value ofDependencyCoordinates.getName()- Parameters:
name- The package manager name of the dependency (e.g.leftpadfor npm). This parameter is required. NOTE: For package managers that use complex coordinates (like Maven), we will codify it into a string somehow.- Returns:
this
-
version
@Stability(Experimental) public DependencyCoordinates.Builder version(String version)
Sets the value ofDependencyCoordinates.getVersion()- Parameters:
version- Semantic version version requirement.- Returns:
this
-
build
@Stability(Experimental) public DependencyCoordinates build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DependencyCoordinates>- Returns:
- a new instance of
DependencyCoordinates - Throws:
NullPointerException- if any required attribute was not provided
-
-