All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.tomsdevsn.hetznercloud.objects.request.RequestFloatingIP Maven / Gradle / Ivy

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;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy