Sha256: acb1064f5fe68b8dc8c216dd2b0ead36f45b45e5e1dcc52f9f2944804a30b297

Contents?: true

Size: 583 Bytes

Versions: 2

Compression:

Stored size: 583 Bytes

Contents

package org.embulk.output.kintone;

import org.embulk.config.ConfigException;

public enum KintoneMode {
  INSERT("insert"),
  UPDATE("update"),
  UPSERT("upsert");
  private final String value;

  KintoneMode(String value) {
    this.value = value;
  }

  @Override
  public String toString() {
    return value;
  }

  public static KintoneMode getKintoneModeByValue(String value) {
    for (KintoneMode mode : values()) {
      if (mode.toString().equals(value)) {
        return mode;
      }
    }
    throw new ConfigException(String.format("Unknown mode '%s'", value));
  }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
embulk-output-kintone-1.1.0 src/main/java/org/embulk/output/kintone/KintoneMode.java
embulk-output-kintone-1.0.0 src/main/java/org/embulk/output/kintone/KintoneMode.java