package it.tdlight.reactiveapi; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** * Define the cluster structure */ public class ClusterSettings { public String id; public List kafkaBootstrapServers; public List nodes; @JsonCreator public ClusterSettings(@JsonProperty(required = true, value = "id") String id, @JsonProperty(required = true, value = "kafkaBootstrapServers") List kafkaBootstrapServers, @JsonProperty(required = true, value = "nodes") List nodes) { this.id = id; this.kafkaBootstrapServers = kafkaBootstrapServers; this.nodes = nodes; } }