Class SyncpackConfig.Builder
- java.lang.Object
-
- software.aws.awsprototypingsdk.nxmonorepo.SyncpackConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SyncpackConfig>
- Enclosing interface:
- SyncpackConfig
@Stability(Stable) public static final class SyncpackConfig.Builder extends Object implements software.amazon.jsii.Builder<SyncpackConfig>
A builder forSyncpackConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
dependencyTypes
@Stability(Stable) public SyncpackConfig.Builder dependencyTypes(List<String> dependencyTypes)
Sets the value ofSyncpackConfig.getDependencyTypes()- Parameters:
dependencyTypes- which dependency properties to search within. This parameter is required.- Returns:
this
-
dev
@Stability(Stable) public SyncpackConfig.Builder dev(Boolean dev)
Sets the value ofSyncpackConfig.getDev()- Parameters:
dev- whether to search within devDependencies. This parameter is required.- Returns:
this
-
filter
@Stability(Stable) public SyncpackConfig.Builder filter(String filter)
Sets the value ofSyncpackConfig.getFilter()- Parameters:
filter- a string which will be passed to `new RegExp()` to match against package names that should be included. This parameter is required.- Returns:
this
-
indent
@Stability(Stable) public SyncpackConfig.Builder indent(String indent)
Sets the value ofSyncpackConfig.getIndent()- Parameters:
indent- the character(s) to be used to indent your package.json files when writing to disk. This parameter is required.- Returns:
this
-
overrides
@Stability(Stable) public SyncpackConfig.Builder overrides(Boolean overrides)
Sets the value ofSyncpackConfig.getOverrides()- Parameters:
overrides- whether to search within npm overrides. This parameter is required.- Returns:
this
-
peer
@Stability(Stable) public SyncpackConfig.Builder peer(Boolean peer)
Sets the value ofSyncpackConfig.getPeer()- Parameters:
peer- whether to search within peerDependencies. This parameter is required.- Returns:
this
-
pnpmOverrides
@Stability(Stable) public SyncpackConfig.Builder pnpmOverrides(Boolean pnpmOverrides)
Sets the value ofSyncpackConfig.getPnpmOverrides()- Parameters:
pnpmOverrides- whether to search within pnpm overrides. This parameter is required.- Returns:
this
-
prod
@Stability(Stable) public SyncpackConfig.Builder prod(Boolean prod)
Sets the value ofSyncpackConfig.getProd()- Parameters:
prod- whether to search within dependencies. This parameter is required.- Returns:
this
-
resolutions
@Stability(Stable) public SyncpackConfig.Builder resolutions(Boolean resolutions)
Sets the value ofSyncpackConfig.getResolutions()- Parameters:
resolutions- whether to search within yarn resolutions. This parameter is required.- Returns:
this
-
semverGroups
@Stability(Stable) public SyncpackConfig.Builder semverGroups(List<? extends SemverGroup> semverGroups)
Sets the value ofSyncpackConfig.getSemverGroups()- Parameters:
semverGroups- the value to be set. This parameter is required.- Returns:
this
-
semverRange
@Stability(Stable) public SyncpackConfig.Builder semverRange(String semverRange)
Sets the value ofSyncpackConfig.getSemverRange()- Parameters:
semverRange- defaults to `""` to ensure that exact dependency versions are used instead of loose ranges. This parameter is required.- Returns:
this
-
sortAz
@Stability(Stable) public SyncpackConfig.Builder sortAz(List<String> sortAz)
Sets the value ofSyncpackConfig.getSortAz()- Parameters:
sortAz- which fields within package.json files should be sorted alphabetically. This parameter is required.- Returns:
this
-
sortFirst
@Stability(Stable) public SyncpackConfig.Builder sortFirst(List<String> sortFirst)
Sets the value ofSyncpackConfig.getSortFirst()- Parameters:
sortFirst- which fields within package.json files should appear at the top, and in what order. This parameter is required.- Returns:
this
-
source
@Stability(Stable) public SyncpackConfig.Builder source(List<String> source)
Sets the value ofSyncpackConfig.getSource()- Parameters:
source- glob patterns for package.json file locations. This parameter is required.- Returns:
this
-
versionGroups
@Stability(Stable) public SyncpackConfig.Builder versionGroups(List<? extends VersionGroup> versionGroups)
Sets the value ofSyncpackConfig.getVersionGroups()- Parameters:
versionGroups- the value to be set. This parameter is required.- Returns:
this
-
workspace
@Stability(Stable) public SyncpackConfig.Builder workspace(Boolean workspace)
Sets the value ofSyncpackConfig.getWorkspace()- Parameters:
workspace- whether to include the versions of the `--source` packages developed in your workspace/monorepo as part of the search for versions to sync. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public SyncpackConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SyncpackConfig>- Returns:
- a new instance of
SyncpackConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-