/*
 * Cloudera Manager API
 * <h1>Cloudera Manager API v50</h1>       <p>Introduced in Cloudera Manager 7.8.1</p>       <p><a href=\"http://www.cloudera.com/documentation.html\">Cloudera Product Documentation</a></p>
 *
 * OpenAPI spec version: 7.8.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 com.cloudera.api.swagger.model.ApiHive3ReplicationMetricsMetadata;
import com.cloudera.api.swagger.model.ApiHive3ReplicationMetricsProgress;
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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * 
 */
@ApiModel(description = "")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2022-11-17T16:38:34.097Z")
public class ApiHive3ReplicationMetricsResultRow {
  @SerializedName("scheduledExecutionId")
  private java.math.BigDecimal scheduledExecutionId = null;

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

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

  @SerializedName("metadata")
  private ApiHive3ReplicationMetricsMetadata metadata = null;

  @SerializedName("progress")
  private ApiHive3ReplicationMetricsProgress progress = null;

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

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

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

  public ApiHive3ReplicationMetricsResultRow scheduledExecutionId(java.math.BigDecimal scheduledExecutionId) {
    this.scheduledExecutionId = scheduledExecutionId;
    return this;
  }

   /**
   * 
   * @return scheduledExecutionId
  **/
  @ApiModelProperty(value = "")
  public java.math.BigDecimal getScheduledExecutionId() {
    return scheduledExecutionId;
  }

  public void setScheduledExecutionId(java.math.BigDecimal scheduledExecutionId) {
    this.scheduledExecutionId = scheduledExecutionId;
  }

  public ApiHive3ReplicationMetricsResultRow policy(String policy) {
    this.policy = policy;
    return this;
  }

   /**
   * 
   * @return policy
  **/
  @ApiModelProperty(value = "")
  public String getPolicy() {
    return policy;
  }

  public void setPolicy(String policy) {
    this.policy = policy;
  }

  public ApiHive3ReplicationMetricsResultRow dumpExecutionId(java.math.BigDecimal dumpExecutionId) {
    this.dumpExecutionId = dumpExecutionId;
    return this;
  }

   /**
   * 
   * @return dumpExecutionId
  **/
  @ApiModelProperty(value = "")
  public java.math.BigDecimal getDumpExecutionId() {
    return dumpExecutionId;
  }

  public void setDumpExecutionId(java.math.BigDecimal dumpExecutionId) {
    this.dumpExecutionId = dumpExecutionId;
  }

  public ApiHive3ReplicationMetricsResultRow metadata(ApiHive3ReplicationMetricsMetadata metadata) {
    this.metadata = metadata;
    return this;
  }

   /**
   * 
   * @return metadata
  **/
  @ApiModelProperty(value = "")
  public ApiHive3ReplicationMetricsMetadata getMetadata() {
    return metadata;
  }

  public void setMetadata(ApiHive3ReplicationMetricsMetadata metadata) {
    this.metadata = metadata;
  }

  public ApiHive3ReplicationMetricsResultRow progress(ApiHive3ReplicationMetricsProgress progress) {
    this.progress = progress;
    return this;
  }

   /**
   * 
   * @return progress
  **/
  @ApiModelProperty(value = "")
  public ApiHive3ReplicationMetricsProgress getProgress() {
    return progress;
  }

  public void setProgress(ApiHive3ReplicationMetricsProgress progress) {
    this.progress = progress;
  }

  public ApiHive3ReplicationMetricsResultRow startDate(String startDate) {
    this.startDate = startDate;
    return this;
  }

   /**
   * 
   * @return startDate
  **/
  @ApiModelProperty(value = "")
  public String getStartDate() {
    return startDate;
  }

  public void setStartDate(String startDate) {
    this.startDate = startDate;
  }

  public ApiHive3ReplicationMetricsResultRow endDate(String endDate) {
    this.endDate = endDate;
    return this;
  }

   /**
   * 
   * @return endDate
  **/
  @ApiModelProperty(value = "")
  public String getEndDate() {
    return endDate;
  }

  public void setEndDate(String endDate) {
    this.endDate = endDate;
  }

  public ApiHive3ReplicationMetricsResultRow errorMessage(String errorMessage) {
    this.errorMessage = errorMessage;
    return this;
  }

   /**
   * 
   * @return errorMessage
  **/
  @ApiModelProperty(value = "")
  public String getErrorMessage() {
    return errorMessage;
  }

  public void setErrorMessage(String errorMessage) {
    this.errorMessage = errorMessage;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiHive3ReplicationMetricsResultRow apiHive3ReplicationMetricsResultRow = (ApiHive3ReplicationMetricsResultRow) o;
    return Objects.equals(this.scheduledExecutionId, apiHive3ReplicationMetricsResultRow.scheduledExecutionId) &&
        Objects.equals(this.policy, apiHive3ReplicationMetricsResultRow.policy) &&
        Objects.equals(this.dumpExecutionId, apiHive3ReplicationMetricsResultRow.dumpExecutionId) &&
        Objects.equals(this.metadata, apiHive3ReplicationMetricsResultRow.metadata) &&
        Objects.equals(this.progress, apiHive3ReplicationMetricsResultRow.progress) &&
        Objects.equals(this.startDate, apiHive3ReplicationMetricsResultRow.startDate) &&
        Objects.equals(this.endDate, apiHive3ReplicationMetricsResultRow.endDate) &&
        Objects.equals(this.errorMessage, apiHive3ReplicationMetricsResultRow.errorMessage);
  }

  @Override
  public int hashCode() {
    return Objects.hash(scheduledExecutionId, policy, dumpExecutionId, metadata, progress, startDate, endDate, errorMessage);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiHive3ReplicationMetricsResultRow {\n");
    
    sb.append("    scheduledExecutionId: ").append(toIndentedString(scheduledExecutionId)).append("\n");
    sb.append("    policy: ").append(toIndentedString(policy)).append("\n");
    sb.append("    dumpExecutionId: ").append(toIndentedString(dumpExecutionId)).append("\n");
    sb.append("    metadata: ").append(toIndentedString(metadata)).append("\n");
    sb.append("    progress: ").append(toIndentedString(progress)).append("\n");
    sb.append("    startDate: ").append(toIndentedString(startDate)).append("\n");
    sb.append("    endDate: ").append(toIndentedString(endDate)).append("\n");
    sb.append("    errorMessage: ").append(toIndentedString(errorMessage)).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    ");
  }
  
}

