/** * <p> * The state of the step. * </p> * * @param state * The state of the step. * @return Returns a reference to this object so that method calls can be chained together. * @see StepExecutionState */ public StepExecutionStatusDetail withState(StepExecutionState state) { this.state = state.toString(); return this; }
/** * Use this in place of valueOf. * * @param value * real value * @return StepExecutionState corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static StepExecutionState fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (StepExecutionState enumEntry : StepExecutionState.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * Constructs a new StepExecutionStatusDetail object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param state * The state of the step. * @param creationDateTime * The creation date and time of the step. */ public StepExecutionStatusDetail(StepExecutionState state, java.util.Date creationDateTime) { setState(state.toString()); setCreationDateTime(creationDateTime); }
/** * <p> * The state of the step. * </p> * * @param state * The state of the step. * @return Returns a reference to this object so that method calls can be chained together. * @see StepExecutionState */ public StepExecutionStatusDetail withState(StepExecutionState state) { this.state = state.toString(); return this; }
/** * Use this in place of valueOf. * * @param value * real value * @return StepExecutionState corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static StepExecutionState fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (StepExecutionState enumEntry : StepExecutionState.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * Constructs a new StepExecutionStatusDetail object. Callers should use the setter or fluent setter (with...) * methods to initialize any additional object members. * * @param state * The state of the step. * @param creationDateTime * The creation date and time of the step. */ public StepExecutionStatusDetail(StepExecutionState state, java.util.Date creationDateTime) { setState(state.toString()); setCreationDateTime(creationDateTime); }