Class CfnStepProps.Builder
java.lang.Object
software.amazon.awscdk.services.emr.CfnStepProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStepProps>
- Enclosing interface:
CfnStepProps
@Stability(Stable)
public static final class CfnStepProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStepProps>
A builder for
CfnStepProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionOnFailure(String actionOnFailure) Sets the value ofCfnStepProps.getActionOnFailure()build()Builds the configured instance.hadoopJarStep(IResolvable hadoopJarStep) Sets the value ofCfnStepProps.getHadoopJarStep()hadoopJarStep(CfnStep.HadoopJarStepConfigProperty hadoopJarStep) Sets the value ofCfnStepProps.getHadoopJarStep()Sets the value ofCfnStepProps.getJobFlowId()Sets the value ofCfnStepProps.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionOnFailure
Sets the value ofCfnStepProps.getActionOnFailure()- Parameters:
actionOnFailure- This specifies what action to take when the cluster step fails. This parameter is required. Possible values areCANCEL_AND_WAITandCONTINUE.- Returns:
this
-
hadoopJarStep
Sets the value ofCfnStepProps.getHadoopJarStep()- Parameters:
hadoopJarStep- TheHadoopJarStepConfigproperty type specifies a job flow step consisting of a JAR file whose main function will be executed. This parameter is required. The main function submits a job for the cluster to execute as a step on the master node, and then waits for the job to finish or fail before executing subsequent steps.- Returns:
this
-
hadoopJarStep
@Stability(Stable) public CfnStepProps.Builder hadoopJarStep(CfnStep.HadoopJarStepConfigProperty hadoopJarStep) Sets the value ofCfnStepProps.getHadoopJarStep()- Parameters:
hadoopJarStep- TheHadoopJarStepConfigproperty type specifies a job flow step consisting of a JAR file whose main function will be executed. This parameter is required. The main function submits a job for the cluster to execute as a step on the master node, and then waits for the job to finish or fail before executing subsequent steps.- Returns:
this
-
jobFlowId
Sets the value ofCfnStepProps.getJobFlowId()- Parameters:
jobFlowId- A string that uniquely identifies the cluster (job flow). This parameter is required.- Returns:
this
-
name
Sets the value ofCfnStepProps.getName()- Parameters:
name- The name of the cluster step. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStepProps>- Returns:
- a new instance of
CfnStepProps - Throws:
NullPointerException- if any required attribute was not provided
-