Sha256: 6d504b8718873282ae21eb009424334e627deb138ec1e1ce2f6878a9d8d8a771

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

package org.embulk.output.kintone;

import org.embulk.config.TaskSource;

public class KintoneColumnOptionBuilder {
  private String type;
  private String fieldCode;
  private String timezone;
  private String valueSeparator;

  public KintoneColumnOptionBuilder setType(String type) {
    this.type = type;
    return this;
  }

  public KintoneColumnOptionBuilder setFieldCode(String fieldCode) {
    this.fieldCode = fieldCode;
    return this;
  }

  public KintoneColumnOptionBuilder setTimezone(String timezone) {
    this.timezone = timezone;
    return this;
  }

  public KintoneColumnOptionBuilder setValueSeparator(String valueSeparator) {
    this.valueSeparator = valueSeparator;
    return this;
  }

  public KintoneColumnOption build() {
    return new KintoneColumnOption() {
      @Override
      public String getType() {
        return type;
      }

      @Override
      public String getFieldCode() {
        return fieldCode;
      }

      @Override
      public String getTimezone() {
        return timezone;
      }

      @Override
      public String getValueSeparator() {
        return valueSeparator;
      }

      @Override
      public void validate() {}

      @Override
      public TaskSource dump() {
        return null;
      }
    };
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
embulk-output-kintone-1.0.0 src/test/java/org/embulk/output/kintone/KintoneColumnOptionBuilder.java