Class YarnBerryOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.javascript.YarnBerryOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<YarnBerryOptions>
- Enclosing interface:
- YarnBerryOptions
@Stability(Experimental) public static final class YarnBerryOptions.Builder extends Object implements software.amazon.jsii.Builder<YarnBerryOptions>
A builder forYarnBerryOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description YarnBerryOptionsbuild()Builds the configured instance.YarnBerryOptions.Builderversion(String version)Sets the value ofYarnBerryOptions.getVersion()YarnBerryOptions.BuilderyarnRcOptions(YarnrcOptions yarnRcOptions)Sets the value ofYarnBerryOptions.getYarnRcOptions()YarnBerryOptions.BuilderzeroInstalls(Boolean zeroInstalls)Sets the value ofYarnBerryOptions.getZeroInstalls()
-
-
-
Method Detail
-
version
@Stability(Experimental) public YarnBerryOptions.Builder version(String version)
Sets the value ofYarnBerryOptions.getVersion()- Parameters:
version- A fully specified version to use for yarn (e.g., x.x.x).- Returns:
this
-
yarnRcOptions
@Stability(Experimental) public YarnBerryOptions.Builder yarnRcOptions(YarnrcOptions yarnRcOptions)
Sets the value ofYarnBerryOptions.getYarnRcOptions()- Parameters:
yarnRcOptions- The yarnrc configuration.- Returns:
this
-
zeroInstalls
@Stability(Experimental) public YarnBerryOptions.Builder zeroInstalls(Boolean zeroInstalls)
Sets the value ofYarnBerryOptions.getZeroInstalls()- Parameters:
zeroInstalls- Should zero-installs be enabled?. Learn more at: https://yarnpkg.com/features/caching#zero-installs- Returns:
this
-
build
@Stability(Experimental) public YarnBerryOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<YarnBerryOptions>- Returns:
- a new instance of
YarnBerryOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-