Class StepConfig
- 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StepConfig()
Default constructor for StepConfig object.StepConfig(String name, HadoopJarStepConfig hadoopJarStep)
Constructs a new StepConfig object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StepConfig
clone()
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.
-
-
-
Constructor Detail
-
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 Detail
-
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:
ActionOnFailure
-
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:
ActionOnFailure
-
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:
ActionOnFailure
-
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:
ActionOnFailure
-
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:
ActionOnFailure
-
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public StepConfig clone()
-
-