me.tomsdevsn.hetznercloud.objects.response.BackupAction 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.response;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;
import me.tomsdevsn.hetznercloud.deserialize.DateDeserializer;
import java.util.Date;
import java.util.List;
@Data
public class BackupAction {
private Long id;
private String command;
private String status;
private Long progress;
@JsonDeserialize(using = DateDeserializer.class)
private Date started;
@JsonDeserialize(using = DateDeserializer.class)
private Date finished;
private List resources;
private Error error;
@Data
public static class Resources {
private Long id;
private String type;
}
@Data
public static class Error {
public String code;
public String message;
}
}