@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Step extends Object implements Serializable, Cloneable, StructuredPojo
This represents a step in a cluster.
| Constructor and Description | 
|---|
| Step() | 
| Modifier and Type | Method and Description | 
|---|---|
| Step | clone() | 
| boolean | equals(Object obj) | 
| String | getActionOnFailure()
 The action to take when the cluster step fails. | 
| HadoopStepConfig | getConfig()
 The Hadoop job configuration of the cluster step. | 
| String | getExecutionRoleArn()
 The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. | 
| String | getId()
 The identifier of the cluster step. | 
| String | getName()
 The name of the cluster step. | 
| StepStatus | getStatus()
 The current execution status details of the cluster 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 | setConfig(HadoopStepConfig config)
 The Hadoop job configuration of the cluster step. | 
| void | setExecutionRoleArn(String executionRoleArn)
 The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. | 
| void | setId(String id)
 The identifier of the cluster step. | 
| void | setName(String name)
 The name of the cluster step. | 
| void | setStatus(StepStatus status)
 The current execution status details of the cluster step. | 
| String | toString()Returns a string representation of this object. | 
| Step | withActionOnFailure(ActionOnFailure actionOnFailure)
 The action to take when the cluster step fails. | 
| Step | withActionOnFailure(String actionOnFailure)
 The action to take when the cluster step fails. | 
| Step | withConfig(HadoopStepConfig config)
 The Hadoop job configuration of the cluster step. | 
| Step | withExecutionRoleArn(String executionRoleArn)
 The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. | 
| Step | withId(String id)
 The identifier of the cluster step. | 
| Step | withName(String name)
 The name of the cluster step. | 
| Step | withStatus(StepStatus status)
 The current execution status details of the cluster step. | 
public void setId(String id)
The identifier of the cluster step.
id - The identifier of the cluster step.public String getId()
The identifier of the cluster step.
public Step withId(String id)
The identifier of the cluster step.
id - The identifier of the cluster step.public void setName(String name)
The name of the cluster step.
name - The name of the cluster step.public String getName()
The name of the cluster step.
public Step withName(String name)
The name of the cluster step.
name - The name of the cluster step.public void setConfig(HadoopStepConfig config)
The Hadoop job configuration of the cluster step.
config - The Hadoop job configuration of the cluster step.public HadoopStepConfig getConfig()
The Hadoop job configuration of the cluster step.
public Step withConfig(HadoopStepConfig config)
The Hadoop job configuration of the cluster step.
config - The Hadoop job configuration of the cluster 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.
 
 If a cluster's StepConcurrencyLevel is greater than 1, do not use
 AddJobFlowSteps to submit a step with this parameter set to CANCEL_AND_WAIT or
 TERMINATE_CLUSTER. The step is not submitted and the action fails with a message that the
 ActionOnFailure setting is not valid.
 
 If you change a cluster's StepConcurrencyLevel to be greater than 1 while a step is running, the
 ActionOnFailure parameter may not behave as you expect. In this case, for a step that fails with
 this parameter set to CANCEL_AND_WAIT, pending steps and the running step are not canceled; for a
 step that fails with this parameter set to TERMINATE_CLUSTER, the cluster does not terminate.
 
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.
        
        If a cluster's StepConcurrencyLevel is greater than 1, do not use
        AddJobFlowSteps to submit a step with this parameter set to CANCEL_AND_WAIT or
        TERMINATE_CLUSTER. The step is not submitted and the action fails with a message that the
        ActionOnFailure setting is not valid.
        
        If you change a cluster's StepConcurrencyLevel to be greater than 1 while a step is running,
        the ActionOnFailure parameter may not behave as you expect. In this case, for a step that
        fails with this parameter set to CANCEL_AND_WAIT, pending steps and the running step are not
        canceled; for a step that fails with this parameter set to TERMINATE_CLUSTER, the cluster
        does not terminate.
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.
 
 If a cluster's StepConcurrencyLevel is greater than 1, do not use
 AddJobFlowSteps to submit a step with this parameter set to CANCEL_AND_WAIT or
 TERMINATE_CLUSTER. The step is not submitted and the action fails with a message that the
 ActionOnFailure setting is not valid.
 
 If you change a cluster's StepConcurrencyLevel to be greater than 1 while a step is running, the
 ActionOnFailure parameter may not behave as you expect. In this case, for a step that fails with
 this parameter set to CANCEL_AND_WAIT, pending steps and the running step are not canceled; for a
 step that fails with this parameter set to TERMINATE_CLUSTER, the cluster does not terminate.
 
