/** * <p> * 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. * </p> * * @param 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. * @return Returns a reference to this object so that method calls can be chained together. * @see ActionOnFailure */ public StepConfig withActionOnFailure(String actionOnFailure) { setActionOnFailure(actionOnFailure); return this; }
stepConfig.setActionOnFailure(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * 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. * </p> * * @param 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. * @return Returns a reference to this object so that method calls can be chained together. * @see ActionOnFailure */ public StepConfig withActionOnFailure(String actionOnFailure) { setActionOnFailure(actionOnFailure); return this; }
stepConfig.setActionOnFailure(context.getUnmarshaller(String.class).unmarshall(context));