All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clinia.model.datacatalog.V1FileConnectorConfig Maven / Gradle / Ivy

// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/clinia/api-clients-generation. DO NOT EDIT.

package com.clinia.model.datacatalog;

import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;

/** File connector. */
@JsonDeserialize(as = V1FileConnectorConfig.class)
public class V1FileConnectorConfig implements V1ConnectorConfig {

  /** The type of the connector. */
  public enum TypeEnum {
    FILE("FILE");

    private String value;

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

    @JsonValue
    public String getValue() {
      return value;
    }

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

    @JsonCreator
    public static TypeEnum fromValue(String value) {
      for (TypeEnum b : TypeEnum.values()) {
        if (b.value.equals(value)) {
          return b;
        }
      }
      throw new IllegalArgumentException("Unexpected value '" + value + "'");
    }
  }

  @JsonProperty("type")
  private TypeEnum type;

  @JsonProperty("config")
  private V1FileConfig config;

  public V1FileConnectorConfig setType(TypeEnum type) {
    this.type = type;
    return this;
  }

  /** The type of the connector. */
  @javax.annotation.Nonnull
  public TypeEnum getType() {
    return type;
  }

  public V1FileConnectorConfig setConfig(V1FileConfig config) {
    this.config = config;
    return this;
  }

  /** Get config */
  @javax.annotation.Nonnull
  public V1FileConfig getConfig() {
    return config;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    V1FileConnectorConfig v1FileConnectorConfig = (V1FileConnectorConfig) o;
    return Objects.equals(this.type, v1FileConnectorConfig.type) && Objects.equals(this.config, v1FileConnectorConfig.config);
  }

  @Override
  public int hashCode() {
    return Objects.hash(type, config);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V1FileConnectorConfig {\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    config: ").append(toIndentedString(config)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy