Sha256: ec199b9ba04bdf0f5b18cf266d9d9b5c5f38e091b2aa87d65cb276eda0d55d1f
Contents?: true
Size: 823 Bytes
Versions: 10
Compression:
Stored size: 823 Bytes
Contents
package org.embulk.output.jdbc; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import org.embulk.config.ConfigException; public enum Ssl { ENABLE, DISABLE, VERIFY; @JsonValue @Override public String toString() { return this.name().toLowerCase(); } @JsonCreator public static Ssl fromString(String value) { switch(value) { case "enable": case "true": return ENABLE; case "disable": case "false": return DISABLE; case "verify": return VERIFY; default: throw new ConfigException(String.format("Unknown SSL value '%s'. Supported values are enable, true, disable, false or verify.", value)); } } }
Version data entries
10 entries across 10 versions & 1 rubygems