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

com.databricks.sdk.service.pipelines.TableSpecificConfig Maven / Gradle / Ivy

There is a newer version: 0.38.0
Show newest version
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.

package com.databricks.sdk.service.pipelines;

import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import java.util.Objects;

@Generated
public class TableSpecificConfig {
  /** The primary key of the table used to apply changes. */
  @JsonProperty("primary_keys")
  private Collection primaryKeys;

  /**
   * If true, formula fields defined in the table are included in the ingestion. This setting is
   * only valid for the Salesforce connector
   */
  @JsonProperty("salesforce_include_formula_fields")
  private Boolean salesforceIncludeFormulaFields;

  /** The SCD type to use to ingest the table. */
  @JsonProperty("scd_type")
  private TableSpecificConfigScdType scdType;

  public TableSpecificConfig setPrimaryKeys(Collection primaryKeys) {
    this.primaryKeys = primaryKeys;
    return this;
  }

  public Collection getPrimaryKeys() {
    return primaryKeys;
  }

  public TableSpecificConfig setSalesforceIncludeFormulaFields(
      Boolean salesforceIncludeFormulaFields) {
    this.salesforceIncludeFormulaFields = salesforceIncludeFormulaFields;
    return this;
  }

  public Boolean getSalesforceIncludeFormulaFields() {
    return salesforceIncludeFormulaFields;
  }

  public TableSpecificConfig setScdType(TableSpecificConfigScdType scdType) {
    this.scdType = scdType;
    return this;
  }

  public TableSpecificConfigScdType getScdType() {
    return scdType;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    TableSpecificConfig that = (TableSpecificConfig) o;
    return Objects.equals(primaryKeys, that.primaryKeys)
        && Objects.equals(salesforceIncludeFormulaFields, that.salesforceIncludeFormulaFields)
        && Objects.equals(scdType, that.scdType);
  }

  @Override
  public int hashCode() {
    return Objects.hash(primaryKeys, salesforceIncludeFormulaFields, scdType);
  }

  @Override
  public String toString() {
    return new ToStringer(TableSpecificConfig.class)
        .add("primaryKeys", primaryKeys)
        .add("salesforceIncludeFormulaFields", salesforceIncludeFormulaFields)
        .add("scdType", scdType)
        .toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy