From ba48c6a20082efcf198f987af16efb47bd9c0917 Mon Sep 17 00:00:00 2001 From: Christian Pelster Date: Wed, 16 Jan 2019 20:44:19 +0100 Subject: [PATCH] add support for server labels --- .../tomsdevsn/hetznercloud/objects/request/ServerRequest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/me/tomsdevsn/hetznercloud/objects/request/ServerRequest.java b/src/main/java/me/tomsdevsn/hetznercloud/objects/request/ServerRequest.java index d156418d..66325a4b 100644 --- a/src/main/java/me/tomsdevsn/hetznercloud/objects/request/ServerRequest.java +++ b/src/main/java/me/tomsdevsn/hetznercloud/objects/request/ServerRequest.java @@ -4,7 +4,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import lombok.*; +import java.util.HashMap; import java.util.List; +import java.util.Map; @Data @Builder @@ -23,6 +25,8 @@ public class ServerRequest { @JsonProperty("start_after_create") private boolean startAfterCreate; + private Map labels = new HashMap<>(); + /** * The objects in the list have to be a Long or a String, or it will throw an Exception {@link me.tomsdevsn.hetznercloud.exception.InvalidParametersException} */