org.opendatadiscovery.client.model.DataSetStatistics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ingestion-contract-client Show documentation
Show all versions of ingestion-contract-client Show documentation
Ingestion Contract WebFlux Client defines OpenDataDiscovery APIs and models for Spring WebClient
/*
* 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.HashMap;
import java.util.Map;
import org.opendatadiscovery.client.model.DataSetFieldStat;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* DataSetStatistics
*/
@JsonPropertyOrder({
DataSetStatistics.JSON_PROPERTY_DATASET_ODDRN,
DataSetStatistics.JSON_PROPERTY_FIELDS
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-17T12:42:16.563637609Z[Etc/UTC]")
public class DataSetStatistics {
public static final String JSON_PROPERTY_DATASET_ODDRN = "dataset_oddrn";
private String datasetOddrn;
public static final String JSON_PROPERTY_FIELDS = "fields";
private Map fields = new HashMap<>();
public DataSetStatistics() {
}
public DataSetStatistics datasetOddrn(String datasetOddrn) {
this.datasetOddrn = datasetOddrn;
return this;
}
/**
* Get datasetOddrn
* @return datasetOddrn
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_DATASET_ODDRN)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getDatasetOddrn() {
return datasetOddrn;
}
@JsonProperty(JSON_PROPERTY_DATASET_ODDRN)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDatasetOddrn(String datasetOddrn) {
this.datasetOddrn = datasetOddrn;
}
public DataSetStatistics fields(Map fields) {
this.fields = fields;
return this;
}
public DataSetStatistics putFieldsItem(String key, DataSetFieldStat fieldsItem) {
this.fields.put(key, fieldsItem);
return this;
}
/**
* key is a field oddrn. For example: \"//aws/glue/{account_id}/{database}/{tablename}/columns/{column_name}\"
* @return fields
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_FIELDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Map getFields() {
return fields;
}
@JsonProperty(JSON_PROPERTY_FIELDS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFields(Map fields) {
this.fields = fields;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DataSetStatistics dataSetStatistics = (DataSetStatistics) o;
return Objects.equals(this.datasetOddrn, dataSetStatistics.datasetOddrn) &&
Objects.equals(this.fields, dataSetStatistics.fields);
}
@Override
public int hashCode() {
return Objects.hash(datasetOddrn, fields);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DataSetStatistics {\n");
sb.append(" datasetOddrn: ").append(toIndentedString(datasetOddrn)).append("\n");
sb.append(" fields: ").append(toIndentedString(fields)).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