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

Version Path
embulk-output-jdbc-0.8.7 src/main/java/org/embulk/output/jdbc/Ssl.java
embulk-output-jdbc-0.8.5 src/main/java/org/embulk/output/jdbc/Ssl.java
embulk-output-jdbc-0.8.4 src/main/java/org/embulk/output/jdbc/Ssl.java
embulk-output-jdbc-0.8.3 src/main/java/org/embulk/output/jdbc/Ssl.java
embulk-output-jdbc-0.8.2 src/main/java/org/embulk/output/jdbc/Ssl.java
embulk-output-jdbc-0.8.1 src/main/java/org/embulk/output/jdbc/Ssl.java
embulk-output-jdbc-0.7.13 src/main/java/org/embulk/output/jdbc/Ssl.java
embulk-output-jdbc-0.7.12 src/main/java/org/embulk/output/jdbc/Ssl.java
embulk-output-jdbc-0.7.11 src/main/java/org/embulk/output/jdbc/Ssl.java
embulk-output-jdbc-0.7.10 src/main/java/org/embulk/output/jdbc/Ssl.java