java.lang.Object
com.amazonaws.services.elasticmapreduce.model.StepConfig
All Implemented Interfaces:
Serializable, Cloneable

public class StepConfig extends Object implements Serializable, Cloneable

Specification of a job flow step.

See Also:
  • Constructor Details

    • StepConfig

      public StepConfig()
      Default constructor for StepConfig object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
    • StepConfig

      public StepConfig(String name, HadoopJarStepConfig hadoopJarStep)
      Constructs a new StepConfig object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      Parameters:
      name - The name of the job flow step.
      hadoopJarStep - The JAR file used for the job flow step.
  • Method Details

    • setName

      public void setName(String name)

      The name of the job flow step.

      Parameters:
      name - The name of the job flow step.
    • getName

      public String getName()

      The name of the job flow step.

      Returns:
      The name of the job flow step.
    • withName

      public StepConfig withName(String name)

      The name of the job flow step.

      Parameters:
      name - The name of the job flow step.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setActionOnFailure

      public void setActionOnFailure(String actionOnFailure)

      The action to take if the job flow step fails.

      Parameters:
      actionOnFailure - The action to take if the job flow step fails.
      See Also:
    • getActionOnFailure

      public String getActionOnFailure()

      The action to take if the job flow step fails.

      Returns:
      The action to take if the job flow step fails.
      See Also:
    • withActionOnFailure

      public StepConfig withActionOnFailure(String actionOnFailure)

      The action to take if the job flow step fails.

      Parameters:
      actionOnFailure - The action to take if the job flow step fails.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setActionOnFailure

      public void setActionOnFailure(ActionOnFailure actionOnFailure)

      The action to take if the job flow step fails.

      Parameters:
      actionOnFailure - The action to take if the job flow step fails.
      See Also:
    • withActionOnFailure

      public StepConfig withActionOnFailure(ActionOnFailure actionOnFailure)

      The action to take if the job flow step fails.

      Parameters:
      actionOnFailure - The action to take if the job flow step fails.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setHadoopJarStep

      public void setHadoopJarStep(HadoopJarStepConfig hadoopJarStep)

      The JAR file used for the job flow step.

      Parameters:
      hadoopJarStep - The JAR file used for the job flow step.
    • getHadoopJarStep

      public HadoopJarStepConfig getHadoopJarStep()

      The JAR file used for the job flow step.

      Returns:
      The JAR file used for the job flow step.
    • withHadoopJarStep

      public StepConfig withHadoopJarStep(HadoopJarStepConfig hadoopJarStep)

      The JAR file used for the job flow step.

      Parameters:
      hadoopJarStep - The JAR file used for the job flow step.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public StepConfig clone()
      Overrides:
      clone in class Object