/*
 * 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.ApiOzoneFilterSpec;
import com.cloudera.api.swagger.model.ApiOzoneResultSpec;
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 volume list request payload
 */
@Schema(description = "Ozone volume list request payload")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2026-05-19T08:29:59.033Z[Etc/UTC]")

public class ApiOzoneListVolumesReq {
  @SerializedName("all")
  private Boolean all = null;

  @SerializedName("filter")
  private ApiOzoneFilterSpec filter = null;

  @SerializedName("result")
  private ApiOzoneResultSpec result = null;

  public ApiOzoneListVolumesReq all(Boolean all) {
    this.all = all;
    return this;
  }

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

  public void setAll(Boolean all) {
    this.all = all;
  }

  public ApiOzoneListVolumesReq filter(ApiOzoneFilterSpec filter) {
    this.filter = filter;
    return this;
  }

   /**
   * Get filter
   * @return filter
  **/
  @Schema(description = "")
  public ApiOzoneFilterSpec getFilter() {
    return filter;
  }

  public void setFilter(ApiOzoneFilterSpec filter) {
    this.filter = filter;
  }

  public ApiOzoneListVolumesReq result(ApiOzoneResultSpec result) {
    this.result = result;
    return this;
  }

   /**
   * Get result
   * @return result
  **/
  @Schema(description = "")
  public ApiOzoneResultSpec getResult() {
    return result;
  }

  public void setResult(ApiOzoneResultSpec result) {
    this.result = result;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiOzoneListVolumesReq apiOzoneListVolumesReq = (ApiOzoneListVolumesReq) o;
    return Objects.equals(this.all, apiOzoneListVolumesReq.all) &&
        Objects.equals(this.filter, apiOzoneListVolumesReq.filter) &&
        Objects.equals(this.result, apiOzoneListVolumesReq.result);
  }

  @Override
  public int hashCode() {
    return Objects.hash(all, filter, result);
  }


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

}
