/*
 * 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.ApiHdfsReplicationCounter;
import com.cloudera.api.swagger.model.ApiHdfsReplicationResult;
import com.cloudera.api.swagger.model.OzoneReplicationCommandType;
import com.cloudera.api.swagger.model.OzoneReplicationType;
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.math.BigDecimal;
import java.util.List;
/**
 * Detailed information about an OZONE replication job.
 */
@Schema(description = "Detailed information about an OZONE replication job.")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2026-05-19T08:29:59.033Z[Etc/UTC]")

public class ApiOzoneReplicationResult extends ApiHdfsReplicationResult {
  @SerializedName("commandResultMessage")
  private String commandResultMessage = null;

  @SerializedName("replicationType")
  private OzoneReplicationType replicationType = null;

  @SerializedName("replicationCommandType")
  private OzoneReplicationCommandType replicationCommandType = null;

  public ApiOzoneReplicationResult commandResultMessage(String commandResultMessage) {
    this.commandResultMessage = commandResultMessage;
    return this;
  }

   /**
   * Contains the command execution&#x27;s \&quot;result message\&quot;. If there was an error during the command execution this contains the returned error string.
   * @return commandResultMessage
  **/
  @Schema(description = "Contains the command execution's \"result message\". If there was an error during the command execution this contains the returned error string.")
  public String getCommandResultMessage() {
    return commandResultMessage;
  }

  public void setCommandResultMessage(String commandResultMessage) {
    this.commandResultMessage = commandResultMessage;
  }

  public ApiOzoneReplicationResult replicationType(OzoneReplicationType replicationType) {
    this.replicationType = replicationType;
    return this;
  }

   /**
   * Get replicationType
   * @return replicationType
  **/
  @Schema(description = "")
  public OzoneReplicationType getReplicationType() {
    return replicationType;
  }

  public void setReplicationType(OzoneReplicationType replicationType) {
    this.replicationType = replicationType;
  }

  public ApiOzoneReplicationResult replicationCommandType(OzoneReplicationCommandType replicationCommandType) {
    this.replicationCommandType = replicationCommandType;
    return this;
  }

   /**
   * Get replicationCommandType
   * @return replicationCommandType
  **/
  @Schema(description = "")
  public OzoneReplicationCommandType getReplicationCommandType() {
    return replicationCommandType;
  }

  public void setReplicationCommandType(OzoneReplicationCommandType replicationCommandType) {
    this.replicationCommandType = replicationCommandType;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiOzoneReplicationResult apiOzoneReplicationResult = (ApiOzoneReplicationResult) o;
    return Objects.equals(this.commandResultMessage, apiOzoneReplicationResult.commandResultMessage) &&
        Objects.equals(this.replicationType, apiOzoneReplicationResult.replicationType) &&
        Objects.equals(this.replicationCommandType, apiOzoneReplicationResult.replicationCommandType) &&
        super.equals(o);
  }

  @Override
  public int hashCode() {
    return Objects.hash(commandResultMessage, replicationType, replicationCommandType, super.hashCode());
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiOzoneReplicationResult {\n");
    sb.append("    ").append(toIndentedString(super.toString())).append("\n");
    sb.append("    commandResultMessage: ").append(toIndentedString(commandResultMessage)).append("\n");
    sb.append("    replicationType: ").append(toIndentedString(replicationType)).append("\n");
    sb.append("    replicationCommandType: ").append(toIndentedString(replicationCommandType)).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    ");
  }

}
