/*
 * 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.cloudera.api.swagger.model.HBasePeerState;
import com.cloudera.api.swagger.model.HBaseTableArgs;
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;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Replication arguments for HBase service
 */
@ApiModel(description = "Replication arguments for HBase service")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-11-17T16:38:34.097Z")
public class ApiHBaseReplicationArguments {
  @SerializedName("sourceHBaseService")
  private ApiServiceRef sourceHBaseService = null;

  @SerializedName("peerState")
  private HBasePeerState peerState = null;

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

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

  @SerializedName("tables")
  private List<HBaseTableArgs> tables = null;

  @SerializedName("replicationProperties")
  private Map<String, String> replicationProperties = null;

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

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

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

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

  @SerializedName("validateReplicationSetup")
  private Boolean validateReplicationSetup = null;

  public ApiHBaseReplicationArguments sourceHBaseService(ApiServiceRef sourceHBaseService) {
    this.sourceHBaseService = sourceHBaseService;
    return this;
  }

   /**
   * 
   * @return sourceHBaseService
  **/
  @ApiModelProperty(value = "")
  public ApiServiceRef getSourceHBaseService() {
    return sourceHBaseService;
  }

  public void setSourceHBaseService(ApiServiceRef sourceHBaseService) {
    this.sourceHBaseService = sourceHBaseService;
  }

  public ApiHBaseReplicationArguments peerState(HBasePeerState peerState) {
    this.peerState = peerState;
    return this;
  }

   /**
   * 
   * @return peerState
  **/
  @ApiModelProperty(value = "")
  public HBasePeerState getPeerState() {
    return peerState;
  }

  public void setPeerState(HBasePeerState peerState) {
    this.peerState = peerState;
  }

  public ApiHBaseReplicationArguments hbaseClusterKey(String hbaseClusterKey) {
    this.hbaseClusterKey = hbaseClusterKey;
    return this;
  }

   /**
   * 
   * @return hbaseClusterKey
  **/
  @ApiModelProperty(value = "")
  public String getHbaseClusterKey() {
    return hbaseClusterKey;
  }

  public void setHbaseClusterKey(String hbaseClusterKey) {
    this.hbaseClusterKey = hbaseClusterKey;
  }

  public ApiHBaseReplicationArguments endPointClassName(String endPointClassName) {
    this.endPointClassName = endPointClassName;
    return this;
  }

   /**
   * 
   * @return endPointClassName
  **/
  @ApiModelProperty(value = "")
  public String getEndPointClassName() {
    return endPointClassName;
  }

  public void setEndPointClassName(String endPointClassName) {
    this.endPointClassName = endPointClassName;
  }

  public ApiHBaseReplicationArguments tables(List<HBaseTableArgs> tables) {
    this.tables = tables;
    return this;
  }

  public ApiHBaseReplicationArguments addTablesItem(HBaseTableArgs tablesItem) {
    if (this.tables == null) {
      this.tables = new ArrayList<HBaseTableArgs>();
    }
    this.tables.add(tablesItem);
    return this;
  }

   /**
   * 
   * @return tables
  **/
  @ApiModelProperty(value = "")
  public List<HBaseTableArgs> getTables() {
    return tables;
  }

  public void setTables(List<HBaseTableArgs> tables) {
    this.tables = tables;
  }

  public ApiHBaseReplicationArguments replicationProperties(Map<String, String> replicationProperties) {
    this.replicationProperties = replicationProperties;
    return this;
  }

  public ApiHBaseReplicationArguments putReplicationPropertiesItem(String key, String replicationPropertiesItem) {
    if (this.replicationProperties == null) {
      this.replicationProperties = new HashMap<String, String>();
    }
    this.replicationProperties.put(key, replicationPropertiesItem);
    return this;
  }

   /**
   * 
   * @return replicationProperties
  **/
  @ApiModelProperty(value = "")
  public Map<String, String> getReplicationProperties() {
    return replicationProperties;
  }

  public void setReplicationProperties(Map<String, String> replicationProperties) {
    this.replicationProperties = replicationProperties;
  }

