me.tomsdevsn.hetznercloud.objects.general.Server 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 lombok.Getter;
import lombok.Setter;
import me.tomsdevsn.hetznercloud.deserialize.DateDeserializer;
import java.util.Date;
@Data
public class Server {
private Long id;
private String name;
private String status;
@JsonDeserialize(using = DateDeserializer.class)
private Date created;
@JsonProperty("public_net")
private PublicNet publicNet;
@JsonProperty("server_type")
private ServerType serverType;
private Datacenter datacenter;
private Image image;
private ISO iso;
@JsonProperty("rescue_enabled")
private boolean rescueEnabled;
private boolean locked;
@JsonProperty("backup_window")
private String backupWindow;
@JsonProperty("outgoing_traffic")
private Long outgoingTraffic;
@JsonProperty("ingoing_traffic")
private Long ingoingTraffic;
@JsonProperty("included_traffic")
private Long includedTraffic;
}