org.opendatadiscovery.client.model.Quantile 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;
/**
* Quantile
*/
@JsonPropertyOrder({
Quantile.JSON_PROPERTY_QUANTILE,
Quantile.JSON_PROPERTY_VALUE
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-17T12:42:16.563637609Z[Etc/UTC]")
public class Quantile {
public static final String JSON_PROPERTY_QUANTILE = "quantile";
private BigDecimal quantile;
public static final String JSON_PROPERTY_VALUE = "value";
private BigDecimal value;
public Quantile() {
}
public Quantile quantile(BigDecimal quantile) {
this.quantile = quantile;
return this;
}
/**
* Get quantile
* @return quantile
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_QUANTILE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public BigDecimal getQuantile() {
return quantile;
}
@JsonProperty(JSON_PROPERTY_QUANTILE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setQuantile(BigDecimal quantile) {
this.quantile = quantile;
}
public Quantile value(BigDecimal value) {
this.value = value;
return this;
}
/**
* Get value
* @return value
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_VALUE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public BigDecimal getValue() {
return value;
}
@JsonProperty(JSON_PROPERTY_VALUE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setValue(BigDecimal value) {
this.value = value;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Quantile quantile = (Quantile) o;
return Objects.equals(this.quantile, quantile.quantile) &&
Objects.equals(this.value, quantile.value);
}
@Override
public int hashCode() {
return Objects.hash(quantile, value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Quantile {\n");
sb.append(" quantile: ").append(toIndentedString(quantile)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).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