Class VersionGroup.Builder
- java.lang.Object
-
- software.aws.awsprototypingsdk.nxmonorepo.VersionGroup.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<VersionGroup>
- Enclosing interface:
- VersionGroup
@Stability(Stable) public static final class VersionGroup.Builder extends Object implements software.amazon.jsii.Builder<VersionGroup>
A builder forVersionGroup
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersionGroupbuild()Builds the configured instance.VersionGroup.Builderdependencies(List<String> dependencies)Sets the value ofVersionGroup.getDependencies()VersionGroup.BuilderdependencyTypes(List<String> dependencyTypes)Sets the value ofVersionGroup.getDependencyTypes()VersionGroup.BuilderisBanned(Boolean isBanned)Sets the value ofVersionGroup.getIsBanned()VersionGroup.Builderpackages(List<String> packages)Sets the value ofVersionGroup.getPackages()VersionGroup.BuilderpinVersion(String pinVersion)Sets the value ofVersionGroup.getPinVersion()
-
-
-
Method Detail
-
dependencies
@Stability(Stable) public VersionGroup.Builder dependencies(List<String> dependencies)
Sets the value ofVersionGroup.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 VersionGroup.Builder packages(List<String> packages)
Sets the value ofVersionGroup.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
-
dependencyTypes
@Stability(Stable) public VersionGroup.Builder dependencyTypes(List<String> dependencyTypes)
Sets the value ofVersionGroup.getDependencyTypes()- Parameters:
dependencyTypes- optionally only apply this group to dependencies of the provided types.- Returns:
this
-
isBanned
@Stability(Stable) public VersionGroup.Builder isBanned(Boolean isBanned)
Sets the value ofVersionGroup.getIsBanned()- Parameters:
isBanned- optionally force all dependencies in this group to be removed.- Returns:
this
-
pinVersion
@Stability(Stable) public VersionGroup.Builder pinVersion(String pinVersion)
Sets the value ofVersionGroup.getPinVersion()- Parameters:
pinVersion- optionally force all dependencies in this group to have this version.- Returns:
this
-
build
@Stability(Stable) public VersionGroup build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VersionGroup>- Returns:
- a new instance of
VersionGroup - Throws:
NullPointerException- if any required attribute was not provided
-
-