/*
 * 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.cloudera.api.swagger.model.HBaseWholeDbReplicationStrategy;
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;
import java.util.ArrayList;
import java.util.List;
/**
 * Holds information for an HBase all database replication.
 */
@Schema(description = "Holds information for an HBase all database replication.")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2026-05-19T08:29:59.033Z[Etc/UTC]")

public class HBaseDatabaseArgs {
  @SerializedName("failedSnapshotTables")
  private List<String> failedSnapshotTables = null;

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

  @SerializedName("replicationStrategy")
  private HBaseWholeDbReplicationStrategy replicationStrategy = null;

  public HBaseDatabaseArgs failedSnapshotTables(List<String> failedSnapshotTables) {
    this.failedSnapshotTables = failedSnapshotTables;
    return this;
  }

  public HBaseDatabaseArgs addFailedSnapshotTablesItem(String failedSnapshotTablesItem) {
    if (this.failedSnapshotTables == null) {
      this.failedSnapshotTables = new ArrayList<>();
    }
    this.failedSnapshotTables.add(failedSnapshotTablesItem);
    return this;
  }

   /**
   * Get failedSnapshotTables
   * @return failedSnapshotTables
  **/
  @Schema(description = "")
  public List<String> getFailedSnapshotTables() {
    return failedSnapshotTables;
  }

  public void setFailedSnapshotTables(List<String> failedSnapshotTables) {
    this.failedSnapshotTables = failedSnapshotTables;
  }

  public HBaseDatabaseArgs initialSnapshot(Boolean initialSnapshot) {
    this.initialSnapshot = initialSnapshot;
    return this;
  }

   /**
   * Get initialSnapshot
   * @return initialSnapshot
  **/
  @Schema(required = true, description = "")
  public Boolean isInitialSnapshot() {
    return initialSnapshot;
  }

  public void setInitialSnapshot(Boolean initialSnapshot) {
    this.initialSnapshot = initialSnapshot;
  }

  public HBaseDatabaseArgs replicationStrategy(HBaseWholeDbReplicationStrategy replicationStrategy) {
    this.replicationStrategy = replicationStrategy;
    return this;
  }

   /**
   * Get replicationStrategy
   * @return replicationStrategy
  **/
  @Schema(description = "")
  public HBaseWholeDbReplicationStrategy getReplicationStrategy() {
    return replicationStrategy;
  }

  public void setReplicationStrategy(HBaseWholeDbReplicationStrategy replicationStrategy) {
    this.replicationStrategy = replicationStrategy;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    HBaseDatabaseArgs hbaseDatabaseArgs = (HBaseDatabaseArgs) o;
    return Objects.equals(this.failedSnapshotTables, hbaseDatabaseArgs.failedSnapshotTables) &&
        Objects.equals(this.initialSnapshot, hbaseDatabaseArgs.initialSnapshot) &&
        Objects.equals(this.replicationStrategy, hbaseDatabaseArgs.replicationStrategy);
  }

  @Override
  public int hashCode() {
    return Objects.hash(failedSnapshotTables, initialSnapshot, replicationStrategy);
  }


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

}
