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

org.openstack4j.model.network.State Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonCreator;

/**
 * The state of a Network (Neutron) entity
 * 
 * @author Jeremy Unruh
 */
public enum State {
  ACTIVE,
  DOWN,
  BUILD,
  ERROR,
  PENDING_CREATE, 
  PENDING_UPDATE, 
  PENDING_DELETE,
  UNRECOGNIZED;
  
	@JsonCreator
	public static State forValue(String value) {
		if (value != null)
		{
			for (State s : State.values()) {
				if (s.name().equalsIgnoreCase(value))
					return s;
			}
		}
		return State.UNRECOGNIZED;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy