@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StepConfig extends Object implements Serializable, Cloneable, StructuredPojo
Specification of a cluster (job flow) step.
Constructor and Description |
---|
StepConfig()
Default constructor for StepConfig object.
|
StepConfig(String name,
HadoopJarStepConfig hadoopJarStep)
Constructs a new StepConfig object.
|
Modifier and Type | Method and Description |
---|---|
StepConfig |
clone() |
boolean |
equals(Object obj) |
String |
getActionOnFailure()
The action to take when the cluster step fails.
|
HadoopJarStepConfig |
getHadoopJarStep()
The JAR file used for the step.
|
String |
getName()
The name of the step.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setActionOnFailure(ActionOnFailure actionOnFailure)
The action to take when the cluster step fails.
|
void |
setActionOnFailure(String actionOnFailure)
The action to take when the cluster step fails.
|
void |
setHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
The JAR file used for the step.
|
void |
setName(String name)
The name of the step.
|
String |
toString()
Returns a string representation of this object.
|
StepConfig |
withActionOnFailure(ActionOnFailure actionOnFailure)
The action to take when the cluster step fails.
|
StepConfig |
withActionOnFailure(String actionOnFailure)
The action to take when the cluster step fails.
|
StepConfig |
withHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
The JAR file used for the step.
|
StepConfig |
withName(String name)
The name of the step.
|
public StepConfig()
public StepConfig(String name, HadoopJarStepConfig hadoopJarStep)
name
- The name of the step.hadoopJarStep
- The JAR file used for the step.public void setName(String name)
The name of the step.
name
- The name of the step.public String getName()
The name of the step.
public StepConfig withName(String name)
The name of the step.
name
- The name of the step.public void setActionOnFailure(String actionOnFailure)
The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is provided for backward compatibility. We recommend using TERMINATE_CLUSTER instead.
actionOnFailure
- The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT,
and CONTINUE. TERMINATE_JOB_FLOW is provided for backward compatibility. We recommend using
TERMINATE_CLUSTER instead.ActionOnFailure
public String getActionOnFailure()
The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is provided for backward compatibility. We recommend using TERMINATE_CLUSTER instead.
ActionOnFailure
public StepConfig withActionOnFailure(String actionOnFailure)
The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is provided for backward compatibility. We recommend using TERMINATE_CLUSTER instead.
actionOnFailure
- The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT,
and CONTINUE. TERMINATE_JOB_FLOW is provided for backward compatibility. We recommend using
TERMINATE_CLUSTER instead.ActionOnFailure
public void setActionOnFailure(ActionOnFailure actionOnFailure)
The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is provided for backward compatibility. We recommend using TERMINATE_CLUSTER instead.
actionOnFailure
- The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT,
and CONTINUE. TERMINATE_JOB_FLOW is provided for backward compatibility. We recommend using
TERMINATE_CLUSTER instead.ActionOnFailure
public StepConfig withActionOnFailure(ActionOnFailure actionOnFailure)
The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is provided for backward compatibility. We recommend using TERMINATE_CLUSTER instead.
actionOnFailure
- The action to take when the cluster step fails. Possible values are TERMINATE_CLUSTER, CANCEL_AND_WAIT,
and CONTINUE. TERMINATE_JOB_FLOW is provided for backward compatibility. We recommend using
TERMINATE_CLUSTER instead.ActionOnFailure
public void setHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
The JAR file used for the step.
hadoopJarStep
- The JAR file used for the step.public HadoopJarStepConfig getHadoopJarStep()
The JAR file used for the step.
public StepConfig withHadoopJarStep(HadoopJarStepConfig hadoopJarStep)
The JAR file used for the step.
hadoopJarStep
- The JAR file used for the step.public String toString()
toString
in class Object
Object.toString()
public StepConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2021. All rights reserved.