Class SparkSubmitJobDriver.Builder
java.lang.Object
software.amazon.awscdk.services.stepfunctions.tasks.SparkSubmitJobDriver.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SparkSubmitJobDriver>
- Enclosing interface:
SparkSubmitJobDriver
@Stability(Stable)
public static final class SparkSubmitJobDriver.Builder
extends Object
implements software.amazon.jsii.Builder<SparkSubmitJobDriver>
A builder for
SparkSubmitJobDriver
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.entryPoint
(TaskInput entryPoint) Sets the value ofSparkSubmitJobDriver.getEntryPoint()
entryPointArguments
(TaskInput entryPointArguments) Sets the value ofSparkSubmitJobDriver.getEntryPointArguments()
sparkSubmitParameters
(String sparkSubmitParameters) Sets the value ofSparkSubmitJobDriver.getSparkSubmitParameters()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
entryPoint
Sets the value ofSparkSubmitJobDriver.getEntryPoint()
- Parameters:
entryPoint
- The entry point of job application. This parameter is required. Length Constraints: Minimum length of 1. Maximum length of 256.- Returns:
this
-
entryPointArguments
@Stability(Stable) public SparkSubmitJobDriver.Builder entryPointArguments(TaskInput entryPointArguments) Sets the value ofSparkSubmitJobDriver.getEntryPointArguments()
- Parameters:
entryPointArguments
- The arguments for a job application in a task input object containing an array of strings. Length Constraints: Minimum length of 1. Maximum length of 10280.- Returns:
this
-
sparkSubmitParameters
@Stability(Stable) public SparkSubmitJobDriver.Builder sparkSubmitParameters(String sparkSubmitParameters) Sets the value ofSparkSubmitJobDriver.getSparkSubmitParameters()
- Parameters:
sparkSubmitParameters
- The Spark submit parameters that are used for job runs. Length Constraints: Minimum length of 1. Maximum length of 102400.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SparkSubmitJobDriver>
- Returns:
- a new instance of
SparkSubmitJobDriver
- Throws:
NullPointerException
- if any required attribute was not provided
-