From 20cb2f6a7a78af1acdde9c608d0a9436ef4bb28e Mon Sep 17 00:00:00 2001 From: Christian Pelster Date: Fri, 25 Jan 2019 18:01:57 +0100 Subject: [PATCH] add labels support to floating ip creation --- .../hetznercloud/objects/request/FloatingIPRequest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/me/tomsdevsn/hetznercloud/objects/request/FloatingIPRequest.java b/src/main/java/me/tomsdevsn/hetznercloud/objects/request/FloatingIPRequest.java index 25a59876..142f4d02 100644 --- a/src/main/java/me/tomsdevsn/hetznercloud/objects/request/FloatingIPRequest.java +++ b/src/main/java/me/tomsdevsn/hetznercloud/objects/request/FloatingIPRequest.java @@ -7,6 +7,9 @@ import lombok.Data; import lombok.Getter; +import java.util.HashMap; +import java.util.Map; + @Data @Builder @AllArgsConstructor @@ -18,6 +21,7 @@ public class FloatingIPRequest { private String homeLocation; private Long server; private String description; + private Map labels = new HashMap<>(); @Getter @AllArgsConstructor