/*
 * 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.ApiCommand;
import com.cloudera.api.swagger.model.Status;
import com.cloudera.api.swagger.model.SubStatus;
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;

/**
 * Contains status info about the HBase replication first time setup
 */
@ApiModel(description = "Contains status info about the HBase replication first time setup")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-11-17T16:38:34.097Z")
public class ApiHBaseReplicationSetupStatus {
  @SerializedName("status")
  private Status status = null;

  @SerializedName("subStatus")
  private SubStatus subStatus = null;

  @SerializedName("mainCommandId")
  private ApiCommand mainCommandId = null;

  @SerializedName("currentCommandId")
  private ApiCommand currentCommandId = null;

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

  public ApiHBaseReplicationSetupStatus status(Status status) {
    this.status = status;
    return this;
  }

   /**
   * 
   * @return status
  **/
  @ApiModelProperty(value = "")
  public Status getStatus() {
    return status;
  }

  public void setStatus(Status status) {
    this.status = status;
  }

  public ApiHBaseReplicationSetupStatus subStatus(SubStatus subStatus) {
    this.subStatus = subStatus;
    return this;
  }

   /**
   * 
   * @return subStatus
  **/
  @ApiModelProperty(value = "")
  public SubStatus getSubStatus() {
    return subStatus;
  }

  public void setSubStatus(SubStatus subStatus) {
    this.subStatus = subStatus;
  }

  public ApiHBaseReplicationSetupStatus mainCommandId(ApiCommand mainCommandId) {
    this.mainCommandId = mainCommandId;
    return this;
  }

   /**
   * 
   * @return mainCommandId
  **/
  @ApiModelProperty(value = "")
  public ApiCommand getMainCommandId() {
    return mainCommandId;
  }

  public void setMainCommandId(ApiCommand mainCommandId) {
    this.mainCommandId = mainCommandId;
  }

  public ApiHBaseReplicationSetupStatus currentCommandId(ApiCommand currentCommandId) {
    this.currentCommandId = currentCommandId;
    return this;
  }

   /**
   * 
   * @return currentCommandId
  **/
  @ApiModelProperty(value = "")
  public ApiCommand getCurrentCommandId() {
    return currentCommandId;
  }

  public void setCurrentCommandId(ApiCommand currentCommandId) {
    this.currentCommandId = currentCommandId;
  }

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

   /**
   * 
   * @return error
  **/
  @ApiModelProperty(value = "")
  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;
    }
    ApiHBaseReplicationSetupStatus apiHBaseReplicationSetupStatus = (ApiHBaseReplicationSetupStatus) o;
    return Objects.equals(this.status, apiHBaseReplicationSetupStatus.status) &&
        Objects.equals(this.subStatus, apiHBaseReplicationSetupStatus.subStatus) &&
        Objects.equals(this.mainCommandId, apiHBaseReplicationSetupStatus.mainCommandId) &&
        Objects.equals(this.currentCommandId, apiHBaseReplicationSetupStatus.currentCommandId) &&
        Objects.equals(this.error, apiHBaseReplicationSetupStatus.error);
  }

  @Override
  public int hashCode() {
    return Objects.hash(status, subStatus, mainCommandId, currentCommandId, error);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiHBaseReplicationSetupStatus {\n");
    
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    subStatus: ").append(toIndentedString(subStatus)).append("\n");
    sb.append("    mainCommandId: ").append(toIndentedString(mainCommandId)).append("\n");
    sb.append("    currentCommandId: ").append(toIndentedString(currentCommandId)).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    ");
  }
  
}

