@Stability(value=Experimental) public static final class Dependency.Builder extends Object implements software.amazon.jsii.Builder<Dependency>
Dependency| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Dependency |
build()
Builds the configured instance.
|
Dependency.Builder |
metadata(Map<String,? extends Object> metadata)
Sets the value of
Dependency.getMetadata() |
Dependency.Builder |
name(String name)
Sets the value of
DependencyCoordinates.getName() |
Dependency.Builder |
type(DependencyType type)
Sets the value of
Dependency.getType() |
Dependency.Builder |
version(String version)
Sets the value of
DependencyCoordinates.getVersion() |
@Stability(value=Experimental) public Dependency.Builder type(DependencyType type)
Dependency.getType()type - Which type of dependency this is (runtime, build-time, etc). This parameter is required.this@Stability(value=Experimental) public Dependency.Builder metadata(Map<String,? extends Object> metadata)
Dependency.getMetadata()metadata - Additional JSON metadata associated with the dependency (package manager specific).this@Stability(value=Experimental) public Dependency.Builder name(String name)
DependencyCoordinates.getName()name - The package manager name of the dependency (e.g. `leftpad` for npm). This parameter is required.
NOTE: For package managers that use complex coordinates (like Maven), we
will codify it into a string somehow.this@Stability(value=Experimental) public Dependency.Builder version(String version)
DependencyCoordinates.getVersion()version - Semantic version version requirement.this@Stability(value=Experimental) public Dependency build()
build in interface software.amazon.jsii.Builder<Dependency>DependencyNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.