Class NpmConfigOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.javascript.NpmConfigOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NpmConfigOptions>
- Enclosing interface:
- NpmConfigOptions
@Stability(Experimental) public static final class NpmConfigOptions.Builder extends Object implements software.amazon.jsii.Builder<NpmConfigOptions>
A builder forNpmConfigOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NpmConfigOptionsbuild()Builds the configured instance.NpmConfigOptions.BuilderomitEmpty(Boolean omitEmpty)Sets the value ofNpmConfigOptions.getOmitEmpty()NpmConfigOptions.Builderregistry(String registry)Sets the value ofNpmConfigOptions.getRegistry()
-
-
-
Method Detail
-
omitEmpty
@Stability(Experimental) public NpmConfigOptions.Builder omitEmpty(Boolean omitEmpty)
Sets the value ofNpmConfigOptions.getOmitEmpty()- Parameters:
omitEmpty- Omits empty objects and arrays.- Returns:
this
-
registry
@Stability(Experimental) public NpmConfigOptions.Builder registry(String registry)
Sets the value ofNpmConfigOptions.getRegistry()- Parameters:
registry- URL of the registry mirror to use. You can change this or add scoped registries using the addRegistry method- Returns:
this
-
build
@Stability(Experimental) public NpmConfigOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NpmConfigOptions>- Returns:
- a new instance of
NpmConfigOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-