@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)
Marshalls this structured data using the given  
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.ActionOnFailurepublic 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.
ActionOnFailurepublic 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.ActionOnFailurepublic 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.ActionOnFailurepublic 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.ActionOnFailurepublic 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 ObjectObject.toString()public StepConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.