TERMINATE_CLUSTER,
         CANCEL_AND_WAIT, and CONTINUE. TERMINATE_JOB_FLOW is provided for
         backward compatibility. We recommend using TERMINATE_CLUSTER instead.
         
         If a cluster's StepConcurrencyLevel is greater than 1, do not use
         AddJobFlowSteps to submit a step with this parameter set to CANCEL_AND_WAIT or
         TERMINATE_CLUSTER. The step is not submitted and the action fails with a message that the
         ActionOnFailure setting is not valid.
         
         If you change a cluster's StepConcurrencyLevel to be greater than 1 while a step is running,
         the ActionOnFailure parameter may not behave as you expect. In this case, for a step that
         fails with this parameter set to CANCEL_AND_WAIT, pending steps and the running step are not
         canceled; for a step that fails with this parameter set to TERMINATE_CLUSTER, the cluster
         does not terminate.
ActionOnFailurepublic Step 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.
 
 If a cluster's StepConcurrencyLevel is greater than 1, do not use
 AddJobFlowSteps to submit a step with this parameter set to CANCEL_AND_WAIT or
 TERMINATE_CLUSTER. The step is not submitted and the action fails with a message that the
 ActionOnFailure setting is not valid.
 
 If you change a cluster's StepConcurrencyLevel to be greater than 1 while a step is running, the
 ActionOnFailure parameter may not behave as you expect. In this case, for a step that fails with
 this parameter set to CANCEL_AND_WAIT, pending steps and the running step are not canceled; for a
 step that fails with this parameter set to TERMINATE_CLUSTER, the cluster does not terminate.
 
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.
        
        If a cluster's StepConcurrencyLevel is greater than 1, do not use
        AddJobFlowSteps to submit a step with this parameter set to CANCEL_AND_WAIT or
        TERMINATE_CLUSTER. The step is not submitted and the action fails with a message that the
        ActionOnFailure setting is not valid.
        
        If you change a cluster's StepConcurrencyLevel to be greater than 1 while a step is running,
        the ActionOnFailure parameter may not behave as you expect. In this case, for a step that
        fails with this parameter set to CANCEL_AND_WAIT, pending steps and the running step are not
        canceled; for a step that fails with this parameter set to TERMINATE_CLUSTER, the cluster
        does not terminate.
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.
 
 If a cluster's StepConcurrencyLevel is greater than 1, do not use
 AddJobFlowSteps to submit a step with this parameter set to CANCEL_AND_WAIT or
 TERMINATE_CLUSTER. The step is not submitted and the action fails with a message that the
 ActionOnFailure setting is not valid.
 
 If you change a cluster's StepConcurrencyLevel to be greater than 1 while a step is running, the
 ActionOnFailure parameter may not behave as you expect. In this case, for a step that fails with
 this parameter set to CANCEL_AND_WAIT, pending steps and the running step are not canceled; for a
 step that fails with this parameter set to TERMINATE_CLUSTER, the cluster does not terminate.
 
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.
        
        If a cluster's StepConcurrencyLevel is greater than 1, do not use
        AddJobFlowSteps to submit a step with this parameter set to CANCEL_AND_WAIT or
        TERMINATE_CLUSTER. The step is not submitted and the action fails with a message that the
        ActionOnFailure setting is not valid.
        
        If you change a cluster's StepConcurrencyLevel to be greater than 1 while a step is running,
        the ActionOnFailure parameter may not behave as you expect. In this case, for a step that
        fails with this parameter set to CANCEL_AND_WAIT, pending steps and the running step are not
        canceled; for a step that fails with this parameter set to TERMINATE_CLUSTER, the cluster
        does not terminate.
