Class JobExecutableConfig.Builder
java.lang.Object
software.amazon.awscdk.services.glue.alpha.JobExecutableConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<JobExecutableConfig>
- Enclosing interface:
JobExecutableConfig
@Stability(Experimental)
public static final class JobExecutableConfig.Builder
extends Object
implements software.amazon.jsii.Builder<JobExecutableConfig>
A builder for
JobExecutableConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofJobExecutableConfig.getClassName()
extraFiles
(List<? extends Code> extraFiles) Sets the value ofJobExecutableConfig.getExtraFiles()
Sets the value ofJobExecutableConfig.getExtraJars()
extraJarsFirst
(Boolean extraJarsFirst) Sets the value ofJobExecutableConfig.getExtraJarsFirst()
extraPythonFiles
(List<? extends Code> extraPythonFiles) Sets the value ofJobExecutableConfig.getExtraPythonFiles()
glueVersion
(GlueVersion glueVersion) Sets the value ofJobExecutableConfig.getGlueVersion()
language
(JobLanguage language) Sets the value ofJobExecutableConfig.getLanguage()
pythonVersion
(PythonVersion pythonVersion) Sets the value ofJobExecutableConfig.getPythonVersion()
Sets the value ofJobExecutableConfig.getRuntime()
s3PythonModules
(List<? extends Code> s3PythonModules) Sets the value ofJobExecutableConfig.getS3PythonModules()
Sets the value ofJobExecutableConfig.getScript()
Sets the value ofJobExecutableConfig.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
glueVersion
Sets the value ofJobExecutableConfig.getGlueVersion()
- Parameters:
glueVersion
- Glue version. This parameter is required.- Returns:
this
-
language
Sets the value ofJobExecutableConfig.getLanguage()
- Parameters:
language
- The language of the job (Scala or Python). This parameter is required. Equivalent to a job parameter--job-language
.- Returns:
this
-
script
Sets the value ofJobExecutableConfig.getScript()
- Parameters:
script
- The script that is executed by a job. This parameter is required.- Returns:
this
-
type
Sets the value ofJobExecutableConfig.getType()
- Parameters:
type
- Specify the type of the job whether it's an Apache Spark ETL or streaming one or if it's a Python shell job. This parameter is required.- Returns:
this
-
className
Sets the value ofJobExecutableConfig.getClassName()
- Parameters:
className
- The Scala class that serves as the entry point for the job. This applies only if your the job langauage is Scala. Equivalent to a job parameter--class
.- Returns:
this
-
extraFiles
@Stability(Experimental) public JobExecutableConfig.Builder extraFiles(List<? extends Code> extraFiles) Sets the value ofJobExecutableConfig.getExtraFiles()
- Parameters:
extraFiles
- Additional files, such as configuration files that AWS Glue copies to the working directory of your script before executing it. Equivalent to a job parameter--extra-files
.- Returns:
this
-
extraJars
@Stability(Experimental) public JobExecutableConfig.Builder extraJars(List<? extends Code> extraJars) Sets the value ofJobExecutableConfig.getExtraJars()
- Parameters:
extraJars
- Additional Java .jar files that AWS Glue adds to the Java classpath before executing your script. Equivalent to a job parameter--extra-jars
.- Returns:
this
-
extraJarsFirst
Sets the value ofJobExecutableConfig.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
-
extraPythonFiles
@Stability(Experimental) public JobExecutableConfig.Builder extraPythonFiles(List<? extends Code> extraPythonFiles) Sets the value ofJobExecutableConfig.getExtraPythonFiles()
- Parameters:
extraPythonFiles
- Additional Python files that AWS Glue adds to the Python path before executing your script. Equivalent to a job parameter--extra-py-files
.- Returns:
this
-
pythonVersion
@Stability(Experimental) public JobExecutableConfig.Builder pythonVersion(PythonVersion pythonVersion) Sets the value ofJobExecutableConfig.getPythonVersion()
- Parameters:
pythonVersion
- The Python version to use.- Returns:
this
-
runtime
Sets the value ofJobExecutableConfig.getRuntime()
- Parameters:
runtime
- The Runtime to use.- Returns:
this
-
s3PythonModules
@Stability(Experimental) public JobExecutableConfig.Builder s3PythonModules(List<? extends Code> s3PythonModules) Sets the value ofJobExecutableConfig.getS3PythonModules()
- Parameters:
s3PythonModules
- Additional Python modules that AWS Glue adds to the Python path before executing your script. Equivalent to a job parameter--s3-py-modules
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<JobExecutableConfig>
- Returns:
- a new instance of
JobExecutableConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-