me.tomsdevsn.hetznercloud.objects.general.PublicNet 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.Data;
import java.util.List;
@Data
public class PublicNet {
private IPv4 ipv4;
private IPv6 ipv6;
@JsonProperty("floating_ips")
private List floatingIPs;
@Data
public static class IPv4 {
private String ip;
private boolean blocked;
@JsonProperty("dns_ptr")
public String dnsPTR;
}
@Data
public static class IPv6 {
private String ip;
private boolean blocked;
@JsonProperty("dns_ptr")
private List dnsPTR;
@Data
public static class DNSPTR {
private String ip;
@JsonProperty("dns_ptr")
private String dnsPTR;
}
}
}