All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.db2client.DB2ConnectOptionsConverter Maven / Gradle / Ivy

The newest version!
package io.vertx.db2client;

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.db2client.DB2ConnectOptions}.
 * NOTE: This class has been automatically generated from the {@link io.vertx.db2client.DB2ConnectOptions} original class using Vert.x codegen.
 */
public class DB2ConnectOptionsConverter {

   static void fromJson(Iterable> json, DB2ConnectOptions obj) {
    for (java.util.Map.Entry member : json) {
      switch (member.getKey()) {
        case "ssl":
          if (member.getValue() instanceof Boolean) {
            obj.setSsl((Boolean)member.getValue());
          }
          break;
        case "pipeliningLimit":
          break;
      }
    }
  }

   static void toJson(DB2ConnectOptions obj, JsonObject json) {
    toJson(obj, json.getMap());
  }

   static void toJson(DB2ConnectOptions obj, java.util.Map json) {
    json.put("ssl", obj.isSsl());
    json.put("pipeliningLimit", obj.getPipeliningLimit());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy