org.opendatadiscovery.client.model.DateTimeFieldStat 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.time.OffsetDateTime;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* DateTimeFieldStat
*/
@JsonPropertyOrder({
DateTimeFieldStat.JSON_PROPERTY_LOW_VALUE,
DateTimeFieldStat.JSON_PROPERTY_HIGH_VALUE,
DateTimeFieldStat.JSON_PROPERTY_MEAN_VALUE,
DateTimeFieldStat.JSON_PROPERTY_MEDIAN_VALUE,
DateTimeFieldStat.JSON_PROPERTY_NULLS_COUNT,
DateTimeFieldStat.JSON_PROPERTY_UNIQUE_COUNT
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-17T12:42:16.563637609Z[Etc/UTC]")
public class DateTimeFieldStat {
public static final String JSON_PROPERTY_LOW_VALUE = "low_value";
private OffsetDateTime lowValue;
public static final String JSON_PROPERTY_HIGH_VALUE = "high_value";
private OffsetDateTime highValue;
public static final String JSON_PROPERTY_MEAN_VALUE = "mean_value";
private OffsetDateTime meanValue;
public static final String JSON_PROPERTY_MEDIAN_VALUE = "median_value";
private OffsetDateTime medianValue;
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 DateTimeFieldStat() {
}
public DateTimeFieldStat lowValue(OffsetDateTime lowValue) {
this.lowValue = lowValue;
return this;
}
/**
* Get lowValue
* @return lowValue
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_LOW_VALUE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public OffsetDateTime getLowValue() {
return lowValue;
}
@JsonProperty(JSON_PROPERTY_LOW_VALUE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLowValue(OffsetDateTime lowValue) {
this.lowValue = lowValue;
}
public DateTimeFieldStat highValue(OffsetDateTime highValue) {
this.highValue = highValue;
return this;
}
/**
* Get highValue
* @return highValue
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_HIGH_VALUE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public OffsetDateTime getHighValue() {
return highValue;
}
@JsonProperty(JSON_PROPERTY_HIGH_VALUE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setHighValue(OffsetDateTime highValue) {
this.highValue = highValue;
}
public DateTimeFieldStat meanValue(OffsetDateTime meanValue) {
this.meanValue = meanValue;
return this;
}
/**
* Get meanValue
* @return meanValue
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MEAN_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getMeanValue() {
return meanValue;
}
@JsonProperty(JSON_PROPERTY_MEAN_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMeanValue(OffsetDateTime meanValue) {
this.meanValue = meanValue;
}
public DateTimeFieldStat medianValue(OffsetDateTime medianValue) {
this.medianValue = medianValue;
return this;
}
/**
* Get medianValue
* @return medianValue
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MEDIAN_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getMedianValue() {
return medianValue;
}
@JsonProperty(JSON_PROPERTY_MEDIAN_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setMedianValue(OffsetDateTime medianValue) {
this.medianValue = medianValue;
}
public DateTimeFieldStat 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 DateTimeFieldStat 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;
}
DateTimeFieldStat dateTimeFieldStat = (DateTimeFieldStat) o;
return Objects.equals(this.lowValue, dateTimeFieldStat.lowValue) &&
Objects.equals(this.highValue, dateTimeFieldStat.highValue) &&
Objects.equals(this.meanValue, dateTimeFieldStat.meanValue) &&
Objects.equals(this.medianValue, dateTimeFieldStat.medianValue) &&
Objects.equals(this.nullsCount, dateTimeFieldStat.nullsCount) &&
Objects.equals(this.uniqueCount, dateTimeFieldStat.uniqueCount);
}
@Override
public int hashCode() {
return Objects.hash(lowValue, highValue, meanValue, medianValue, nullsCount, uniqueCount);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DateTimeFieldStat {\n");
sb.append(" lowValue: ").append(toIndentedString(lowValue)).append("\n");
sb.append(" highValue: ").append(toIndentedString(highValue)).append("\n");
sb.append(" meanValue: ").append(toIndentedString(meanValue)).append("\n");
sb.append(" medianValue: ").append(toIndentedString(medianValue)).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