Class CfnCluster.StepConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnCluster.StepConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.StepConfigProperty>
- Enclosing interface:
CfnCluster.StepConfigProperty
@Stability(Stable)
public static final class CfnCluster.StepConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.StepConfigProperty>
A builder for
CfnCluster.StepConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactionOnFailure
(String actionOnFailure) Sets the value ofCfnCluster.StepConfigProperty.getActionOnFailure()
build()
Builds the configured instance.hadoopJarStep
(IResolvable hadoopJarStep) Sets the value ofCfnCluster.StepConfigProperty.getHadoopJarStep()
hadoopJarStep
(CfnCluster.HadoopJarStepConfigProperty hadoopJarStep) Sets the value ofCfnCluster.StepConfigProperty.getHadoopJarStep()
Sets the value ofCfnCluster.StepConfigProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hadoopJarStep
@Stability(Stable) public CfnCluster.StepConfigProperty.Builder hadoopJarStep(IResolvable hadoopJarStep) Sets the value ofCfnCluster.StepConfigProperty.getHadoopJarStep()
- Parameters:
hadoopJarStep
- The JAR file used for the step. This parameter is required.- Returns:
this
-
hadoopJarStep
@Stability(Stable) public CfnCluster.StepConfigProperty.Builder hadoopJarStep(CfnCluster.HadoopJarStepConfigProperty hadoopJarStep) Sets the value ofCfnCluster.StepConfigProperty.getHadoopJarStep()
- Parameters:
hadoopJarStep
- The JAR file used for the step. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnCluster.StepConfigProperty.getName()
- Parameters:
name
- The name of the step. This parameter is required.- Returns:
this
-
actionOnFailure
@Stability(Stable) public CfnCluster.StepConfigProperty.Builder actionOnFailure(String actionOnFailure) Sets the value ofCfnCluster.StepConfigProperty.getActionOnFailure()
- Parameters:
actionOnFailure
- The action to take when the cluster step fails. Possible values areCANCEL_AND_WAIT
andCONTINUE
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster.StepConfigProperty>
- Returns:
- a new instance of
CfnCluster.StepConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-