/*
 * 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.cloudera.api.swagger.model.ApiHdfsReplicationResult;
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;
/**
 * Detailed information about a RANGER replication job.
 */
@Schema(description = "Detailed information about a RANGER replication job.")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2026-05-19T08:29:59.033Z[Etc/UTC]")

public class ApiRangerReplicationResult {
  @SerializedName("total")
  private java.math.BigDecimal total = null;

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

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

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

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

  @SerializedName("auditLogReplicationResult")
  private ApiHdfsReplicationResult auditLogReplicationResult = null;

  public ApiRangerReplicationResult total(java.math.BigDecimal total) {
    this.total = total;
    return this;
  }

   /**
   * Get total
   * @return total
  **/
  @Schema(description = "")
  public java.math.BigDecimal getTotal() {
    return total;
  }

  public void setTotal(java.math.BigDecimal total) {
    this.total = total;
  }

  public ApiRangerReplicationResult created(java.math.BigDecimal created) {
    this.created = created;
    return this;
  }

   /**
   * Get created
   * @return created
  **/
  @Schema(description = "")
  public java.math.BigDecimal getCreated() {
    return created;
  }

  public void setCreated(java.math.BigDecimal created) {
    this.created = created;
  }

  public ApiRangerReplicationResult skipped(java.math.BigDecimal skipped) {
    this.skipped = skipped;
    return this;
  }

   /**
   * Get skipped
   * @return skipped
  **/
  @Schema(description = "")
  public java.math.BigDecimal getSkipped() {
    return skipped;
  }

  public void setSkipped(java.math.BigDecimal skipped) {
    this.skipped = skipped;
  }

  public ApiRangerReplicationResult failed(java.math.BigDecimal failed) {
    this.failed = failed;
    return this;
  }

   /**
   * Get failed
   * @return failed
  **/
  @Schema(description = "")
  public java.math.BigDecimal getFailed() {
    return failed;
  }

  public void setFailed(java.math.BigDecimal failed) {
    this.failed = failed;
  }

  public ApiRangerReplicationResult skippedDueToTimeout(java.math.BigDecimal skippedDueToTimeout) {
    this.skippedDueToTimeout = skippedDueToTimeout;
    return this;
  }

   /**
   * Get skippedDueToTimeout
   * @return skippedDueToTimeout
  **/
  @Schema(description = "")
  public java.math.BigDecimal getSkippedDueToTimeout() {
    return skippedDueToTimeout;
  }

  public void setSkippedDueToTimeout(java.math.BigDecimal skippedDueToTimeout) {
    this.skippedDueToTimeout = skippedDueToTimeout;
  }

  public ApiRangerReplicationResult auditLogReplicationResult(ApiHdfsReplicationResult auditLogReplicationResult) {
    this.auditLogReplicationResult = auditLogReplicationResult;
    return this;
  }

   /**
   * Get auditLogReplicationResult
   * @return auditLogReplicationResult
  **/
  @Schema(description = "")
  public ApiHdfsReplicationResult getAuditLogReplicationResult() {
    return auditLogReplicationResult;
  }

  public void setAuditLogReplicationResult(ApiHdfsReplicationResult auditLogReplicationResult) {
    this.auditLogReplicationResult = auditLogReplicationResult;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiRangerReplicationResult apiRangerReplicationResult = (ApiRangerReplicationResult) o;
    return Objects.equals(this.total, apiRangerReplicationResult.total) &&
        Objects.equals(this.created, apiRangerReplicationResult.created) &&
        Objects.equals(this.skipped, apiRangerReplicationResult.skipped) &&
        Objects.equals(this.failed, apiRangerReplicationResult.failed) &&
        Objects.equals(this.skippedDueToTimeout, apiRangerReplicationResult.skippedDueToTimeout) &&
        Objects.equals(this.auditLogReplicationResult, apiRangerReplicationResult.auditLogReplicationResult);
  }

  @Override
  public int hashCode() {
    return Objects.hash(total, created, skipped, failed, skippedDueToTimeout, auditLogReplicationResult);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiRangerReplicationResult {\n");
    
    sb.append("    total: ").append(toIndentedString(total)).append("\n");
    sb.append("    created: ").append(toIndentedString(created)).append("\n");
    sb.append("    skipped: ").append(toIndentedString(skipped)).append("\n");
    sb.append("    failed: ").append(toIndentedString(failed)).append("\n");
    sb.append("    skippedDueToTimeout: ").append(toIndentedString(skippedDueToTimeout)).append("\n");
    sb.append("    auditLogReplicationResult: ").append(toIndentedString(auditLogReplicationResult)).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    ");
  }

}
