Class PythonRayExecutableProps.Builder
java.lang.Object
software.amazon.awscdk.services.glue.alpha.PythonRayExecutableProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PythonRayExecutableProps>
- Enclosing interface:
PythonRayExecutableProps
@Stability(Experimental)
public static final class PythonRayExecutableProps.Builder
extends Object
implements software.amazon.jsii.Builder<PythonRayExecutableProps>
A builder for
PythonRayExecutableProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.extraFiles(List<? extends Code> extraFiles) Sets the value ofPythonRayExecutableProps.getExtraFiles()extraPythonFiles(List<? extends Code> extraPythonFiles) Sets the value ofPythonRayExecutableProps.getExtraPythonFiles()glueVersion(GlueVersion glueVersion) Sets the value ofPythonRayExecutableProps.getGlueVersion()pythonVersion(PythonVersion pythonVersion) Sets the value ofPythonRayExecutableProps.getPythonVersion()Sets the value ofPythonRayExecutableProps.getRuntime()Sets the value ofPythonRayExecutableProps.getScript()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
glueVersion
@Stability(Experimental) public PythonRayExecutableProps.Builder glueVersion(GlueVersion glueVersion) Sets the value ofPythonRayExecutableProps.getGlueVersion()- Parameters:
glueVersion- Glue version. This parameter is required.- Returns:
this
-
pythonVersion
@Stability(Experimental) public PythonRayExecutableProps.Builder pythonVersion(PythonVersion pythonVersion) Sets the value ofPythonRayExecutableProps.getPythonVersion()- Parameters:
pythonVersion- The Python version to use. This parameter is required.- Returns:
this
-
script
Sets the value ofPythonRayExecutableProps.getScript()- Parameters:
script- The script that executes a job. This parameter is required.- Returns:
this
-
extraFiles
@Stability(Experimental) public PythonRayExecutableProps.Builder extraFiles(List<? extends Code> extraFiles) Sets the value ofPythonRayExecutableProps.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 PythonRayExecutableProps.Builder extraPythonFiles(List<? extends Code> extraPythonFiles) Sets the value ofPythonRayExecutableProps.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
-
runtime
Sets the value ofPythonRayExecutableProps.getRuntime()- Parameters:
runtime- Runtime. It is required for Ray jobs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PythonRayExecutableProps>- Returns:
- a new instance of
PythonRayExecutableProps - Throws:
NullPointerException- if any required attribute was not provided
-