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

org.openstack4j.model.octavia.LbOperatingStatus Maven / Gradle / Ivy

There is a newer version: 3.12
Show newest version
package org.openstack4j.model.octavia;

import com.fasterxml.jackson.annotation.JsonCreator;

/**
 * Operating status of a load balancer v2
 */
public enum LbOperatingStatus {
    ONLINE,
    DRAINING,
    DEGRADED,
    ERROR,
    NO_MONITOR,
    OFFLINE;

    @JsonCreator
    public static LbOperatingStatus forValue(String value) {
        if (value != null)
        {
            for (LbOperatingStatus s : LbOperatingStatus.values()) {
                if (s.name().equalsIgnoreCase(value)) {
                    return s;
                }
            }
        }
        return LbOperatingStatus.OFFLINE;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy