/*
 * Cloudera Manager API
 * <h1>Cloudera Manager API v57</h1>       <p>Introduced in Cloudera Manager 7.13.1</p>       <p><a href=\"http://www.cloudera.com/documentation.html\">Cloudera Product Documentation</a></p>
 *
 * OpenAPI spec version: 7.13.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 java.util.Arrays;
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.v3.oas.annotations.media.Schema;
import java.io.IOException;
/**
 * Arguments used for the \&quot;disable Catalog Statestore HA\&quot; command. The \&quot;disable Catalog Statestore HA\&quot; command includes disabling catalog and statestore HA, therefore the arguments of it include the required catalog and statestore information.
 */
@Schema(description = "Arguments used for the \"disable Catalog Statestore HA\" command. The \"disable Catalog Statestore HA\" command includes disabling catalog and statestore HA, therefore the arguments of it include the required catalog and statestore information.")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2026-05-19T08:29:59.033Z[Etc/UTC]")

public class ApiDisableCatalogStatestoreHaArguments {
  @SerializedName("activeCatalogName")
  private String activeCatalogName = null;

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

  public ApiDisableCatalogStatestoreHaArguments activeCatalogName(String activeCatalogName) {
    this.activeCatalogName = activeCatalogName;
    return this;
  }

   /**
   * Name of the Catalog role that will be active after HA is disabled.
   * @return activeCatalogName
  **/
  @Schema(description = "Name of the Catalog role that will be active after HA is disabled.")
  public String getActiveCatalogName() {
    return activeCatalogName;
  }

  public void setActiveCatalogName(String activeCatalogName) {
    this.activeCatalogName = activeCatalogName;
  }

  public ApiDisableCatalogStatestoreHaArguments activeStatestoreName(String activeStatestoreName) {
    this.activeStatestoreName = activeStatestoreName;
    return this;
  }

   /**
   * Name of the Statestore role that will be active after HA is disabled.
   * @return activeStatestoreName
  **/
  @Schema(description = "Name of the Statestore role that will be active after HA is disabled.")
  public String getActiveStatestoreName() {
    return activeStatestoreName;
  }

  public void setActiveStatestoreName(String activeStatestoreName) {
    this.activeStatestoreName = activeStatestoreName;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiDisableCatalogStatestoreHaArguments apiDisableCatalogStatestoreHaArguments = (ApiDisableCatalogStatestoreHaArguments) o;
    return Objects.equals(this.activeCatalogName, apiDisableCatalogStatestoreHaArguments.activeCatalogName) &&
        Objects.equals(this.activeStatestoreName, apiDisableCatalogStatestoreHaArguments.activeStatestoreName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(activeCatalogName, activeStatestoreName);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiDisableCatalogStatestoreHaArguments {\n");
    
    sb.append("    activeCatalogName: ").append(toIndentedString(activeCatalogName)).append("\n");
    sb.append("    activeStatestoreName: ").append(toIndentedString(activeStatestoreName)).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    ");
  }

}
