/*
 * Cloudera Manager API
 * <h1>Cloudera Manager API v50</h1>       <p>Introduced in Cloudera Manager 7.8.1</p>       <p><a href=\"http://www.cloudera.com/documentation.html\">Cloudera Product Documentation</a></p>
 *
 * OpenAPI spec version: 7.8.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 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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * This class encapsulates the data limits that we want to put on ApiReplicationSchedule to avoid potential OOME. It is currently used when archiving replication history. Available since v11.
 */
@ApiModel(description = "This class encapsulates the data limits that we want to put on ApiReplicationSchedule to avoid potential OOME. It is currently used when archiving replication history. Available since v11.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-11-17T16:38:34.097Z")
public class ApiReplicationScheduleDataLimits {
  @SerializedName("maxCommandsPerSchedule")
  private java.math.BigDecimal maxCommandsPerSchedule = null;

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

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

  public ApiReplicationScheduleDataLimits maxCommandsPerSchedule(java.math.BigDecimal maxCommandsPerSchedule) {
    this.maxCommandsPerSchedule = maxCommandsPerSchedule;
    return this;
  }

   /**
   * 
   * @return maxCommandsPerSchedule
  **/
  @ApiModelProperty(required = true, value = "")
  public java.math.BigDecimal getMaxCommandsPerSchedule() {
    return maxCommandsPerSchedule;
  }

  public void setMaxCommandsPerSchedule(java.math.BigDecimal maxCommandsPerSchedule) {
    this.maxCommandsPerSchedule = maxCommandsPerSchedule;
  }

  public ApiReplicationScheduleDataLimits maxTablesPerResult(java.math.BigDecimal maxTablesPerResult) {
    this.maxTablesPerResult = maxTablesPerResult;
    return this;
  }

   /**
   * 
   * @return maxTablesPerResult
  **/
  @ApiModelProperty(required = true, value = "")
  public java.math.BigDecimal getMaxTablesPerResult() {
    return maxTablesPerResult;
  }

  public void setMaxTablesPerResult(java.math.BigDecimal maxTablesPerResult) {
    this.maxTablesPerResult = maxTablesPerResult;
  }

  public ApiReplicationScheduleDataLimits maxErrorsPerResult(java.math.BigDecimal maxErrorsPerResult) {
    this.maxErrorsPerResult = maxErrorsPerResult;
    return this;
  }

   /**
   * 
   * @return maxErrorsPerResult
  **/
  @ApiModelProperty(required = true, value = "")
  public java.math.BigDecimal getMaxErrorsPerResult() {
    return maxErrorsPerResult;
  }

  public void setMaxErrorsPerResult(java.math.BigDecimal maxErrorsPerResult) {
    this.maxErrorsPerResult = maxErrorsPerResult;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiReplicationScheduleDataLimits apiReplicationScheduleDataLimits = (ApiReplicationScheduleDataLimits) o;
    return Objects.equals(this.maxCommandsPerSchedule, apiReplicationScheduleDataLimits.maxCommandsPerSchedule) &&
        Objects.equals(this.maxTablesPerResult, apiReplicationScheduleDataLimits.maxTablesPerResult) &&
        Objects.equals(this.maxErrorsPerResult, apiReplicationScheduleDataLimits.maxErrorsPerResult);
  }

  @Override
  public int hashCode() {
    return Objects.hash(maxCommandsPerSchedule, maxTablesPerResult, maxErrorsPerResult);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiReplicationScheduleDataLimits {\n");
    
    sb.append("    maxCommandsPerSchedule: ").append(toIndentedString(maxCommandsPerSchedule)).append("\n");
    sb.append("    maxTablesPerResult: ").append(toIndentedString(maxTablesPerResult)).append("\n");
    sb.append("    maxErrorsPerResult: ").append(toIndentedString(maxErrorsPerResult)).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    ");
  }
  
}

