/*
 * 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.Storage;
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;
/**
 * An HBase snapshot descriptor.
 */
@Schema(description = "An HBase snapshot descriptor.")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2026-05-19T08:29:59.033Z[Etc/UTC]")

public class ApiHBaseSnapshot {
  @SerializedName("snapshotName")
  private String snapshotName = null;

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

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

  @SerializedName("storage")
  private Storage storage = null;

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

  public ApiHBaseSnapshot snapshotName(String snapshotName) {
    this.snapshotName = snapshotName;
    return this;
  }

   /**
   * Snapshot name.
   * @return snapshotName
  **/
  @Schema(description = "Snapshot name.")
  public String getSnapshotName() {
    return snapshotName;
  }

  public void setSnapshotName(String snapshotName) {
    this.snapshotName = snapshotName;
  }

  public ApiHBaseSnapshot tableName(String tableName) {
    this.tableName = tableName;
    return this;
  }

   /**
   * Name of the table this snapshot is for.
   * @return tableName
  **/
  @Schema(description = "Name of the table this snapshot is for.")
  public String getTableName() {
    return tableName;
  }

  public void setTableName(String tableName) {
    this.tableName = tableName;
  }

  public ApiHBaseSnapshot creationTime(String creationTime) {
    this.creationTime = creationTime;
    return this;
  }

   /**
   * Snapshot creation time.
   * @return creationTime
  **/
  @Schema(description = "Snapshot creation time.")
  public String getCreationTime() {
    return creationTime;
  }

  public void setCreationTime(String creationTime) {
    this.creationTime = creationTime;
  }

  public ApiHBaseSnapshot storage(Storage storage) {
    this.storage = storage;
    return this;
  }

   /**
   * Get storage
   * @return storage
  **/
  @Schema(description = "")
  public Storage getStorage() {
    return storage;
  }

  public void setStorage(Storage storage) {
    this.storage = storage;
  }

  public ApiHBaseSnapshot storageLocation(String storageLocation) {
    this.storageLocation = storageLocation;
    return this;
  }

   /**
   * The remote location where a snapshot is stored. /_*  Optional - location comes from HBase service config if this is not defined
   * @return storageLocation
  **/
  @Schema(description = "The remote location where a snapshot is stored. /_*  Optional - location comes from HBase service config if this is not defined")
  public String getStorageLocation() {
    return storageLocation;
  }

  public void setStorageLocation(String storageLocation) {
    this.storageLocation = storageLocation;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiHBaseSnapshot apiHBaseSnapshot = (ApiHBaseSnapshot) o;
    return Objects.equals(this.snapshotName, apiHBaseSnapshot.snapshotName) &&
        Objects.equals(this.tableName, apiHBaseSnapshot.tableName) &&
        Objects.equals(this.creationTime, apiHBaseSnapshot.creationTime) &&
        Objects.equals(this.storage, apiHBaseSnapshot.storage) &&
        Objects.equals(this.storageLocation, apiHBaseSnapshot.storageLocation);
  }

  @Override
  public int hashCode() {
    return Objects.hash(snapshotName, tableName, creationTime, storage, storageLocation);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiHBaseSnapshot {\n");
    
    sb.append("    snapshotName: ").append(toIndentedString(snapshotName)).append("\n");
    sb.append("    tableName: ").append(toIndentedString(tableName)).append("\n");
    sb.append("    creationTime: ").append(toIndentedString(creationTime)).append("\n");
    sb.append("    storage: ").append(toIndentedString(storage)).append("\n");
    sb.append("    storageLocation: ").append(toIndentedString(storageLocation)).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    ");
  }

}
