/*
 * 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;
/**
 * A Hive replication error.
 */
@Schema(description = "A Hive replication error.")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2026-05-19T08:29:59.033Z[Etc/UTC]")

public class ApiHiveReplicationError {
  @SerializedName("database")
  private String database = null;

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

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

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

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

  public ApiHiveReplicationError database(String database) {
    this.database = database;
    return this;
  }

   /**
   * Name of the database.
   * @return database
  **/
  @Schema(description = "Name of the database.")
  public String getDatabase() {
    return database;
  }

  public void setDatabase(String database) {
    this.database = database;
  }

  public ApiHiveReplicationError tableName(String tableName) {
    this.tableName = tableName;
    return this;
  }

   /**
   * Name of the table.
   * @return tableName
  **/
  @Schema(description = "Name of the table.")
  public String getTableName() {
    return tableName;
  }

  public void setTableName(String tableName) {
    this.tableName = tableName;
  }

  public ApiHiveReplicationError impalaUDF(String impalaUDF) {
    this.impalaUDF = impalaUDF;
    return this;
  }

   /**
   * UDF signature, includes the UDF name and parameter types.
   * @return impalaUDF
  **/
  @Schema(description = "UDF signature, includes the UDF name and parameter types.")
  public String getImpalaUDF() {
    return impalaUDF;
  }

  public void setImpalaUDF(String impalaUDF) {
    this.impalaUDF = impalaUDF;
  }

  public ApiHiveReplicationError hiveUDF(String hiveUDF) {
    this.hiveUDF = hiveUDF;
    return this;
  }

   /**
   * Hive UDF signature, includes the UDF name and parameter types.
   * @return hiveUDF
  **/
  @Schema(description = "Hive UDF signature, includes the UDF name and parameter types.")
  public String getHiveUDF() {
    return hiveUDF;
  }

  public void setHiveUDF(String hiveUDF) {
    this.hiveUDF = hiveUDF;
  }

  public ApiHiveReplicationError error(String error) {
    this.error = error;
    return this;
  }

   /**
   * Description of the error.
   * @return error
  **/
  @Schema(description = "Description of the error.")
  public String getError() {
    return error;
  }

  public void setError(String error) {
    this.error = error;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiHiveReplicationError apiHiveReplicationError = (ApiHiveReplicationError) o;
    return Objects.equals(this.database, apiHiveReplicationError.database) &&
        Objects.equals(this.tableName, apiHiveReplicationError.tableName) &&
        Objects.equals(this.impalaUDF, apiHiveReplicationError.impalaUDF) &&
        Objects.equals(this.hiveUDF, apiHiveReplicationError.hiveUDF) &&
        Objects.equals(this.error, apiHiveReplicationError.error);
  }

  @Override
  public int hashCode() {
    return Objects.hash(database, tableName, impalaUDF, hiveUDF, error);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiHiveReplicationError {\n");
    
    sb.append("    database: ").append(toIndentedString(database)).append("\n");
    sb.append("    tableName: ").append(toIndentedString(tableName)).append("\n");
    sb.append("    impalaUDF: ").append(toIndentedString(impalaUDF)).append("\n");
    sb.append("    hiveUDF: ").append(toIndentedString(hiveUDF)).append("\n");
    sb.append("    error: ").append(toIndentedString(error)).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    ");
  }

}
