Package io.github.cdklabs.projen.python
Class VenvOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.python.VenvOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<VenvOptions>
- Enclosing interface:
- VenvOptions
@Stability(Experimental) public static final class VenvOptions.Builder extends Object implements software.amazon.jsii.Builder<VenvOptions>
A builder forVenvOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VenvOptionsbuild()Builds the configured instance.VenvOptions.Builderenvdir(String envdir)Sets the value ofVenvOptions.getEnvdir()VenvOptions.BuilderpythonExec(String pythonExec)Sets the value ofVenvOptions.getPythonExec()
-
-
-
Method Detail
-
envdir
@Stability(Experimental) public VenvOptions.Builder envdir(String envdir)
Sets the value ofVenvOptions.getEnvdir()- Parameters:
envdir- Name of directory to store the environment in.- Returns:
this
-
pythonExec
@Stability(Experimental) public VenvOptions.Builder pythonExec(String pythonExec)
Sets the value ofVenvOptions.getPythonExec()- Parameters:
pythonExec- Path to the python executable to use.- Returns:
this
-
build
@Stability(Experimental) public VenvOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VenvOptions>- Returns:
- a new instance of
VenvOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-