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

org.openstack4j.model.gbp.NetworkServiceParamValue Maven / Gradle / Ivy

There is a newer version: 3.11
Show newest version
package org.openstack4j.model.gbp;

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

/**
 * Created by sumit gandhi on 7/8/2016.
 */
public enum NetworkServiceParamValue {

    SELF_SUBNET,
    NAT_POOL,
    UNRECOGNIZED
    ;

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

    @JsonCreator
    public static NetworkServiceParamValue value(String paramValue) {
        try {
            return valueOf(paramValue.toUpperCase());
        }
        catch (IllegalArgumentException e) {
            return UNRECOGNIZED;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy