Package io.github.cdklabs.projen.java
Class ProjenrcOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.java.ProjenrcOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ProjenrcOptions>
- Enclosing interface:
- ProjenrcOptions
@Stability(Experimental) public static final class ProjenrcOptions.Builder extends Object implements software.amazon.jsii.Builder<ProjenrcOptions>
A builder forProjenrcOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProjenrcOptionsbuild()Builds the configured instance.ProjenrcOptions.BuilderclassName(String className)Sets the value ofProjenrcOptions.getClassName()ProjenrcOptions.BuilderprojenVersion(String projenVersion)Sets the value ofProjenrcOptions.getProjenVersion()ProjenrcOptions.BuildertestScope(Boolean testScope)Sets the value ofProjenrcOptions.getTestScope()
-
-
-
Method Detail
-
className
@Stability(Experimental) public ProjenrcOptions.Builder className(String className)
Sets the value ofProjenrcOptions.getClassName()- Parameters:
className- The name of the Java class which contains themain()method for projen.- Returns:
this
-
projenVersion
@Stability(Experimental) public ProjenrcOptions.Builder projenVersion(String projenVersion)
Sets the value ofProjenrcOptions.getProjenVersion()- Parameters:
projenVersion- The projen version to use.- Returns:
this
-
testScope
@Stability(Experimental) public ProjenrcOptions.Builder testScope(Boolean testScope)
Sets the value ofProjenrcOptions.getTestScope()- Parameters:
testScope- Defines projenrc under the test scope instead of the main scope, which is reserved to the app. This means that projenrc will be undersrc/test/java/projenrc.javaand projen will be defined as a test dependency. This enforces that application code does not take a dependency on projen code.If this is disabled, projenrc should be under
src/main/java/projenrc.java.- Returns:
this
-
build
@Stability(Experimental) public ProjenrcOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ProjenrcOptions>- Returns:
- a new instance of
ProjenrcOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-