ActionOnFailurepublic Step 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.
 
 If a cluster's StepConcurrencyLevel is greater than 1, do not use
 AddJobFlowSteps to submit a step with this parameter set to CANCEL_AND_WAIT or
 TERMINATE_CLUSTER. The step is not submitted and the action fails with a message that the
 ActionOnFailure setting is not valid.
 
 If you change a cluster's StepConcurrencyLevel to be greater than 1 while a step is running, the
 ActionOnFailure parameter may not behave as you expect. In this case, for a step that fails with
 this parameter set to CANCEL_AND_WAIT, pending steps and the running step are not canceled; for a
 step that fails with this parameter set to TERMINATE_CLUSTER, the cluster does not terminate.
 
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.
        
        If a cluster's StepConcurrencyLevel is greater than 1, do not use
        AddJobFlowSteps to submit a step with this parameter set to CANCEL_AND_WAIT or
        TERMINATE_CLUSTER. The step is not submitted and the action fails with a message that the
        ActionOnFailure setting is not valid.
        
        If you change a cluster's StepConcurrencyLevel to be greater than 1 while a step is running,
        the ActionOnFailure parameter may not behave as you expect. In this case, for a step that
        fails with this parameter set to CANCEL_AND_WAIT, pending steps and the running step are not
        canceled; for a step that fails with this parameter set to TERMINATE_CLUSTER, the cluster
        does not terminate.
ActionOnFailurepublic void setStatus(StepStatus status)
The current execution status details of the cluster step.
status - The current execution status details of the cluster step.public StepStatus getStatus()
The current execution status details of the cluster step.
public Step withStatus(StepStatus status)
The current execution status details of the cluster step.
status - The current execution status details of the cluster step.public void setExecutionRoleArn(String executionRoleArn)
 The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. The runtime role can be a
 cross-account IAM role. The runtime role ARN is a combination of account ID, role name, and role type using the
 following format: arn:partition:service:region:account:resource.
 
 For example, arn:aws:IAM::1234567890:role/ReadOnly is a correctly formatted runtime role ARN.
 
executionRoleArn - The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. The runtime role can be a
        cross-account IAM role. The runtime role ARN is a combination of account ID, role name, and role type
        using the following format: arn:partition:service:region:account:resource. 
        
        For example, arn:aws:IAM::1234567890:role/ReadOnly is a correctly formatted runtime role ARN.
public String getExecutionRoleArn()
 The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. The runtime role can be a
 cross-account IAM role. The runtime role ARN is a combination of account ID, role name, and role type using the
 following format: arn:partition:service:region:account:resource.
 
 For example, arn:aws:IAM::1234567890:role/ReadOnly is a correctly formatted runtime role ARN.
 
arn:partition:service:region:account:resource. 
         
         For example, arn:aws:IAM::1234567890:role/ReadOnly is a correctly formatted runtime role
         ARN.
public Step withExecutionRoleArn(String executionRoleArn)
 The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. The runtime role can be a
 cross-account IAM role. The runtime role ARN is a combination of account ID, role name, and role type using the
 following format: arn:partition:service:region:account:resource.
 
 For example, arn:aws:IAM::1234567890:role/ReadOnly is a correctly formatted runtime role ARN.
 
executionRoleArn - The Amazon Resource Name (ARN) of the runtime role for a step on the cluster. The runtime role can be a
        cross-account IAM role. The runtime role ARN is a combination of account ID, role name, and role type
        using the following format: arn:partition:service:region:account:resource. 
        
        For example, arn:aws:IAM::1234567890:role/ReadOnly is a correctly formatted runtime role ARN.
public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2025. All rights reserved.