Class CfnJob.JobCommandProperty.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnJob.JobCommandProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJob.JobCommandProperty>
- Enclosing interface:
- CfnJob.JobCommandProperty
@Stability(Stable)
public static final class CfnJob.JobCommandProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJob.JobCommandProperty>
A builder for
CfnJob.JobCommandProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnJob.JobCommandProperty.getName()
pythonVersion
(String pythonVersion) Sets the value ofCfnJob.JobCommandProperty.getPythonVersion()
Sets the value ofCfnJob.JobCommandProperty.getRuntime()
scriptLocation
(String scriptLocation) Sets the value ofCfnJob.JobCommandProperty.getScriptLocation()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnJob.JobCommandProperty.getName()
- Parameters:
name
- The name of the job command. For an Apache Spark ETL job, this must beglueetl
. For a Python shell job, it must bepythonshell
. For an Apache Spark streaming ETL job, this must begluestreaming
.- Returns:
this
-
pythonVersion
Sets the value ofCfnJob.JobCommandProperty.getPythonVersion()
- Parameters:
pythonVersion
- The Python version being used to execute a Python shell job. Allowed values are 3 or 3.9. Version 2 is deprecated.- Returns:
this
-
runtime
Sets the value ofCfnJob.JobCommandProperty.getRuntime()
- Parameters:
runtime
-CfnJob.JobCommandProperty.Runtime
.- Returns:
this
-
scriptLocation
Sets the value ofCfnJob.JobCommandProperty.getScriptLocation()
- Parameters:
scriptLocation
- Specifies the Amazon Simple Storage Service (Amazon S3) path to a script that executes a job (required).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnJob.JobCommandProperty>
- Returns:
- a new instance of
CfnJob.JobCommandProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-