
io.vertx.ext.consul.PreparedQueryExecuteResponseConverter Maven / Gradle / Ivy
package io.vertx.ext.consul;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import java.time.Instant;
import java.time.format.DateTimeFormatter;
/**
* Converter and mapper for {@link io.vertx.ext.consul.PreparedQueryExecuteResponse}.
* NOTE: This class has been automatically generated from the {@link io.vertx.ext.consul.PreparedQueryExecuteResponse} original class using Vert.x codegen.
*/
public class PreparedQueryExecuteResponseConverter {
static void fromJson(Iterable> json, PreparedQueryExecuteResponse obj) {
for (java.util.Map.Entry member : json) {
switch (member.getKey()) {
case "service":
if (member.getValue() instanceof String) {
obj.setService((String)member.getValue());
}
break;
case "dc":
if (member.getValue() instanceof String) {
obj.setDc((String)member.getValue());
}
break;
case "dnsTtl":
if (member.getValue() instanceof String) {
obj.setDnsTtl((String)member.getValue());
}
break;
case "failovers":
if (member.getValue() instanceof Number) {
obj.setFailovers(((Number)member.getValue()).intValue());
}
break;
case "nodes":
if (member.getValue() instanceof JsonArray) {
java.util.ArrayList list = new java.util.ArrayList<>();
((Iterable
© 2015 - 2025 Weber Informatics LLC | Privacy Policy