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

me.tomsdevsn.hetznercloud.objects.general.Image Maven / Gradle / Ivy

The newest version!
package me.tomsdevsn.hetznercloud.objects.general;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;
import me.tomsdevsn.hetznercloud.deserialize.DateDeserializer;

import java.util.Date;

@Data
public class Image {

    public Long id;
    private String type;
    private String status;
    private String name;
    private String description;
    @JsonProperty("image_size")
    private Double imageSize;
    @JsonProperty("disk_size")
    private Double diskSize;
    @JsonDeserialize(using = DateDeserializer.class)
    private Date created;
    @JsonProperty("created_from")
    private CreatedFrom createdFrom;
    @JsonProperty("bound_to")
    private Long boundTo;
    @JsonProperty("os_flavor")
    private String osFlavor;
    @JsonProperty("os_version")
    private String osVersion;
    @JsonProperty("rapid_redeploy")
    private boolean rapidRedeploy;

    @Data
    public static class CreatedFrom {
        private Long id;
        private String name;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy