/*
 * 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;
/**
 * Ozone snapshot information.  Reflects the structure of the elements of ozone sh snapshot list ... result.
 */
@Schema(description = "Ozone snapshot information.  Reflects the structure of the elements of ozone sh snapshot list ... result.")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2026-05-19T08:29:59.033Z[Etc/UTC]")

public class ApiOzoneSnapshotInfo {
  @SerializedName("volumeName")
  private String volumeName = null;

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

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

  @SerializedName("creationTime")
  private java.math.BigDecimal creationTime = null;

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

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

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

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

  public ApiOzoneSnapshotInfo volumeName(String volumeName) {
    this.volumeName = volumeName;
    return this;
  }

   /**
   * Get volumeName
   * @return volumeName
  **/
  @Schema(description = "")
  public String getVolumeName() {
    return volumeName;
  }

  public void setVolumeName(String volumeName) {
    this.volumeName = volumeName;
  }

  public ApiOzoneSnapshotInfo bucketName(String bucketName) {
    this.bucketName = bucketName;
    return this;
  }

   /**
   * Get bucketName
   * @return bucketName
  **/
  @Schema(description = "")
  public String getBucketName() {
    return bucketName;
  }

  public void setBucketName(String bucketName) {
    this.bucketName = bucketName;
  }

  public ApiOzoneSnapshotInfo name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  @Schema(description = "")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public ApiOzoneSnapshotInfo creationTime(java.math.BigDecimal creationTime) {
    this.creationTime = creationTime;
    return this;
  }

   /**
   * Get creationTime
   * @return creationTime
  **/
  @Schema(required = true, description = "")
  public java.math.BigDecimal getCreationTime() {
    return creationTime;
  }

  public void setCreationTime(java.math.BigDecimal creationTime) {
    this.creationTime = creationTime;
  }

  public ApiOzoneSnapshotInfo snapshotStatus(String snapshotStatus) {
    this.snapshotStatus = snapshotStatus;
    return this;
  }

   /**
   * Get snapshotStatus
   * @return snapshotStatus
  **/
  @Schema(description = "")
  public String getSnapshotStatus() {
    return snapshotStatus;
  }

  public void setSnapshotStatus(String snapshotStatus) {
    this.snapshotStatus = snapshotStatus;
  }

  public ApiOzoneSnapshotInfo snapshotId(String snapshotId) {
    this.snapshotId = snapshotId;
    return this;
  }

   /**
   * Get snapshotId
   * @return snapshotId
  **/
  @Schema(description = "")
  public String getSnapshotId() {
    return snapshotId;
  }

  public void setSnapshotId(String snapshotId) {
    this.snapshotId = snapshotId;
  }

  public ApiOzoneSnapshotInfo snapshotPath(String snapshotPath) {
    this.snapshotPath = snapshotPath;
    return this;
  }

   /**
   * Get snapshotPath
   * @return snapshotPath
  **/
  @Schema(description = "")
  public String getSnapshotPath() {
    return snapshotPath;
  }

  public void setSnapshotPath(String snapshotPath) {
    this.snapshotPath = snapshotPath;
  }

  public ApiOzoneSnapshotInfo checkpointDir(String checkpointDir) {
    this.checkpointDir = checkpointDir;
    return this;
  }

   /**
   * Get checkpointDir
   * @return checkpointDir
  **/
  @Schema(description = "")
  public String getCheckpointDir() {
    return checkpointDir;
  }

  public void setCheckpointDir(String checkpointDir) {
    this.checkpointDir = checkpointDir;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiOzoneSnapshotInfo apiOzoneSnapshotInfo = (ApiOzoneSnapshotInfo) o;
    return Objects.equals(this.volumeName, apiOzoneSnapshotInfo.volumeName) &&
        Objects.equals(this.bucketName, apiOzoneSnapshotInfo.bucketName) &&
        Objects.equals(this.name, apiOzoneSnapshotInfo.name) &&
        Objects.equals(this.creationTime, apiOzoneSnapshotInfo.creationTime) &&
        Objects.equals(this.snapshotStatus, apiOzoneSnapshotInfo.snapshotStatus) &&
        Objects.equals(this.snapshotId, apiOzoneSnapshotInfo.snapshotId) &&
        Objects.equals(this.snapshotPath, apiOzoneSnapshotInfo.snapshotPath) &&
        Objects.equals(this.checkpointDir, apiOzoneSnapshotInfo.checkpointDir);
  }

  @Override
  public int hashCode() {
    return Objects.hash(volumeName, bucketName, name, creationTime, snapshotStatus, snapshotId, snapshotPath, checkpointDir);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiOzoneSnapshotInfo {\n");
    
    sb.append("    volumeName: ").append(toIndentedString(volumeName)).append("\n");
    sb.append("    bucketName: ").append(toIndentedString(bucketName)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    creationTime: ").append(toIndentedString(creationTime)).append("\n");
    sb.append("    snapshotStatus: ").append(toIndentedString(snapshotStatus)).append("\n");
    sb.append("    snapshotId: ").append(toIndentedString(snapshotId)).append("\n");
    sb.append("    snapshotPath: ").append(toIndentedString(snapshotPath)).append("\n");
    sb.append("    checkpointDir: ").append(toIndentedString(checkpointDir)).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    ");
  }

}
