
com.ellucian.generated.eedm.persons.v12_0.RoleEnum Maven / Gradle / Ivy
package com.ellucian.generated.eedm.persons.v12_0;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* Role
*
* The actions and activities assigned to, required of, or expected of a person. For example, the roles of "Faculty" or "Student".
*
*/
@Generated("jsonschema2pojo")
public enum RoleEnum {
STUDENT("student"),
INSTRUCTOR("instructor"),
EMPLOYEE("employee"),
VENDOR("vendor"),
ALUMNI("alumni"),
PROSPECTIVE_STUDENT("prospectiveStudent"),
ADVISOR("advisor");
private final String value;
private final static Map CONSTANTS = new HashMap();
static {
for (RoleEnum c: values()) {
CONSTANTS.put(c.value, c);
}
}
RoleEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
@JsonValue
public String value() {
return this.value;
}
@JsonCreator
public static RoleEnum fromValue(String value) {
RoleEnum constant = CONSTANTS.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}