All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hawkular.cmdgw.api.ServerRefreshIndicator 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 ServerRefreshIndicator {

    RELOAD_REQUIRED("RELOAD-REQUIRED"),
    RESTART_REQUIRED("RESTART-REQUIRED");
    private final String value;
    private static Map constants = new HashMap();

    static {
        for (ServerRefreshIndicator c: values()) {
            constants.put(c.value, c);
        }
    }

    private ServerRefreshIndicator(String value) {
        this.value = value;
    }

    @JsonValue
    @Override
    public String toString() {
        return this.value;
    }

    @JsonCreator
    public static ServerRefreshIndicator fromValue(String value) {
        ServerRefreshIndicator constant = constants.get(value);
        if (constant == null) {
            throw new IllegalArgumentException(value);
        } else {
            return constant;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy