Sha256: 1b5df62225176e28a480146728b008477d2b75b6bf1e60029ad8578d2e0d9ee2

Contents?: true

Size: 827 Bytes

Versions: 14

Compression:

Stored size: 827 Bytes

Contents

package org.embulk.output.redshift;

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

14 entries across 14 versions & 1 rubygems

Version Path
embulk-output-redshift-0.7.9 src/main/java/org/embulk/output/redshift/Ssl.java
embulk-output-redshift-0.7.8 src/main/java/org/embulk/output/redshift/Ssl.java
embulk-output-redshift-0.7.7 src/main/java/org/embulk/output/redshift/Ssl.java
embulk-output-redshift-0.7.6 src/main/java/org/embulk/output/redshift/Ssl.java
embulk-output-redshift-0.7.5 src/main/java/org/embulk/output/redshift/Ssl.java
embulk-output-redshift-0.7.4 src/main/java/org/embulk/output/redshift/Ssl.java
embulk-output-redshift-0.7.3 src/main/java/org/embulk/output/redshift/Ssl.java
embulk-output-redshift-0.7.2 src/main/java/org/embulk/output/redshift/Ssl.java
embulk-output-redshift-0.7.1 src/main/java/org/embulk/output/redshift/Ssl.java
embulk-output-redshift-0.7.0 src/main/java/org/embulk/output/redshift/Ssl.java
embulk-output-redshift-0.6.5 src/main/java/org/embulk/output/redshift/Ssl.java
embulk-output-redshift-0.6.4 src/main/java/org/embulk/output/redshift/Ssl.java
embulk-output-redshift-0.6.3 src/main/java/org/embulk/output/redshift/Ssl.java
embulk-output-redshift-0.6.2 src/main/java/org/embulk/output/redshift/Ssl.java