me.tomsdevsn.hetznercloud.objects.general.Image Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hetznercloud-java_2.12 Show documentation
Show all versions of hetznercloud-java_2.12 Show documentation
Java Integration to manage the Hetzner-Cloud
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;
}
}