25 lines
695 B
Java
25 lines
695 B
Java
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<String> kafkaBootstrapServers;
|
|
public List<String> lanes;
|
|
|
|
@JsonCreator
|
|
public ClusterSettings(@JsonProperty(required = true, value = "id") String id,
|
|
@JsonProperty(required = true, value = "kafkaBootstrapServers") List<String> kafkaBootstrapServers,
|
|
@JsonProperty(required = true, value = "lanes") List<String> lanes) {
|
|
this.id = id;
|
|
this.kafkaBootstrapServers = kafkaBootstrapServers;
|
|
this.lanes = lanes;
|
|
}
|
|
}
|