org.hawkular.cmdgw.api.StatisticsSetting Maven / Gradle / Ivy
package org.hawkular.cmdgw.api;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
@Generated("org.jsonschema2pojo")
public enum StatisticsSetting {
ENABLED("ENABLED"),
DISABLED("DISABLED");
private final String value;
private static Map constants = new HashMap();
static {
for (StatisticsSetting c: values()) {
constants.put(c.value, c);
}
}
private StatisticsSetting(String value) {
this.value = value;
}
@JsonValue
@Override
public String toString() {
return this.value;
}
@JsonCreator
public static StatisticsSetting fromValue(String value) {
StatisticsSetting constant = constants.get(value);
if (constant == null) {
throw new IllegalArgumentException(value);
} else {
return constant;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy