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

org.openstack4j.model.manila.ExtraSpecs Maven / Gradle / Ivy

package org.openstack4j.model.manila;

import com.fasterxml.jackson.annotation.JsonRootName;
import org.openstack4j.model.ModelEntity;

import java.util.HashMap;
import java.util.Map;

/**
 * Represents extra specifications for share types.
 *
 * @author Daniel Gonzalez Nothnagel
 */
@JsonRootName("extra_specs")
public class ExtraSpecs extends HashMap implements ModelEntity {
    private static final long serialVersionUID = 1L;

    /**
     * Creates extra specifications from a map.
     *
     * @param from the base map
     * @return the extra specifications created from the map
     */
    public static ExtraSpecs toExtraSpecs(Map from) {
        ExtraSpecs extraSpecs = new ExtraSpecs();
        extraSpecs.putAll(from);
        return extraSpecs;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy