Class SemverGroup.Builder
- java.lang.Object
-
- software.aws.awsprototypingsdk.nxmonorepo.SemverGroup.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SemverGroup>
- Enclosing interface:
- SemverGroup
@Stability(Stable) public static final class SemverGroup.Builder extends Object implements software.amazon.jsii.Builder<SemverGroup>
A builder forSemverGroup
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SemverGroupbuild()Builds the configured instance.SemverGroup.Builderdependencies(List<String> dependencies)Sets the value ofSemverGroup.getDependencies()SemverGroup.BuilderdependencyTypes(List<String> dependencyTypes)Sets the value ofSemverGroup.getDependencyTypes()SemverGroup.Builderpackages(List<String> packages)Sets the value ofSemverGroup.getPackages()SemverGroup.Builderrange(String range)Sets the value ofSemverGroup.getRange()
-
-
-
Method Detail
-
dependencies
@Stability(Stable) public SemverGroup.Builder dependencies(List<String> dependencies)
Sets the value ofSemverGroup.getDependencies()- Parameters:
dependencies- the names of the dependencies (eg. This parameter is required. "lodash") which belong to this group- Returns:
this
-
packages
@Stability(Stable) public SemverGroup.Builder packages(List<String> packages)
Sets the value ofSemverGroup.getPackages()- Parameters:
packages- the names of packages in your monorepo which belong to this group, taken from the "name" field in package.json, not the package directory name. This parameter is required.- Returns:
this
-
range
@Stability(Stable) public SemverGroup.Builder range(String range)
Sets the value ofSemverGroup.getRange()- Parameters:
range- the semver range which dependencies in this group should use. This parameter is required.- Returns:
this
-
dependencyTypes
@Stability(Stable) public SemverGroup.Builder dependencyTypes(List<String> dependencyTypes)
Sets the value ofSemverGroup.getDependencyTypes()- Parameters:
dependencyTypes- optionally only apply this group to dependencies of the provided types.- Returns:
this
-
build
@Stability(Stable) public SemverGroup build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SemverGroup>- Returns:
- a new instance of
SemverGroup - Throws:
NullPointerException- if any required attribute was not provided
-
-