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

org.openstack4j.model.compute.PortState Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonCreator;

/**
 * Represents a Port State
 * 
 * @author Jeremy Unruh
 */
public enum PortState {
    ACTIVE,
    DOWN,
    BUILD,
    ERROR,
    UNRECOGNIZED;
    
      @JsonCreator
      public static PortState forValue(String value) {
          if (value != null)
          {
              for (PortState s : PortState.values()) {
                  if (s.name().equalsIgnoreCase(value))
                      return s;
              }
          }
          return PortState.UNRECOGNIZED;
      }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy