org.openstack4j.model.octavia.HealthMonitorType Maven / Gradle / Ivy
package org.openstack4j.model.octavia;
import com.fasterxml.jackson.annotation.JsonCreator;
/**
* A Health Monitor Type
*
* @author wei
*/
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;
}
}