public class StepConfig extends Object implements Serializable
Specification of a job flow step.
| Constructor and Description | 
|---|
| StepConfig()Default constructor for a new StepConfig object. | 
| StepConfig(String name,
          HadoopJarStepConfig hadoopJarStep)Constructs a new StepConfig object. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object obj) | 
| String | getActionOnFailure()The action to take if the job flow step fails. | 
| HadoopJarStepConfig | getHadoopJarStep()The JAR file used for the job flow step. | 
| String | getName()The name of the job flow step. | 
| int | hashCode() | 
| void | setActionOnFailure(ActionOnFailure actionOnFailure)The action to take if the job flow step fails. | 
| void | setActionOnFailure(String actionOnFailure)The action to take if the job flow step fails. | 
| void | setHadoopJarStep(HadoopJarStepConfig hadoopJarStep)The JAR file used for the job flow step. | 
| void | setName(String name)The name of the job flow step. | 
| String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| StepConfig | withActionOnFailure(ActionOnFailure actionOnFailure)The action to take if the job flow step fails. | 
| StepConfig | withActionOnFailure(String actionOnFailure)The action to take if the job flow step fails. | 
| StepConfig | withHadoopJarStep(HadoopJarStepConfig hadoopJarStep)The JAR file used for the job flow step. | 
| StepConfig | withName(String name)The name of the job flow step. | 
public StepConfig()
public StepConfig(String name, HadoopJarStepConfig hadoopJarStep)
name - The name of the job flow step.hadoopJarStep - The JAR file used for the job flow step.public String getName()
 Constraints:
 Length: 0 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setName(String name)
 Constraints:
 Length: 0 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
name - The name of the job flow step.public StepConfig withName(String name)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Length: 0 - 256
 Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
name - The name of the job flow step.public String getActionOnFailure()
 Constraints:
 Allowed Values: TERMINATE_JOB_FLOW, TERMINATE_CLUSTER, CANCEL_AND_WAIT, CONTINUE
ActionOnFailurepublic void setActionOnFailure(String actionOnFailure)
 Constraints:
 Allowed Values: TERMINATE_JOB_FLOW, TERMINATE_CLUSTER, CANCEL_AND_WAIT, CONTINUE
actionOnFailure - The action to take if the job flow step fails.ActionOnFailurepublic StepConfig withActionOnFailure(String actionOnFailure)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: TERMINATE_JOB_FLOW, TERMINATE_CLUSTER, CANCEL_AND_WAIT, CONTINUE
actionOnFailure - The action to take if the job flow step fails.ActionOnFailurepublic void setActionOnFailure(ActionOnFailure actionOnFailure)
 Constraints:
 Allowed Values: TERMINATE_JOB_FLOW, TERMINATE_CLUSTER, CANCEL_AND_WAIT, CONTINUE
actionOnFailure - The action to take if the job flow step fails.ActionOnFailurepublic StepConfig withActionOnFailure(ActionOnFailure actionOnFailure)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: TERMINATE_JOB_FLOW, TERMINATE_CLUSTER, CANCEL_AND_WAIT, CONTINUE
actionOnFailure - The action to take if the job flow step fails.ActionOnFailurepublic HadoopJarStepConfig getHadoopJarStep()
public void setHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
hadoopJarStep - The JAR file used for the job flow step.public StepConfig withHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
Returns a reference to this object so that method calls can be chained together.
hadoopJarStep - The JAR file used for the job flow step.public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.