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