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 Details

    • Builder

      public Builder()
  • Method Details

    • actionOnFailure

      @Stability(Stable) public CfnStepProps.Builder actionOnFailure(String actionOnFailure)
      Parameters:
      actionOnFailure - This specifies what action to take when the cluster step fails. This parameter is required. Possible values are CANCEL_AND_WAIT and CONTINUE .
      Returns:
      this
    • hadoopJarStep

      @Stability(Stable) public CfnStepProps.Builder hadoopJarStep(IResolvable hadoopJarStep)
      Parameters:
      hadoopJarStep - The HadoopJarStepConfig property 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)
      Parameters:
      hadoopJarStep - The HadoopJarStepConfig property 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

      @Stability(Stable) public CfnStepProps.Builder jobFlowId(String jobFlowId)
      Sets the value of CfnStepProps.getJobFlowId()
      Parameters:
      jobFlowId - A string that uniquely identifies the cluster (job flow). This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnStepProps.Builder name(String name)
      Sets the value of CfnStepProps.getName()
      Parameters:
      name - The name of the cluster step. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnStepProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnStepProps>
      Returns:
      a new instance of CfnStepProps
      Throws:
      NullPointerException - if any required attribute was not provided