Class CfnJobPropsMixin.JobCommandProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.glue.CfnJobPropsMixin.JobCommandProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobPropsMixin.JobCommandProperty>
- Enclosing interface:
CfnJobPropsMixin.JobCommandProperty
@Stability(Stable)
public static final class CfnJobPropsMixin.JobCommandProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobPropsMixin.JobCommandProperty>
A builder for
CfnJobPropsMixin.JobCommandProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnJobPropsMixin.JobCommandProperty.getName()pythonVersion(String pythonVersion) Sets the value ofCfnJobPropsMixin.JobCommandProperty.getPythonVersion()Sets the value ofCfnJobPropsMixin.JobCommandProperty.getRuntime()scriptLocation(String scriptLocation) Sets the value ofCfnJobPropsMixin.JobCommandProperty.getScriptLocation()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnJobPropsMixin.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. For a Ray job, this must beglueray.- Returns:
this
-
pythonVersion
@Stability(Stable) public CfnJobPropsMixin.JobCommandProperty.Builder pythonVersion(String pythonVersion) Sets the value ofCfnJobPropsMixin.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 ofCfnJobPropsMixin.JobCommandProperty.getRuntime()- Parameters:
runtime- In Ray jobs, Runtime is used to specify the versions of Ray, Python and additional libraries available in your environment. This field is not used in other job types. For supported runtime environment values, see Working with Ray jobs in the AWS Glue Developer Guide.- Returns:
this
-
scriptLocation
@Stability(Stable) public CfnJobPropsMixin.JobCommandProperty.Builder scriptLocation(String scriptLocation) Sets the value ofCfnJobPropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnJobPropsMixin.JobCommandProperty>- Returns:
- a new instance of
CfnJobPropsMixin.JobCommandProperty - Throws:
NullPointerException- if any required attribute was not provided
-