Class LicenseCheckerOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.javascript.LicenseCheckerOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<LicenseCheckerOptions>
- Enclosing interface:
- LicenseCheckerOptions
@Stability(Experimental) public static final class LicenseCheckerOptions.Builder extends Object implements software.amazon.jsii.Builder<LicenseCheckerOptions>
A builder forLicenseCheckerOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LicenseCheckerOptions.Builderallow(List<String> allow)Sets the value ofLicenseCheckerOptions.getAllow()LicenseCheckerOptionsbuild()Builds the configured instance.LicenseCheckerOptions.Builderdeny(List<String> deny)Sets the value ofLicenseCheckerOptions.getDeny()LicenseCheckerOptions.Builderdevelopment(Boolean development)Sets the value ofLicenseCheckerOptions.getDevelopment()LicenseCheckerOptions.Builderproduction(Boolean production)Sets the value ofLicenseCheckerOptions.getProduction()LicenseCheckerOptions.BuildertaskName(String taskName)Sets the value ofLicenseCheckerOptions.getTaskName()
-
-
-
Method Detail
-
allow
@Stability(Experimental) public LicenseCheckerOptions.Builder allow(List<String> allow)
Sets the value ofLicenseCheckerOptions.getAllow()- Parameters:
allow- List of SPDX license identifiers that are allowed to be used. For the license check to pass, all detected licenses MUST be in this list. Only one ofallowedLicensesandprohibitedLicensescan be provided and must not be empty.- Returns:
this
-
deny
@Stability(Experimental) public LicenseCheckerOptions.Builder deny(List<String> deny)
Sets the value ofLicenseCheckerOptions.getDeny()- Parameters:
deny- List of SPDX license identifiers that are prohibited to be used. For the license check to pass, no detected licenses can be in this list. Only one ofallowedLicensesandprohibitedLicensescan be provided and must not be empty.- Returns:
this
-
development
@Stability(Experimental) public LicenseCheckerOptions.Builder development(Boolean development)
Sets the value ofLicenseCheckerOptions.getDevelopment()- Parameters:
development- Check development dependencies.- Returns:
this
-
production
@Stability(Experimental) public LicenseCheckerOptions.Builder production(Boolean production)
Sets the value ofLicenseCheckerOptions.getProduction()- Parameters:
production- Check production dependencies.- Returns:
this
-
taskName
@Stability(Experimental) public LicenseCheckerOptions.Builder taskName(String taskName)
Sets the value ofLicenseCheckerOptions.getTaskName()- Parameters:
taskName- The name of the task that is added to check licenses.- Returns:
this
-
build
@Stability(Experimental) public LicenseCheckerOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LicenseCheckerOptions>- Returns:
- a new instance of
LicenseCheckerOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-