Class JobExecutableConfig.Builder
java.lang.Object
software.amazon.awscdk.services.glue.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
Constructors -
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.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.- 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.- 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.- 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.- 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.- 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.- 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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<JobExecutableConfig>- Returns:
- a new instance of
JobExecutableConfig - Throws:
NullPointerException- if any required attribute was not provided
-