/** * Use this in place of valueOf. * * @param value * real value * @return AssessmentRunState corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static AssessmentRunState fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (AssessmentRunState enumEntry : AssessmentRunState.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * <p> * The state of the assessment run. * </p> * * @param state * The state of the assessment run. * @return Returns a reference to this object so that method calls can be chained together. * @see AssessmentRunState */ public AssessmentRun withState(AssessmentRunState state) { this.state = state.toString(); return this; }
/** * <p> * The assessment run state. * </p> * * @param state * The assessment run state. * @return Returns a reference to this object so that method calls can be chained together. * @see AssessmentRunState */ public AssessmentRunStateChange withState(AssessmentRunState state) { this.state = state.toString(); return this; }
/** * Use this in place of valueOf. * * @param value * real value * @return AssessmentRunState corresponding to the value * * @throws IllegalArgumentException * If the specified value does not map to one of the known values in this enum. */ public static AssessmentRunState fromValue(String value) { if (value == null || "".equals(value)) { throw new IllegalArgumentException("Value cannot be null or empty!"); } for (AssessmentRunState enumEntry : AssessmentRunState.values()) { if (enumEntry.toString().equals(value)) { return enumEntry; } } throw new IllegalArgumentException("Cannot create enum from " + value + " value!"); } }
/** * <p> * For a record to match a filter, one of the values specified for this data type property must be the exact match * of the value of the <b>assessmentRunState</b> property of the <a>AssessmentRun</a> data type. * </p> * * @param states * For a record to match a filter, one of the values specified for this data type property must be the exact * match of the value of the <b>assessmentRunState</b> property of the <a>AssessmentRun</a> data type. * @return Returns a reference to this object so that method calls can be chained together. * @see AssessmentRunState */ public AssessmentRunFilter withStates(AssessmentRunState... states) { java.util.ArrayList<String> statesCopy = new java.util.ArrayList<String>(states.length); for (AssessmentRunState value : states) { statesCopy.add(value.toString()); } if (getStates() == null) { setStates(statesCopy); } else { getStates().addAll(statesCopy); } return this; }
/** * <p> * The state of the assessment run. * </p> * * @param state * The state of the assessment run. * @return Returns a reference to this object so that method calls can be chained together. * @see AssessmentRunState */ public AssessmentRun withState(AssessmentRunState state) { this.state = state.toString(); return this; }
/** * <p> * The assessment run state. * </p> * * @param state * The assessment run state. * @return Returns a reference to this object so that method calls can be chained together. * @see AssessmentRunState */ public AssessmentRunStateChange withState(AssessmentRunState state) { this.state = state.toString(); return this; }
/** * <p> * For a record to match a filter, one of the values specified for this data type property must be the exact match * of the value of the <b>assessmentRunState</b> property of the <a>AssessmentRun</a> data type. * </p> * * @param states * For a record to match a filter, one of the values specified for this data type property must be the exact * match of the value of the <b>assessmentRunState</b> property of the <a>AssessmentRun</a> data type. * @return Returns a reference to this object so that method calls can be chained together. * @see AssessmentRunState */ public AssessmentRunFilter withStates(AssessmentRunState... states) { java.util.ArrayList<String> statesCopy = new java.util.ArrayList<String>(states.length); for (AssessmentRunState value : states) { statesCopy.add(value.toString()); } if (getStates() == null) { setStates(statesCopy); } else { getStates().addAll(statesCopy); } return this; }