Class PythonShellExecutableProps.Builder
java.lang.Object
software.amazon.awscdk.services.glue.PythonShellExecutableProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PythonShellExecutableProps>
- Enclosing interface:
- PythonShellExecutableProps
@Stability(Experimental)
public static final class PythonShellExecutableProps.Builder
extends Object
implements software.amazon.jsii.Builder<PythonShellExecutableProps>
A builder for
PythonShellExecutableProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.extraFiles(List<? extends Code> extraFiles) Sets the value ofPythonShellExecutableProps.getExtraFiles()extraPythonFiles(List<? extends Code> extraPythonFiles) Sets the value ofPythonShellExecutableProps.getExtraPythonFiles()glueVersion(GlueVersion glueVersion) Sets the value ofPythonShellExecutableProps.getGlueVersion()pythonVersion(PythonVersion pythonVersion) Sets the value ofPythonShellExecutableProps.getPythonVersion()Sets the value ofPythonShellExecutableProps.getScript()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
glueVersion
@Stability(Experimental) public PythonShellExecutableProps.Builder glueVersion(GlueVersion glueVersion) Sets the value ofPythonShellExecutableProps.getGlueVersion()- Parameters:
glueVersion- Glue version. This parameter is required.- Returns:
this
-
pythonVersion
@Stability(Experimental) public PythonShellExecutableProps.Builder pythonVersion(PythonVersion pythonVersion) Sets the value ofPythonShellExecutableProps.getPythonVersion()- Parameters:
pythonVersion- The Python version to use. This parameter is required.- Returns:
this
-
script
Sets the value ofPythonShellExecutableProps.getScript()- Parameters:
script- The script that executes a job. This parameter is required.- Returns:
this
-
extraFiles
@Stability(Experimental) public PythonShellExecutableProps.Builder extraFiles(List<? extends Code> extraFiles) Sets the value ofPythonShellExecutableProps.getExtraFiles()- Parameters:
extraFiles- Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it. Only individual files are supported, directories are not supported.- Returns:
this
-
extraPythonFiles
@Stability(Experimental) public PythonShellExecutableProps.Builder extraPythonFiles(List<? extends Code> extraPythonFiles) Sets the value ofPythonShellExecutableProps.getExtraPythonFiles()- Parameters:
extraPythonFiles- Additional Python files that AWS Glue adds to the Python path before executing your script. Only individual files are supported, directories are not supported.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PythonShellExecutableProps>- Returns:
- a new instance of
PythonShellExecutableProps - Throws:
NullPointerException- if any required attribute was not provided
-