/*
 * Swagger of Opencellsoft Api
 * @#Introduction
 *
 * The version of the OpenAPI document: 7.3.1-SNAPSHOT
 * Contact: contact@opencellsoft.fr
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package org.openapitools.client.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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import org.threeten.bp.OffsetDateTime;

/**
 * JobExecutionResultDto
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-09-13T10:03:17.753Z[GMT]")
public class JobExecutionResultDto {
  public static final String SERIALIZED_NAME_ID = "id";
  @SerializedName(SERIALIZED_NAME_ID)
  private Long id;

  public static final String SERIALIZED_NAME_JOB_INSTANCE_ID = "jobInstanceId";
  @SerializedName(SERIALIZED_NAME_JOB_INSTANCE_ID)
  private Long jobInstanceId;

  public static final String SERIALIZED_NAME_RUNNING_ON_NODES = "runningOnNodes";
  @SerializedName(SERIALIZED_NAME_RUNNING_ON_NODES)
  private String runningOnNodes;

  public static final String SERIALIZED_NAME_START_DATE = "startDate";
  @SerializedName(SERIALIZED_NAME_START_DATE)
  private OffsetDateTime startDate;

  public static final String SERIALIZED_NAME_END_DATE = "endDate";
  @SerializedName(SERIALIZED_NAME_END_DATE)
  private OffsetDateTime endDate;

  public static final String SERIALIZED_NAME_NB_ITEMS_TO_PROCESS = "nbItemsToProcess";
  @SerializedName(SERIALIZED_NAME_NB_ITEMS_TO_PROCESS)
  private Long nbItemsToProcess;

  public static final String SERIALIZED_NAME_NB_ITEMS_CORRECTLY_PROCESSED = "nbItemsCorrectlyProcessed";
  @SerializedName(SERIALIZED_NAME_NB_ITEMS_CORRECTLY_PROCESSED)
  private Long nbItemsCorrectlyProcessed;

  public static final String SERIALIZED_NAME_NB_ITEMS_PROCESSED_WITH_WARNING = "nbItemsProcessedWithWarning";
  @SerializedName(SERIALIZED_NAME_NB_ITEMS_PROCESSED_WITH_WARNING)
  private Long nbItemsProcessedWithWarning;

  public static final String SERIALIZED_NAME_NB_ITEMS_PROCESSED_WITH_ERROR = "nbItemsProcessedWithError";
  @SerializedName(SERIALIZED_NAME_NB_ITEMS_PROCESSED_WITH_ERROR)
  private Long nbItemsProcessedWithError;

  public static final String SERIALIZED_NAME_DONE = "done";
  @SerializedName(SERIALIZED_NAME_DONE)
  private Boolean done;

  public static final String SERIALIZED_NAME_REPORT = "report";
  @SerializedName(SERIALIZED_NAME_REPORT)
  private String report;

  public static final String SERIALIZED_NAME_JOB_INSTANCE_CODE = "jobInstanceCode";
  @SerializedName(SERIALIZED_NAME_JOB_INSTANCE_CODE)
  private String jobInstanceCode;


  public JobExecutionResultDto id(Long id) {
    
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public Long getId() {
    return id;
  }



  public void setId(Long id) {
    this.id = id;
  }


  public JobExecutionResultDto jobInstanceId(Long jobInstanceId) {
    
    this.jobInstanceId = jobInstanceId;
    return this;
  }

   /**
   * Get jobInstanceId
   * @return jobInstanceId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public Long getJobInstanceId() {
    return jobInstanceId;
  }



  public void setJobInstanceId(Long jobInstanceId) {
    this.jobInstanceId = jobInstanceId;
  }


  public JobExecutionResultDto runningOnNodes(String runningOnNodes) {
    
    this.runningOnNodes = runningOnNodes;
    return this;
  }

   /**
   * Get runningOnNodes
   * @return runningOnNodes
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getRunningOnNodes() {
    return runningOnNodes;
  }



  public void setRunningOnNodes(String runningOnNodes) {
    this.runningOnNodes = runningOnNodes;
  }


  public JobExecutionResultDto startDate(OffsetDateTime startDate) {
    
    this.startDate = startDate;
    return this;
  }

   /**
   * Get startDate
   * @return startDate
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public OffsetDateTime getStartDate() {
    return startDate;
  }



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


  public JobExecutionResultDto endDate(OffsetDateTime endDate) {
    
    this.endDate = endDate;
    return this;
  }

   /**
   * Get endDate
   * @return endDate
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public OffsetDateTime getEndDate() {
    return endDate;
  }



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


  public JobExecutionResultDto nbItemsToProcess(Long nbItemsToProcess) {
    
    this.nbItemsToProcess = nbItemsToProcess;
    return this;
  }

   /**
   * Get nbItemsToProcess
   * @return nbItemsToProcess
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public Long getNbItemsToProcess() {
    return nbItemsToProcess;
  }



  public void setNbItemsToProcess(Long nbItemsToProcess) {
    this.nbItemsToProcess = nbItemsToProcess;
  }


  public JobExecutionResultDto nbItemsCorrectlyProcessed(Long nbItemsCorrectlyProcessed) {
    
    this.nbItemsCorrectlyProcessed = nbItemsCorrectlyProcessed;
    return this;
  }

   /**
   * Get nbItemsCorrectlyProcessed
   * @return nbItemsCorrectlyProcessed
  **/
  @ApiModelProperty(required = true, value = "")

  public Long getNbItemsCorrectlyProcessed() {
    return nbItemsCorrectlyProcessed;
  }



  public void setNbItemsCorrectlyProcessed(Long nbItemsCorrectlyProcessed) {
    this.nbItemsCorrectlyProcessed = nbItemsCorrectlyProcessed;
  }


  public JobExecutionResultDto nbItemsProcessedWithWarning(Long nbItemsProcessedWithWarning) {
    
    this.nbItemsProcessedWithWarning = nbItemsProcessedWithWarning;
    return this;
  }

   /**
   * Get nbItemsProcessedWithWarning
   * @return nbItemsProcessedWithWarning
  **/
  @ApiModelProperty(required = true, value = "")

  public Long getNbItemsProcessedWithWarning() {
    return nbItemsProcessedWithWarning;
  }



  public void setNbItemsProcessedWithWarning(Long nbItemsProcessedWithWarning) {
    this.nbItemsProcessedWithWarning = nbItemsProcessedWithWarning;
  }


  public JobExecutionResultDto nbItemsProcessedWithError(Long nbItemsProcessedWithError) {
    
    this.nbItemsProcessedWithError = nbItemsProcessedWithError;
    return this;
  }

   /**
   * Get nbItemsProcessedWithError
   * @return nbItemsProcessedWithError
  **/
  @ApiModelProperty(required = true, value = "")

  public Long getNbItemsProcessedWithError() {
    return nbItemsProcessedWithError;
  }



  public void setNbItemsProcessedWithError(Long nbItemsProcessedWithError) {
    this.nbItemsProcessedWithError = nbItemsProcessedWithError;
  }


  public JobExecutionResultDto done(Boolean done) {
    
    this.done = done;
    return this;
  }

   /**
   * Get done
   * @return done
  **/
  @ApiModelProperty(required = true, value = "")

  public Boolean getDone() {
    return done;
  }



  public void setDone(Boolean done) {
    this.done = done;
  }


  public JobExecutionResultDto report(String report) {
    
    this.report = report;
    return this;
  }

   /**
   * Get report
   * @return report
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getReport() {
    return report;
  }



  public void setReport(String report) {
    this.report = report;
  }


  public JobExecutionResultDto jobInstanceCode(String jobInstanceCode) {
    
    this.jobInstanceCode = jobInstanceCode;
    return this;
  }

   /**
   * Get jobInstanceCode
   * @return jobInstanceCode
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getJobInstanceCode() {
    return jobInstanceCode;
  }



  public void setJobInstanceCode(String jobInstanceCode) {
    this.jobInstanceCode = jobInstanceCode;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    JobExecutionResultDto jobExecutionResultDto = (JobExecutionResultDto) o;
    return Objects.equals(this.id, jobExecutionResultDto.id) &&
        Objects.equals(this.jobInstanceId, jobExecutionResultDto.jobInstanceId) &&
        Objects.equals(this.runningOnNodes, jobExecutionResultDto.runningOnNodes) &&
        Objects.equals(this.startDate, jobExecutionResultDto.startDate) &&
        Objects.equals(this.endDate, jobExecutionResultDto.endDate) &&
        Objects.equals(this.nbItemsToProcess, jobExecutionResultDto.nbItemsToProcess) &&
        Objects.equals(this.nbItemsCorrectlyProcessed, jobExecutionResultDto.nbItemsCorrectlyProcessed) &&
        Objects.equals(this.nbItemsProcessedWithWarning, jobExecutionResultDto.nbItemsProcessedWithWarning) &&
        Objects.equals(this.nbItemsProcessedWithError, jobExecutionResultDto.nbItemsProcessedWithError) &&
        Objects.equals(this.done, jobExecutionResultDto.done) &&
        Objects.equals(this.report, jobExecutionResultDto.report) &&
        Objects.equals(this.jobInstanceCode, jobExecutionResultDto.jobInstanceCode);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, jobInstanceId, runningOnNodes, startDate, endDate, nbItemsToProcess, nbItemsCorrectlyProcessed, nbItemsProcessedWithWarning, nbItemsProcessedWithError, done, report, jobInstanceCode);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class JobExecutionResultDto {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    jobInstanceId: ").append(toIndentedString(jobInstanceId)).append("\n");
    sb.append("    runningOnNodes: ").append(toIndentedString(runningOnNodes)).append("\n");
    sb.append("    startDate: ").append(toIndentedString(startDate)).append("\n");
    sb.append("    endDate: ").append(toIndentedString(endDate)).append("\n");
    sb.append("    nbItemsToProcess: ").append(toIndentedString(nbItemsToProcess)).append("\n");
    sb.append("    nbItemsCorrectlyProcessed: ").append(toIndentedString(nbItemsCorrectlyProcessed)).append("\n");
    sb.append("    nbItemsProcessedWithWarning: ").append(toIndentedString(nbItemsProcessedWithWarning)).append("\n");
    sb.append("    nbItemsProcessedWithError: ").append(toIndentedString(nbItemsProcessedWithError)).append("\n");
    sb.append("    done: ").append(toIndentedString(done)).append("\n");
    sb.append("    report: ").append(toIndentedString(report)).append("\n");
    sb.append("    jobInstanceCode: ").append(toIndentedString(jobInstanceCode)).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    ");
  }

}

