/*
 * 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.ApiServiceRef;
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;

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

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

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

  @SerializedName("sourceService")
  private ApiServiceRef sourceService = null;

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

  public ApiAdhocHBaseSnapshot sourceAccount(String sourceAccount) {
    this.sourceAccount = sourceAccount;
    return this;
  }

   /**
   * 
   * @return sourceAccount
  **/
  @ApiModelProperty(value = "")
  public String getSourceAccount() {
    return sourceAccount;
  }

  public void setSourceAccount(String sourceAccount) {
    this.sourceAccount = sourceAccount;
  }

  public ApiAdhocHBaseSnapshot sourceTable(String sourceTable) {
    this.sourceTable = sourceTable;
    return this;
  }

   /**
   * 
   * @return sourceTable
  **/
  @ApiModelProperty(value = "")
  public String getSourceTable() {
    return sourceTable;
  }

  public void setSourceTable(String sourceTable) {
    this.sourceTable = sourceTable;
  }

  public ApiAdhocHBaseSnapshot sourceSchedulerPool(String sourceSchedulerPool) {
    this.sourceSchedulerPool = sourceSchedulerPool;
    return this;
  }

   /**
   * 
   * @return sourceSchedulerPool
  **/
  @ApiModelProperty(value = "")
  public String getSourceSchedulerPool() {
    return sourceSchedulerPool;
  }

  public void setSourceSchedulerPool(String sourceSchedulerPool) {
    this.sourceSchedulerPool = sourceSchedulerPool;
  }

  public ApiAdhocHBaseSnapshot sourceService(ApiServiceRef sourceService) {
    this.sourceService = sourceService;
    return this;
  }

   /**
   * 
   * @return sourceService
  **/
  @ApiModelProperty(value = "")
  public ApiServiceRef getSourceService() {
    return sourceService;
  }

  public void setSourceService(ApiServiceRef sourceService) {
    this.sourceService = sourceService;
  }

  public ApiAdhocHBaseSnapshot sourceNumMappers(java.math.BigDecimal sourceNumMappers) {
    this.sourceNumMappers = sourceNumMappers;
    return this;
  }

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

  public void setSourceNumMappers(java.math.BigDecimal sourceNumMappers) {
    this.sourceNumMappers = sourceNumMappers;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiAdhocHBaseSnapshot apiAdhocHBaseSnapshot = (ApiAdhocHBaseSnapshot) o;
    return Objects.equals(this.sourceAccount, apiAdhocHBaseSnapshot.sourceAccount) &&
        Objects.equals(this.sourceTable, apiAdhocHBaseSnapshot.sourceTable) &&
        Objects.equals(this.sourceSchedulerPool, apiAdhocHBaseSnapshot.sourceSchedulerPool) &&
        Objects.equals(this.sourceService, apiAdhocHBaseSnapshot.sourceService) &&
        Objects.equals(this.sourceNumMappers, apiAdhocHBaseSnapshot.sourceNumMappers);
  }

  @Override
  public int hashCode() {
    return Objects.hash(sourceAccount, sourceTable, sourceSchedulerPool, sourceService, sourceNumMappers);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiAdhocHBaseSnapshot {\n");
    
    sb.append("    sourceAccount: ").append(toIndentedString(sourceAccount)).append("\n");
    sb.append("    sourceTable: ").append(toIndentedString(sourceTable)).append("\n");
    sb.append("    sourceSchedulerPool: ").append(toIndentedString(sourceSchedulerPool)).append("\n");
    sb.append("    sourceService: ").append(toIndentedString(sourceService)).append("\n");
    sb.append("    sourceNumMappers: ").append(toIndentedString(sourceNumMappers)).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    ");
  }
  
}

