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

org.openstack4j.model.network.ext.HealthMonitorType Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package org.openstack4j.model.network.ext;

import com.fasterxml.jackson.annotation.JsonCreator;
/**
 * A Health Monitor Type
 * 
 * @author liujunpeng
 *
 */
public enum HealthMonitorType {
	PING, TCP, HTTP, HTTPS;
	
    @JsonCreator
    public static HealthMonitorType forValue(String value) {
        if (value != null)
        {
            for (HealthMonitorType s : HealthMonitorType.values()) {
                if (s.name().equalsIgnoreCase(value)) {
                    return s;
                }
            }
        }
        return HealthMonitorType.HTTP;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy