/*
 * 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.cloudera.api.swagger.model.ReplicationType;
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;

/**
 * 
 */
@ApiModel(description = "")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-11-17T16:38:34.097Z")
public class ApiHive3ReplicationMetricsMetadata {
  @SerializedName("dbName")
  private String dbName = null;

  @SerializedName("replicationType")
  private ReplicationType replicationType = null;

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

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

  public ApiHive3ReplicationMetricsMetadata dbName(String dbName) {
    this.dbName = dbName;
    return this;
  }

   /**
   * 
   * @return dbName
  **/
  @ApiModelProperty(value = "")
  public String getDbName() {
    return dbName;
  }

  public void setDbName(String dbName) {
    this.dbName = dbName;
  }

  public ApiHive3ReplicationMetricsMetadata replicationType(ReplicationType replicationType) {
    this.replicationType = replicationType;
    return this;
  }

   /**
   * 
   * @return replicationType
  **/
  @ApiModelProperty(value = "")
  public ReplicationType getReplicationType() {
    return replicationType;
  }

  public void setReplicationType(ReplicationType replicationType) {
    this.replicationType = replicationType;
  }

  public ApiHive3ReplicationMetricsMetadata stagingDir(String stagingDir) {
    this.stagingDir = stagingDir;
    return this;
  }

   /**
   * 
   * @return stagingDir
  **/
  @ApiModelProperty(value = "")
  public String getStagingDir() {
    return stagingDir;
  }

  public void setStagingDir(String stagingDir) {
    this.stagingDir = stagingDir;
  }

  public ApiHive3ReplicationMetricsMetadata lastReplId(java.math.BigDecimal lastReplId) {
    this.lastReplId = lastReplId;
    return this;
  }

   /**
   * 
   * @return lastReplId
  **/
  @ApiModelProperty(value = "")
  public java.math.BigDecimal getLastReplId() {
    return lastReplId;
  }

  public void setLastReplId(java.math.BigDecimal lastReplId) {
    this.lastReplId = lastReplId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiHive3ReplicationMetricsMetadata apiHive3ReplicationMetricsMetadata = (ApiHive3ReplicationMetricsMetadata) o;
    return Objects.equals(this.dbName, apiHive3ReplicationMetricsMetadata.dbName) &&
        Objects.equals(this.replicationType, apiHive3ReplicationMetricsMetadata.replicationType) &&
        Objects.equals(this.stagingDir, apiHive3ReplicationMetricsMetadata.stagingDir) &&
        Objects.equals(this.lastReplId, apiHive3ReplicationMetricsMetadata.lastReplId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(dbName, replicationType, stagingDir, lastReplId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiHive3ReplicationMetricsMetadata {\n");
    
    sb.append("    dbName: ").append(toIndentedString(dbName)).append("\n");
    sb.append("    replicationType: ").append(toIndentedString(replicationType)).append("\n");
    sb.append("    stagingDir: ").append(toIndentedString(stagingDir)).append("\n");
    sb.append("    lastReplId: ").append(toIndentedString(lastReplId)).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    ");
  }
  
}