  public ApiHBaseReplicationArguments 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 ApiHBaseReplicationArguments 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 ApiHBaseReplicationArguments numMappers(java.math.BigDecimal numMappers) {
    this.numMappers = numMappers;
    return this;
  }

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

  public void setNumMappers(java.math.BigDecimal numMappers) {
    this.numMappers = numMappers;
  }

  public ApiHBaseReplicationArguments snapshotScratchLocation(String snapshotScratchLocation) {
    this.snapshotScratchLocation = snapshotScratchLocation;
    return this;
  }

   /**
   * 
   * @return snapshotScratchLocation
  **/
  @ApiModelProperty(value = "")
  public String getSnapshotScratchLocation() {
    return snapshotScratchLocation;
  }

  public void setSnapshotScratchLocation(String snapshotScratchLocation) {
    this.snapshotScratchLocation = snapshotScratchLocation;
  }

  public ApiHBaseReplicationArguments validateReplicationSetup(Boolean validateReplicationSetup) {
    this.validateReplicationSetup = validateReplicationSetup;
    return this;
  }

   /**
   * 
   * @return validateReplicationSetup
  **/
  @ApiModelProperty(value = "")
  public Boolean getValidateReplicationSetup() {
    return validateReplicationSetup;
  }

  public void setValidateReplicationSetup(Boolean validateReplicationSetup) {
    this.validateReplicationSetup = validateReplicationSetup;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiHBaseReplicationArguments apiHBaseReplicationArguments = (ApiHBaseReplicationArguments) o;
    return Objects.equals(this.sourceHBaseService, apiHBaseReplicationArguments.sourceHBaseService) &&
        Objects.equals(this.peerState, apiHBaseReplicationArguments.peerState) &&
        Objects.equals(this.hbaseClusterKey, apiHBaseReplicationArguments.hbaseClusterKey) &&
        Objects.equals(this.endPointClassName, apiHBaseReplicationArguments.endPointClassName) &&
        Objects.equals(this.tables, apiHBaseReplicationArguments.tables) &&
        Objects.equals(this.replicationProperties, apiHBaseReplicationArguments.replicationProperties) &&
        Objects.equals(this.sourceAccount, apiHBaseReplicationArguments.sourceAccount) &&
        Objects.equals(this.sourceSchedulerPool, apiHBaseReplicationArguments.sourceSchedulerPool) &&
        Objects.equals(this.numMappers, apiHBaseReplicationArguments.numMappers) &&
        Objects.equals(this.snapshotScratchLocation, apiHBaseReplicationArguments.snapshotScratchLocation) &&
        Objects.equals(this.validateReplicationSetup, apiHBaseReplicationArguments.validateReplicationSetup);
  }

  @Override
  public int hashCode() {
    return Objects.hash(sourceHBaseService, peerState, hbaseClusterKey, endPointClassName, tables, replicationProperties, sourceAccount, sourceSchedulerPool, numMappers, snapshotScratchLocation, validateReplicationSetup);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiHBaseReplicationArguments {\n");
    
    sb.append("    sourceHBaseService: ").append(toIndentedString(sourceHBaseService)).append("\n");
    sb.append("    peerState: ").append(toIndentedString(peerState)).append("\n");
    sb.append("    hbaseClusterKey: ").append(toIndentedString(hbaseClusterKey)).append("\n");
    sb.append("    endPointClassName: ").append(toIndentedString(endPointClassName)).append("\n");
    sb.append("    tables: ").append(toIndentedString(tables)).append("\n");
    sb.append("    replicationProperties: ").append(toIndentedString(replicationProperties)).append("\n");
    sb.append("    sourceAccount: ").append(toIndentedString(sourceAccount)).append("\n");
    sb.append("    sourceSchedulerPool: ").append(toIndentedString(sourceSchedulerPool)).append("\n");
    sb.append("    numMappers: ").append(toIndentedString(numMappers)).append("\n");
    sb.append("    snapshotScratchLocation: ").append(toIndentedString(snapshotScratchLocation)).append("\n");
    sb.append("    validateReplicationSetup: ").append(toIndentedString(validateReplicationSetup)).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    ");
  }
  
}

