org.opendatadiscovery.client.model.StringFieldStat 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.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* StringFieldStat
*/
@JsonPropertyOrder({
StringFieldStat.JSON_PROPERTY_MAX_LENGTH,
StringFieldStat.JSON_PROPERTY_AVG_LENGTH,
StringFieldStat.JSON_PROPERTY_NULLS_COUNT,
StringFieldStat.JSON_PROPERTY_UNIQUE_COUNT
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-17T12:42:16.563637609Z[Etc/UTC]")
public class StringFieldStat {
public static final String JSON_PROPERTY_MAX_LENGTH = "max_length";
private Integer maxLength;
public static final String JSON_PROPERTY_AVG_LENGTH = "avg_length";
private BigDecimal avgLength;
public static final String JSON_PROPERTY_NULLS_COUNT = "nulls_count";
private Long nullsCount;
public static final String JSON_PROPERTY_UNIQUE_COUNT = "unique_count";
private Long uniqueCount;
public StringFieldStat() {
}
public StringFieldStat maxLength(Integer maxLength) {
this.maxLength = maxLength;
return this;
}
/**
* Get maxLength
* @return maxLength
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_MAX_LENGTH)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getMaxLength() {
return maxLength;
}
@JsonProperty(JSON_PROPERTY_MAX_LENGTH)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setMaxLength(Integer maxLength) {
this.maxLength = maxLength;
}
public StringFieldStat avgLength(BigDecimal avgLength) {
this.avgLength = avgLength;
return this;
}
/**
* Get avgLength
* @return avgLength
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_AVG_LENGTH)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public BigDecimal getAvgLength() {
return avgLength;
}
@JsonProperty(JSON_PROPERTY_AVG_LENGTH)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setAvgLength(BigDecimal avgLength) {
this.avgLength = avgLength;
}
public StringFieldStat nullsCount(Long nullsCount) {
this.nullsCount = nullsCount;
return this;
}
/**
* Get nullsCount
* @return nullsCount
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_NULLS_COUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Long getNullsCount() {
return nullsCount;
}
@JsonProperty(JSON_PROPERTY_NULLS_COUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setNullsCount(Long nullsCount) {
this.nullsCount = nullsCount;
}
public StringFieldStat uniqueCount(Long uniqueCount) {
this.uniqueCount = uniqueCount;
return this;
}
/**
* Get uniqueCount
* @return uniqueCount
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_UNIQUE_COUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Long getUniqueCount() {
return uniqueCount;
}
@JsonProperty(JSON_PROPERTY_UNIQUE_COUNT)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setUniqueCount(Long uniqueCount) {
this.uniqueCount = uniqueCount;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
StringFieldStat stringFieldStat = (StringFieldStat) o;
return Objects.equals(this.maxLength, stringFieldStat.maxLength) &&
Objects.equals(this.avgLength, stringFieldStat.avgLength) &&
Objects.equals(this.nullsCount, stringFieldStat.nullsCount) &&
Objects.equals(this.uniqueCount, stringFieldStat.uniqueCount);
}
@Override
public int hashCode() {
return Objects.hash(maxLength, avgLength, nullsCount, uniqueCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class StringFieldStat {\n");
sb.append(" maxLength: ").append(toIndentedString(maxLength)).append("\n");
sb.append(" avgLength: ").append(toIndentedString(avgLength)).append("\n");
sb.append(" nullsCount: ").append(toIndentedString(nullsCount)).append("\n");
sb.append(" uniqueCount: ").append(toIndentedString(uniqueCount)).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