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

org.openstack4j.model.dns.v2.Status Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * Status of a designate v2 recordset
 */
public enum Status {

	ERROR, PENDING, ACTIVE;

	@JsonValue
	public String value() {
		return name().toUpperCase();
	}

	//default to PRIMARY
	@JsonCreator
	public static Status value(String v)
	{
		if (v == null) return ERROR;
		try {
			return valueOf(v.toUpperCase());
		} catch (IllegalArgumentException e) {
			return ERROR;
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy