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

org.openstack4j.model.compute.BDMDestType 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;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * Block Device Mapping Destination Type
 * 
 * @author Jeremy Unruh
 * @see http://docs.openstack.org/developer/nova/block_device_mapping.html
 */
public enum BDMDestType {

    /** Will either mean an ephemeral blank disk on hypervisor local storage, or a swap disk  **/
    LOCAL, 
    /** Creates a blank Cinder volume and attaches it. This will also require the volume size to be set **/
    VOLUME;

    @JsonCreator
    public static BDMDestType value(String v) {
        if (v == null)
            return LOCAL;
        try {
            return valueOf(v.toUpperCase());
        } catch (IllegalArgumentException e) {
            return LOCAL;
        }
    }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy