/*
 * Cloudera Manager API
 * <h1>Cloudera Manager API v57</h1>       <p>Introduced in Cloudera Manager 7.13.1</p>       <p><a href=\"http://www.cloudera.com/documentation.html\">Cloudera Product Documentation</a></p>
 *
 * OpenAPI spec version: 7.13.1
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package com.cloudera.api.swagger.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.math.BigDecimal;
/**
 * A class holding additional metadata to the ApiTimeSeriesAggregateStatistics class that applies specifically to cross-entity aggregate metrics.
 */
@Schema(description = "A class holding additional metadata to the ApiTimeSeriesAggregateStatistics class that applies specifically to cross-entity aggregate metrics.")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2026-05-19T08:29:59.033Z[Etc/UTC]")

public class ApiTimeSeriesCrossEntityMetadata {
  @SerializedName("maxEntityDisplayName")
  private String maxEntityDisplayName = null;

  @SerializedName("maxEntityName")
  private String maxEntityName = null;

  @SerializedName("minEntityDisplayName")
  private String minEntityDisplayName = null;

  @SerializedName("minEntityName")
  private String minEntityName = null;

  @SerializedName("numEntities")
  private BigDecimal numEntities = null;

  public ApiTimeSeriesCrossEntityMetadata maxEntityDisplayName(String maxEntityDisplayName) {
    this.maxEntityDisplayName = maxEntityDisplayName;
    return this;
  }

   /**
   * The display name of the entity that had the maximum value for the cross-entity aggregate metric.
   * @return maxEntityDisplayName
  **/
  @Schema(description = "The display name of the entity that had the maximum value for the cross-entity aggregate metric.")
  public String getMaxEntityDisplayName() {
    return maxEntityDisplayName;
  }

  public void setMaxEntityDisplayName(String maxEntityDisplayName) {
    this.maxEntityDisplayName = maxEntityDisplayName;
  }

  public ApiTimeSeriesCrossEntityMetadata maxEntityName(String maxEntityName) {
    this.maxEntityName = maxEntityName;
    return this;
  }

   /**
   * The name of the entity that had the maximum value for the cross-entity aggregate metric. &lt;p&gt; Available since API v11.
   * @return maxEntityName
  **/
  @Schema(description = "The name of the entity that had the maximum value for the cross-entity aggregate metric. <p> Available since API v11.")
  public String getMaxEntityName() {
    return maxEntityName;
  }

  public void setMaxEntityName(String maxEntityName) {
    this.maxEntityName = maxEntityName;
  }

  public ApiTimeSeriesCrossEntityMetadata minEntityDisplayName(String minEntityDisplayName) {
    this.minEntityDisplayName = minEntityDisplayName;
    return this;
  }

   /**
   * The display name of the entity that had the minimum value for the cross-entity aggregate metric.
   * @return minEntityDisplayName
  **/
  @Schema(description = "The display name of the entity that had the minimum value for the cross-entity aggregate metric.")
  public String getMinEntityDisplayName() {
    return minEntityDisplayName;
  }

  public void setMinEntityDisplayName(String minEntityDisplayName) {
    this.minEntityDisplayName = minEntityDisplayName;
  }

  public ApiTimeSeriesCrossEntityMetadata minEntityName(String minEntityName) {
    this.minEntityName = minEntityName;
    return this;
  }

   /**
   * The name of the entity that had the minimum value for the cross-entity aggregate metric. &lt;p&gt; Available since API v11.
   * @return minEntityName
  **/
  @Schema(description = "The name of the entity that had the minimum value for the cross-entity aggregate metric. <p> Available since API v11.")
  public String getMinEntityName() {
    return minEntityName;
  }

  public void setMinEntityName(String minEntityName) {
    this.minEntityName = minEntityName;
  }

  public ApiTimeSeriesCrossEntityMetadata numEntities(BigDecimal numEntities) {
    this.numEntities = numEntities;
    return this;
  }

   /**
   * The number of entities covered by this point. For a raw cross-entity point this number is exact. For a rollup point this number is an average, since the number of entities being aggregated can change over the aggregation period.
   * @return numEntities
  **/
  @Schema(required = true, description = "The number of entities covered by this point. For a raw cross-entity point this number is exact. For a rollup point this number is an average, since the number of entities being aggregated can change over the aggregation period.")
  public BigDecimal getNumEntities() {
    return numEntities;
  }

  public void setNumEntities(BigDecimal numEntities) {
    this.numEntities = numEntities;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiTimeSeriesCrossEntityMetadata apiTimeSeriesCrossEntityMetadata = (ApiTimeSeriesCrossEntityMetadata) o;
    return Objects.equals(this.maxEntityDisplayName, apiTimeSeriesCrossEntityMetadata.maxEntityDisplayName) &&
        Objects.equals(this.maxEntityName, apiTimeSeriesCrossEntityMetadata.maxEntityName) &&
        Objects.equals(this.minEntityDisplayName, apiTimeSeriesCrossEntityMetadata.minEntityDisplayName) &&
        Objects.equals(this.minEntityName, apiTimeSeriesCrossEntityMetadata.minEntityName) &&
        Objects.equals(this.numEntities, apiTimeSeriesCrossEntityMetadata.numEntities);
  }

  @Override
  public int hashCode() {
    return Objects.hash(maxEntityDisplayName, maxEntityName, minEntityDisplayName, minEntityName, numEntities);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiTimeSeriesCrossEntityMetadata {\n");
    
    sb.append("    maxEntityDisplayName: ").append(toIndentedString(maxEntityDisplayName)).append("\n");
    sb.append("    maxEntityName: ").append(toIndentedString(maxEntityName)).append("\n");
    sb.append("    minEntityDisplayName: ").append(toIndentedString(minEntityDisplayName)).append("\n");
    sb.append("    minEntityName: ").append(toIndentedString(minEntityName)).append("\n");
    sb.append("    numEntities: ").append(toIndentedString(numEntities)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
