org.openstack4j.openstack.compute.domain.ExtraSpecsWrapper Maven / Gradle / Ivy
The newest version!
package org.openstack4j.openstack.compute.domain;
import java.util.Map;
import org.openstack4j.model.ModelEntity;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* A Wrapper for flavor extra specs to get
*
* @author Octopus Zhang
*/
public class ExtraSpecsWrapper implements ModelEntity {
private static final long serialVersionUID = 1L;
@JsonProperty("extra_specs")
Map extraSpecs;
public ExtraSpecsWrapper() { }
public ExtraSpecsWrapper(Map extraSpecs) {
this.extraSpecs = extraSpecs;
}
/**
* Wraps the given extraSpecs into the wrapper
*
* @param extraSpecs
* @return extraSpecs wrapper
*/
public static ExtraSpecsWrapper wrap(Map extraSpecs) {
return new ExtraSpecsWrapper(extraSpecs);
}
/**
* @return the extraSpecs
*/
public Map getExtraSpecs() {
return extraSpecs;
}
}