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()
Specifies the action to take if the job flow step fails.
|
HadoopJarStepConfig |
getHadoopJarStep()
Specifies the JAR file used for the job flow step.
|
String |
getName()
The name of the job flow step.
|
int |
hashCode() |
void |
setActionOnFailure(ActionOnFailure actionOnFailure)
Specifies the action to take if the job flow step fails.
|
void |
setActionOnFailure(String actionOnFailure)
Specifies the action to take if the job flow step fails.
|
void |
setHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
Specifies 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)
Specifies the action to take if the job flow step fails.
|
StepConfig |
withActionOnFailure(String actionOnFailure)
Specifies the action to take if the job flow step fails.
|
StepConfig |
withHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
Specifies 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 - Specifies the JAR file used for the job flow
step.public String getName()
Constraints:
Length: 0 - 256
Pattern: [ --�𐀀-\r\n\t]*
public void setName(String name)
Constraints:
Length: 0 - 256
Pattern: [ --�𐀀-\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: [ --�𐀀-\r\n\t]*
name - The name of the job flow step.public String getActionOnFailure()
Constraints:
Allowed Values: TERMINATE_JOB_FLOW, CANCEL_AND_WAIT, CONTINUE
ActionOnFailurepublic void setActionOnFailure(String actionOnFailure)
Constraints:
Allowed Values: TERMINATE_JOB_FLOW, CANCEL_AND_WAIT, CONTINUE
actionOnFailure - Specifies 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, CANCEL_AND_WAIT, CONTINUE
actionOnFailure - Specifies the action to take if the job flow step fails.ActionOnFailurepublic void setActionOnFailure(ActionOnFailure actionOnFailure)
Constraints:
Allowed Values: TERMINATE_JOB_FLOW, CANCEL_AND_WAIT, CONTINUE
actionOnFailure - Specifies 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, CANCEL_AND_WAIT, CONTINUE
actionOnFailure - Specifies the action to take if the job flow step fails.ActionOnFailurepublic HadoopJarStepConfig getHadoopJarStep()
public void setHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
hadoopJarStep - Specifies 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 - Specifies the JAR file used for the job flow step.public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.