io.github.algomaster99.terminator.commons.cyclonedx.Response Maven / Gradle / Ivy
package io.github.algomaster99.terminator.commons.cyclonedx;
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;
@Generated("jsonschema2pojo")
public enum Response {
CAN_NOT_FIX("can_not_fix"),
WILL_NOT_FIX("will_not_fix"),
UPDATE("update"),
ROLLBACK("rollback"),
WORKAROUND_AVAILABLE("workaround_available");
private final String value;
private final static Map CONSTANTS = new HashMap();
static {
for (Response c: values()) {
CONSTANTS.put(c.value, c);
}
}
Response(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
@JsonValue
public String value() {
return this.value;
}
@JsonCreator
public static Response fromValue(String value) {
Response constant = CONSTANTS.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}