Class ScopedPackagesOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.javascript.ScopedPackagesOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ScopedPackagesOptions>
- Enclosing interface:
- ScopedPackagesOptions
@Stability(Experimental) public static final class ScopedPackagesOptions.Builder extends Object implements software.amazon.jsii.Builder<ScopedPackagesOptions>
A builder forScopedPackagesOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScopedPackagesOptionsbuild()Builds the configured instance.ScopedPackagesOptions.BuilderregistryUrl(String registryUrl)Sets the value ofScopedPackagesOptions.getRegistryUrl()ScopedPackagesOptions.Builderscope(String scope)Sets the value ofScopedPackagesOptions.getScope()
-
-
-
Method Detail
-
registryUrl
@Stability(Experimental) public ScopedPackagesOptions.Builder registryUrl(String registryUrl)
Sets the value ofScopedPackagesOptions.getRegistryUrl()- Parameters:
registryUrl- URL of the registry for scoped packages. This parameter is required.- Returns:
this
-
scope
@Stability(Experimental) public ScopedPackagesOptions.Builder scope(String scope)
Sets the value ofScopedPackagesOptions.getScope()- Parameters:
scope- Scope of the packages. This parameter is required.- Returns:
this
-
build
@Stability(Experimental) public ScopedPackagesOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ScopedPackagesOptions>- Returns:
- a new instance of
ScopedPackagesOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-