/*
 * 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;
/**
 * ApiHdfsUsageReportRow
 */

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2026-05-19T08:29:59.033Z[Etc/UTC]")

public class ApiHdfsUsageReportRow {
  @SerializedName("date")
  private String date = null;

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

  @SerializedName("size")
  private java.math.BigDecimal size = null;

  @SerializedName("rawSize")
  private java.math.BigDecimal rawSize = null;

  @SerializedName("numFiles")
  private java.math.BigDecimal numFiles = null;

  public ApiHdfsUsageReportRow date(String date) {
    this.date = date;
    return this;
  }

   /**
   * The date of the report row data.
   * @return date
  **/
  @Schema(description = "The date of the report row data.")
  public String getDate() {
    return date;
  }

  public void setDate(String date) {
    this.date = date;
  }

  public ApiHdfsUsageReportRow user(String user) {
    this.user = user;
    return this;
  }

   /**
   * The user being reported.
   * @return user
  **/
  @Schema(description = "The user being reported.")
  public String getUser() {
    return user;
  }

  public void setUser(String user) {
    this.user = user;
  }

  public ApiHdfsUsageReportRow size(java.math.BigDecimal size) {
    this.size = size;
    return this;
  }

   /**
   * Total size (in bytes) of the files owned by this user. This does not include replication in HDFS.
   * @return size
  **/
  @Schema(description = "Total size (in bytes) of the files owned by this user. This does not include replication in HDFS.")
  public java.math.BigDecimal getSize() {
    return size;
  }

  public void setSize(java.math.BigDecimal size) {
    this.size = size;
  }

  public ApiHdfsUsageReportRow rawSize(java.math.BigDecimal rawSize) {
    this.rawSize = rawSize;
    return this;
  }

   /**
   * Total size (in bytes) of all the replicas of all the files owned by this user.
   * @return rawSize
  **/
  @Schema(description = "Total size (in bytes) of all the replicas of all the files owned by this user.")
  public java.math.BigDecimal getRawSize() {
    return rawSize;
  }

  public void setRawSize(java.math.BigDecimal rawSize) {
    this.rawSize = rawSize;
  }

  public ApiHdfsUsageReportRow numFiles(java.math.BigDecimal numFiles) {
    this.numFiles = numFiles;
    return this;
  }

   /**
   * Number of files owned by this user.
   * @return numFiles
  **/
  @Schema(description = "Number of files owned by this user.")
  public java.math.BigDecimal getNumFiles() {
    return numFiles;
  }

  public void setNumFiles(java.math.BigDecimal numFiles) {
    this.numFiles = numFiles;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiHdfsUsageReportRow apiHdfsUsageReportRow = (ApiHdfsUsageReportRow) o;
    return Objects.equals(this.date, apiHdfsUsageReportRow.date) &&
        Objects.equals(this.user, apiHdfsUsageReportRow.user) &&
        Objects.equals(this.size, apiHdfsUsageReportRow.size) &&
        Objects.equals(this.rawSize, apiHdfsUsageReportRow.rawSize) &&
        Objects.equals(this.numFiles, apiHdfsUsageReportRow.numFiles);
  }

  @Override
  public int hashCode() {
    return Objects.hash(date, user, size, rawSize, numFiles);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiHdfsUsageReportRow {\n");
    
    sb.append("    date: ").append(toIndentedString(date)).append("\n");
    sb.append("    user: ").append(toIndentedString(user)).append("\n");
    sb.append("    size: ").append(toIndentedString(size)).append("\n");
    sb.append("    rawSize: ").append(toIndentedString(rawSize)).append("\n");
    sb.append("    numFiles: ").append(toIndentedString(numFiles)).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    ");
  }

}
