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

org.opendatadiscovery.client.model.SummaryValue 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.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.opendatadiscovery.client.model.Quantile;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * SummaryValue
 */
@JsonPropertyOrder({
  SummaryValue.JSON_PROPERTY_SUM,
  SummaryValue.JSON_PROPERTY_COUNT,
  SummaryValue.JSON_PROPERTY_CREATED,
  SummaryValue.JSON_PROPERTY_QUANTILE
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-17T12:42:16.563637609Z[Etc/UTC]")
public class SummaryValue {
  public static final String JSON_PROPERTY_SUM = "sum";
  private BigDecimal sum;

  public static final String JSON_PROPERTY_COUNT = "count";
  private Long count;

  public static final String JSON_PROPERTY_CREATED = "created";
  private Integer created;

  public static final String JSON_PROPERTY_QUANTILE = "quantile";
  private List quantile;

  public SummaryValue() {
  }

  public SummaryValue sum(BigDecimal sum) {
    
    this.sum = sum;
    return this;
  }

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

  public BigDecimal getSum() {
    return sum;
  }


  @JsonProperty(JSON_PROPERTY_SUM)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setSum(BigDecimal sum) {
    this.sum = sum;
  }


  public SummaryValue count(Long count) {
    
    this.count = count;
    return this;
  }

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

  public Long getCount() {
    return count;
  }


  @JsonProperty(JSON_PROPERTY_COUNT)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setCount(Long count) {
    this.count = count;
  }


  public SummaryValue created(Integer created) {
    
    this.created = created;
    return this;
  }

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

  public Integer getCreated() {
    return created;
  }


  @JsonProperty(JSON_PROPERTY_CREATED)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setCreated(Integer created) {
    this.created = created;
  }


  public SummaryValue quantile(List quantile) {
    
    this.quantile = quantile;
    return this;
  }

  public SummaryValue addQuantileItem(Quantile quantileItem) {
    if (this.quantile == null) {
      this.quantile = new ArrayList<>();
    }
    this.quantile.add(quantileItem);
    return this;
  }

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

  public List getQuantile() {
    return quantile;
  }


  @JsonProperty(JSON_PROPERTY_QUANTILE)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setQuantile(List quantile) {
    this.quantile = quantile;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SummaryValue summaryValue = (SummaryValue) o;
    return Objects.equals(this.sum, summaryValue.sum) &&
        Objects.equals(this.count, summaryValue.count) &&
        Objects.equals(this.created, summaryValue.created) &&
        Objects.equals(this.quantile, summaryValue.quantile);
  }

  @Override
  public int hashCode() {
    return Objects.hash(sum, count, created, quantile);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SummaryValue {\n");
    sb.append("    sum: ").append(toIndentedString(sum)).append("\n");
    sb.append("    count: ").append(toIndentedString(count)).append("\n");
    sb.append("    created: ").append(toIndentedString(created)).append("\n");
    sb.append("    quantile: ").append(toIndentedString(quantile)).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