Class ScalaJobExecutableProps.Builder
java.lang.Object
software.amazon.awscdk.services.glue.alpha.ScalaJobExecutableProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ScalaJobExecutableProps>
- Enclosing interface:
ScalaJobExecutableProps
@Stability(Experimental)
public static final class ScalaJobExecutableProps.Builder
extends Object
implements software.amazon.jsii.Builder<ScalaJobExecutableProps>
A builder for
ScalaJobExecutableProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofScalaJobExecutableProps.getClassName()
extraFiles
(List<? extends Code> extraFiles) Sets the value ofScalaJobExecutableProps.getExtraFiles()
Sets the value ofScalaJobExecutableProps.getExtraJars()
extraJarsFirst
(Boolean extraJarsFirst) Sets the value ofScalaJobExecutableProps.getExtraJarsFirst()
glueVersion
(GlueVersion glueVersion) Sets the value ofScalaJobExecutableProps.getGlueVersion()
Sets the value ofScalaJobExecutableProps.getRuntime()
Sets the value ofScalaJobExecutableProps.getScript()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
className
Sets the value ofScalaJobExecutableProps.getClassName()
- Parameters:
className
- The fully qualified Scala class name that serves as the entry point for the job. This parameter is required. Equivalent to a job parameter--class
.- Returns:
this
-
glueVersion
@Stability(Experimental) public ScalaJobExecutableProps.Builder glueVersion(GlueVersion glueVersion) Sets the value ofScalaJobExecutableProps.getGlueVersion()
- Parameters:
glueVersion
- Glue version. This parameter is required.- Returns:
this
-
script
Sets the value ofScalaJobExecutableProps.getScript()
- Parameters:
script
- The script that executes a job. This parameter is required.- Returns:
this
-
extraFiles
@Stability(Experimental) public ScalaJobExecutableProps.Builder extraFiles(List<? extends Code> extraFiles) Sets the value ofScalaJobExecutableProps.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. Equivalent to a job parameter--extra-files
.- Returns:
this
-
extraJars
@Stability(Experimental) public ScalaJobExecutableProps.Builder extraJars(List<? extends Code> extraJars) Sets the value ofScalaJobExecutableProps.getExtraJars()
- Parameters:
extraJars
- Additional Java .jar files that AWS Glue adds to the Java classpath before executing your script. Only individual files are supported, directories are not supported. Equivalent to a job parameter--extra-jars
.- Returns:
this
-
extraJarsFirst
@Stability(Experimental) public ScalaJobExecutableProps.Builder extraJarsFirst(Boolean extraJarsFirst) Sets the value ofScalaJobExecutableProps.getExtraJarsFirst()
- Parameters:
extraJarsFirst
- Setting this value to true prioritizes the customer's extra JAR files in the classpath. Equivalent to a job parameter--user-jars-first
.- Returns:
this
-
runtime
Sets the value ofScalaJobExecutableProps.getRuntime()
- Parameters:
runtime
- Runtime. It is required for Ray jobs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ScalaJobExecutableProps>
- Returns:
- a new instance of
ScalaJobExecutableProps
- Throws:
NullPointerException
- if any required attribute was not provided
-