/*
 * 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.RestartType;
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 ApiHBaseReplicationSetupCleanAndResetArgs {
  @SerializedName("sourceRef")
  private ApiServiceRef sourceRef = null;

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

  @SerializedName("sourceRestartType")
  private RestartType sourceRestartType = null;

  @SerializedName("targetRestartType")
  private RestartType targetRestartType = null;

  public ApiHBaseReplicationSetupCleanAndResetArgs sourceRef(ApiServiceRef sourceRef) {
    this.sourceRef = sourceRef;
    return this;
  }

   /**
   * 
   * @return sourceRef
  **/
  @ApiModelProperty(value = "")
  public ApiServiceRef getSourceRef() {
    return sourceRef;
  }

  public void setSourceRef(ApiServiceRef sourceRef) {
    this.sourceRef = sourceRef;
  }

  public ApiHBaseReplicationSetupCleanAndResetArgs cmPeerNameOnRemote(String cmPeerNameOnRemote) {
    this.cmPeerNameOnRemote = cmPeerNameOnRemote;
    return this;
  }

   /**
   * 
   * @return cmPeerNameOnRemote
  **/
  @ApiModelProperty(value = "")
  public String getCmPeerNameOnRemote() {
    return cmPeerNameOnRemote;
  }

  public void setCmPeerNameOnRemote(String cmPeerNameOnRemote) {
    this.cmPeerNameOnRemote = cmPeerNameOnRemote;
  }

  public ApiHBaseReplicationSetupCleanAndResetArgs sourceRestartType(RestartType sourceRestartType) {
    this.sourceRestartType = sourceRestartType;
    return this;
  }

   /**
   * 
   * @return sourceRestartType
  **/
  @ApiModelProperty(value = "")
  public RestartType getSourceRestartType() {
    return sourceRestartType;
  }

  public void setSourceRestartType(RestartType sourceRestartType) {
    this.sourceRestartType = sourceRestartType;
  }

  public ApiHBaseReplicationSetupCleanAndResetArgs targetRestartType(RestartType targetRestartType) {
    this.targetRestartType = targetRestartType;
    return this;
  }

   /**
   * 
   * @return targetRestartType
  **/
  @ApiModelProperty(value = "")
  public RestartType getTargetRestartType() {
    return targetRestartType;
  }

  public void setTargetRestartType(RestartType targetRestartType) {
    this.targetRestartType = targetRestartType;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiHBaseReplicationSetupCleanAndResetArgs apiHBaseReplicationSetupCleanAndResetArgs = (ApiHBaseReplicationSetupCleanAndResetArgs) o;
    return Objects.equals(this.sourceRef, apiHBaseReplicationSetupCleanAndResetArgs.sourceRef) &&
        Objects.equals(this.cmPeerNameOnRemote, apiHBaseReplicationSetupCleanAndResetArgs.cmPeerNameOnRemote) &&
        Objects.equals(this.sourceRestartType, apiHBaseReplicationSetupCleanAndResetArgs.sourceRestartType) &&
        Objects.equals(this.targetRestartType, apiHBaseReplicationSetupCleanAndResetArgs.targetRestartType);
  }

  @Override
  public int hashCode() {
    return Objects.hash(sourceRef, cmPeerNameOnRemote, sourceRestartType, targetRestartType);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiHBaseReplicationSetupCleanAndResetArgs {\n");
    
    sb.append("    sourceRef: ").append(toIndentedString(sourceRef)).append("\n");
    sb.append("    cmPeerNameOnRemote: ").append(toIndentedString(cmPeerNameOnRemote)).append("\n");
    sb.append("    sourceRestartType: ").append(toIndentedString(sourceRestartType)).append("\n");
    sb.append("    targetRestartType: ").append(toIndentedString(targetRestartType)).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    ");
  }
  
}

