me.tomsdevsn.hetznercloud.objects.request.RequestFloatingIP 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.request;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.Getter;
@Data
@Builder
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class RequestFloatingIP {
private String type;
@JsonProperty("home_location")
private String homeLocation;
private Long server;
private String description;
@Getter
@AllArgsConstructor
public enum Type {
IPV4("ipv4"),
IPV6("ipv6");
private String type;
@Override
public String toString() {
return type;
}
}
}