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

org.opendatadiscovery.client.model.CounterValue 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import org.opendatadiscovery.client.model.Exemplar;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

/**
 * CounterValue
 */
@JsonPropertyOrder({
  CounterValue.JSON_PROPERTY_TOTAL,
  CounterValue.JSON_PROPERTY_CREATED,
  CounterValue.JSON_PROPERTY_EXEMPLAR
})
@JsonTypeName("CounterValue")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-11-03T09:54:52.207338Z[Etc/UTC]")
public class CounterValue {
  public static final String JSON_PROPERTY_TOTAL = "total";
  private BigDecimal total;

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

  public static final String JSON_PROPERTY_EXEMPLAR = "exemplar";
  private Exemplar exemplar;


  public CounterValue total(BigDecimal total) {
    
    this.total = total;
    return this;
  }

   /**
   * Get total
   * @return total
  **/
  @ApiModelProperty(required = true, value = "")
  @JsonProperty(JSON_PROPERTY_TOTAL)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public BigDecimal getTotal() {
    return total;
  }


  @JsonProperty(JSON_PROPERTY_TOTAL)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)
  public void setTotal(BigDecimal total) {
    this.total = total;
  }


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

   /**
   * Get created
   * @return created
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @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 CounterValue exemplar(Exemplar exemplar) {
    
    this.exemplar = exemplar;
    return this;
  }

   /**
   * Get exemplar
   * @return exemplar
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_EXEMPLAR)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Exemplar getExemplar() {
    return exemplar;
  }


  @JsonProperty(JSON_PROPERTY_EXEMPLAR)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
  public void setExemplar(Exemplar exemplar) {
    this.exemplar = exemplar;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CounterValue counterValue = (CounterValue) o;
    return Objects.equals(this.total, counterValue.total) &&
        Objects.equals(this.created, counterValue.created) &&
        Objects.equals(this.exemplar, counterValue.exemplar);
  }

  @Override
  public int hashCode() {
    return Objects.hash(total, created, exemplar);
  }

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