package org.openstack.model.image.glance;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import org.openstack.model.image.Image;
import org.openstack.model.image.ImageUploadResponse;

@XmlAccessorType(XmlAccessType.NONE)
@XmlRootElement()
public class GlanceImageUploadResponse implements ImageUploadResponse {
    @XmlElement(name = "image")
    private Image image;

    /* (non-Javadoc)
	 * @see org.openstack.model.image.glance.ImageUploadResponse#getImage()
	 */
    @Override
	public Image getImage() {
        return image;
    }

    /* (non-Javadoc)
	 * @see org.openstack.model.image.glance.ImageUploadResponse#setImage(org.openstack.model.image.Image)
	 */
    @Override
	public void setImage(Image image) {
        this.image = image;
    }

	@Override
	public String toString() {
		return "GlanceImageUploadResponse [image=" + image + "]";
	}

}
