me.tomsdevsn.hetznercloud.objects.general.FloatingIP 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 lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import java.util.List;
@Data
public class FloatingIP {
private Long id;
private String description;
private String ip;
private String type;
private Long server;
@JsonProperty("dns_ptr")
private List dnsPTR;
@JsonProperty("home_location")
private HomeLocation homeLocation;
private boolean blocked;
@Data
public static class DnsPTR {
private String ip;
@JsonProperty("dns_ptr")
private String dnsPTR;
}
@Data
public static class HomeLocation {
private Long id;
private String name;
private String description;
private String country;
private String city;
private double latitude;
private double longitude;
}
}