Class CfnCluster.HadoopJarStepConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnCluster.HadoopJarStepConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.HadoopJarStepConfigProperty>
- Enclosing interface:
CfnCluster.HadoopJarStepConfigProperty
@Stability(Stable)
public static final class CfnCluster.HadoopJarStepConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.HadoopJarStepConfigProperty>
A builder for
CfnCluster.HadoopJarStepConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnCluster.HadoopJarStepConfigProperty.getArgs()
build()
Builds the configured instance.Sets the value ofCfnCluster.HadoopJarStepConfigProperty.getJar()
Sets the value ofCfnCluster.HadoopJarStepConfigProperty.getMainClass()
stepProperties
(List<? extends Object> stepProperties) Sets the value ofCfnCluster.HadoopJarStepConfigProperty.getStepProperties()
stepProperties
(IResolvable stepProperties) Sets the value ofCfnCluster.HadoopJarStepConfigProperty.getStepProperties()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
jar
Sets the value ofCfnCluster.HadoopJarStepConfigProperty.getJar()
- Parameters:
jar
- A path to a JAR file run during the step. This parameter is required.- Returns:
this
-
args
Sets the value ofCfnCluster.HadoopJarStepConfigProperty.getArgs()
- Parameters:
args
- A list of command line arguments passed to the JAR file's main function when executed.- Returns:
this
-
mainClass
@Stability(Stable) public CfnCluster.HadoopJarStepConfigProperty.Builder mainClass(String mainClass) Sets the value ofCfnCluster.HadoopJarStepConfigProperty.getMainClass()
- Parameters:
mainClass
- The name of the main class in the specified Java file. If not specified, the JAR file should specify a Main-Class in its manifest file.- Returns:
this
-
stepProperties
@Stability(Stable) public CfnCluster.HadoopJarStepConfigProperty.Builder stepProperties(IResolvable stepProperties) Sets the value ofCfnCluster.HadoopJarStepConfigProperty.getStepProperties()
- Parameters:
stepProperties
- A list of Java properties that are set when the step runs. You can use these properties to pass key-value pairs to your main function.- Returns:
this
-
stepProperties
@Stability(Stable) public CfnCluster.HadoopJarStepConfigProperty.Builder stepProperties(List<? extends Object> stepProperties) Sets the value ofCfnCluster.HadoopJarStepConfigProperty.getStepProperties()
- Parameters:
stepProperties
- A list of Java properties that are set when the step runs. You can use these properties to pass key-value pairs to your main function.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.HadoopJarStepConfigProperty>
- Returns:
- a new instance of
CfnCluster.HadoopJarStepConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-