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

org.opendatadiscovery.client.model.DataSetFieldStat Maven / Gradle / Ivy

Go to download

Ingestion Contract WebFlux Client defines OpenDataDiscovery APIs and models for Spring WebClient

There is a newer version: 0.1.41
Show newest version
/*
 * OpenDataDiscovery API Contract
 * OpenDataDiscovery API Contract
 *
 * The version of the OpenAPI document: 0.0.1
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.opendatadiscovery.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.List;
import org.opendatadiscovery.client.model.BinaryFieldStat;
import org.opendatadiscovery.client.model.BooleanFieldStat;
import org.opendatadiscovery.client.model.ComplexFieldStat;
import org.opendatadiscovery.client.model.DateTimeFieldStat;
import org.opendatadiscovery.client.model.IntegerFieldStat;
import org.opendatadiscovery.client.model.NumberFieldStat;
import org.opendatadiscovery.client.model.StringFieldStat;
import org.opendatadiscovery.client.model.Tag;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * DataSetFieldStat
 */
@JsonPropertyOrder({
  DataSetFieldStat.JSON_PROPERTY_TAGS,
  DataSetFieldStat.JSON_PROPERTY_COMPLEX_STATS,
  DataSetFieldStat.JSON_PROPERTY_BOOLEAN_STATS,
  DataSetFieldStat.JSON_PROPERTY_INTEGER_STATS,
  DataSetFieldStat.JSON_PROPERTY_NUMBER_STATS,
  DataSetFieldStat.JSON_PROPERTY_STRING_STATS,
  DataSetFieldStat.JSON_PROPERTY_BINARY_STATS,
  DataSetFieldStat.JSON_PROPERTY_DATETIME_STATS
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-17T12:42:16.563637609Z[Etc/UTC]")
public class DataSetFieldStat {
  public static final String JSON_PROPERTY_TAGS = "tags";
  private List tags;

  public static final String JSON_PROPERTY_COMPLEX_STATS = "complex_stats";
  private ComplexFieldStat complexStats;

  public static final String JSON_PROPERTY_BOOLEAN_STATS = "boolean_stats";
  private BooleanFieldStat booleanStats;

  public static final String JSON_PROPERTY_INTEGER_STATS = "integer_stats";
  private IntegerFieldStat integerStats;

  public static final String JSON_PROPERTY_NUMBER_STATS = "number_stats";
  private NumberFieldStat numberStats;

  public static final String JSON_PROPERTY_STRING_STATS = "string_stats";
  private StringFieldStat stringStats;

  public static final String JSON_PROPERTY_BINARY_STATS = "binary_stats";
  private BinaryFieldStat binaryStats;

  public static final String JSON_PROPERTY_DATETIME_STATS = "datetime_stats";
  private DateTimeFieldStat datetimeStats;

  public DataSetFieldStat() {
  }

  public DataSetFieldStat tags(List tags) {
    
    this.tags = tags;
    return this;
  }

  public DataSetFieldStat addTagsItem(Tag tagsItem) {
    if (this.tags == null) {
      this.tags = new ArrayList<>();
    }
    this.tags.add(tagsItem);
    return this;
  }

   /**
   * Get tags
   * @return tags
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_TAGS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public List getTags() {
    return tags;
  }


  @JsonProperty(JSON_PROPERTY_TAGS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setTags(List tags) {
    this.tags = tags;
  }


  public DataSetFieldStat complexStats(ComplexFieldStat complexStats) {
    
    this.complexStats = complexStats;
    return this;
  }

   /**
   * Get complexStats
   * @return complexStats
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_COMPLEX_STATS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public ComplexFieldStat getComplexStats() {
    return complexStats;
  }


  @JsonProperty(JSON_PROPERTY_COMPLEX_STATS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setComplexStats(ComplexFieldStat complexStats) {
    this.complexStats = complexStats;
  }


  public DataSetFieldStat booleanStats(BooleanFieldStat booleanStats) {
    
    this.booleanStats = booleanStats;
    return this;
  }

   /**
   * Get booleanStats
   * @return booleanStats
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_BOOLEAN_STATS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public BooleanFieldStat getBooleanStats() {
    return booleanStats;
  }


  @JsonProperty(JSON_PROPERTY_BOOLEAN_STATS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setBooleanStats(BooleanFieldStat booleanStats) {
    this.booleanStats = booleanStats;
  }


  public DataSetFieldStat integerStats(IntegerFieldStat integerStats) {
    
    this.integerStats = integerStats;
    return this;
  }

   /**
   * Get integerStats
   * @return integerStats
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_INTEGER_STATS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public IntegerFieldStat getIntegerStats() {
    return integerStats;
  }


  @JsonProperty(JSON_PROPERTY_INTEGER_STATS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setIntegerStats(IntegerFieldStat integerStats) {
    this.integerStats = integerStats;
  }


  public DataSetFieldStat numberStats(NumberFieldStat numberStats) {
    
    this.numberStats = numberStats;
    return this;
  }

   /**
   * Get numberStats
   * @return numberStats
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_NUMBER_STATS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public NumberFieldStat getNumberStats() {
    return numberStats;
  }


  @JsonProperty(JSON_PROPERTY_NUMBER_STATS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setNumberStats(NumberFieldStat numberStats) {
    this.numberStats = numberStats;
  }


  public DataSetFieldStat stringStats(StringFieldStat stringStats) {
    
    this.stringStats = stringStats;
    return this;
  }

   /**
   * Get stringStats
   * @return stringStats
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_STRING_STATS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public StringFieldStat getStringStats() {
    return stringStats;
  }


  @JsonProperty(JSON_PROPERTY_STRING_STATS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setStringStats(StringFieldStat stringStats) {
    this.stringStats = stringStats;
  }


  public DataSetFieldStat binaryStats(BinaryFieldStat binaryStats) {
    
    this.binaryStats = binaryStats;
    return this;
  }

   /**
   * Get binaryStats
   * @return binaryStats
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_BINARY_STATS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public BinaryFieldStat getBinaryStats() {
    return binaryStats;
  }


  @JsonProperty(JSON_PROPERTY_BINARY_STATS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setBinaryStats(BinaryFieldStat binaryStats) {
    this.binaryStats = binaryStats;
  }


  public DataSetFieldStat datetimeStats(DateTimeFieldStat datetimeStats) {
    
    this.datetimeStats = datetimeStats;
    return this;
  }

   /**
   * Get datetimeStats
   * @return datetimeStats
  **/
  @javax.annotation.Nullable
  @JsonProperty(JSON_PROPERTY_DATETIME_STATS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public DateTimeFieldStat getDatetimeStats() {
    return datetimeStats;
  }


  @JsonProperty(JSON_PROPERTY_DATETIME_STATS)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setDatetimeStats(DateTimeFieldStat datetimeStats) {
    this.datetimeStats = datetimeStats;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DataSetFieldStat dataSetFieldStat = (DataSetFieldStat) o;
    return Objects.equals(this.tags, dataSetFieldStat.tags) &&
        Objects.equals(this.complexStats, dataSetFieldStat.complexStats) &&
        Objects.equals(this.booleanStats, dataSetFieldStat.booleanStats) &&
        Objects.equals(this.integerStats, dataSetFieldStat.integerStats) &&
        Objects.equals(this.numberStats, dataSetFieldStat.numberStats) &&
        Objects.equals(this.stringStats, dataSetFieldStat.stringStats) &&
        Objects.equals(this.binaryStats, dataSetFieldStat.binaryStats) &&
        Objects.equals(this.datetimeStats, dataSetFieldStat.datetimeStats);
  }

  @Override
  public int hashCode() {
    return Objects.hash(tags, complexStats, booleanStats, integerStats, numberStats, stringStats, binaryStats, datetimeStats);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DataSetFieldStat {\n");
    sb.append("    tags: ").append(toIndentedString(tags)).append("\n");
    sb.append("    complexStats: ").append(toIndentedString(complexStats)).append("\n");
    sb.append("    booleanStats: ").append(toIndentedString(booleanStats)).append("\n");
    sb.append("    integerStats: ").append(toIndentedString(integerStats)).append("\n");
    sb.append("    numberStats: ").append(toIndentedString(numberStats)).append("\n");
    sb.append("    stringStats: ").append(toIndentedString(stringStats)).append("\n");
    sb.append("    binaryStats: ").append(toIndentedString(binaryStats)).append("\n");
    sb.append("    datetimeStats: ").append(toIndentedString(datetimeStats)).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