Package io.github.cdklabs.projen.python
Class ProjenrcOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.python.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.Builderfilename(String filename)Sets the value ofProjenrcOptions.getFilename()ProjenrcOptions.BuilderprojenVersion(String projenVersion)Sets the value ofProjenrcOptions.getProjenVersion()ProjenrcOptions.BuilderpythonExec(String pythonExec)Sets the value ofProjenrcOptions.getPythonExec()
-
-
-
Method Detail
-
filename
@Stability(Experimental) public ProjenrcOptions.Builder filename(String filename)
Sets the value ofProjenrcOptions.getFilename()- Parameters:
filename- The name of the projenrc file.- 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
-
pythonExec
@Stability(Experimental) public ProjenrcOptions.Builder pythonExec(String pythonExec)
Sets the value ofProjenrcOptions.getPythonExec()- Parameters:
pythonExec- Path to the python executable to use.- 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
-
-