/*
 * 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 java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.openapitools.client.model.ActionStatus;
import org.openapitools.client.model.FieldsNotImportedStringCollectionDto;

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

  public static final String SERIALIZED_NAME_EXECUTION_ID = "executionId";
  @SerializedName(SERIALIZED_NAME_EXECUTION_ID)
  private String executionId;

  public static final String SERIALIZED_NAME_SUMMARY = "summary";
  @SerializedName(SERIALIZED_NAME_SUMMARY)
  private Map<String, Integer> summary = null;

  public static final String SERIALIZED_NAME_FIELDS_NOT_IMPORTED = "fieldsNotImported";
  @SerializedName(SERIALIZED_NAME_FIELDS_NOT_IMPORTED)
  private Map<String, FieldsNotImportedStringCollectionDto> fieldsNotImported = null;

  public static final String SERIALIZED_NAME_EXCEPTION_MESSAGE = "exceptionMessage";
  @SerializedName(SERIALIZED_NAME_EXCEPTION_MESSAGE)
  private String exceptionMessage;

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

  public static final String SERIALIZED_NAME_FAILURE_MESSAGE_KEY = "failureMessageKey";
  @SerializedName(SERIALIZED_NAME_FAILURE_MESSAGE_KEY)
  private String failureMessageKey;

  public static final String SERIALIZED_NAME_FAILED = "failed";
  @SerializedName(SERIALIZED_NAME_FAILED)
  private Boolean failed;

  public static final String SERIALIZED_NAME_FAILURE_MESSAGE = "failureMessage";
  @SerializedName(SERIALIZED_NAME_FAILURE_MESSAGE)
  private String failureMessage;


  public ImportExportResponseDto actionStatus(ActionStatus actionStatus) {
    
    this.actionStatus = actionStatus;
    return this;
  }

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

  public ActionStatus getActionStatus() {
    return actionStatus;
  }



  public void setActionStatus(ActionStatus actionStatus) {
    this.actionStatus = actionStatus;
  }


  public ImportExportResponseDto executionId(String executionId) {
    
    this.executionId = executionId;
    return this;
  }

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

  public String getExecutionId() {
    return executionId;
  }



  public void setExecutionId(String executionId) {
    this.executionId = executionId;
  }


  public ImportExportResponseDto summary(Map<String, Integer> summary) {
    
    this.summary = summary;
    return this;
  }

  public ImportExportResponseDto putSummaryItem(String key, Integer summaryItem) {
    if (this.summary == null) {
      this.summary = new HashMap<String, Integer>();
    }
    this.summary.put(key, summaryItem);
    return this;
  }

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

  public Map<String, Integer> getSummary() {
    return summary;
  }



  public void setSummary(Map<String, Integer> summary) {
    this.summary = summary;
  }


  public ImportExportResponseDto fieldsNotImported(Map<String, FieldsNotImportedStringCollectionDto> fieldsNotImported) {
    
    this.fieldsNotImported = fieldsNotImported;
    return this;
  }

  public ImportExportResponseDto putFieldsNotImportedItem(String key, FieldsNotImportedStringCollectionDto fieldsNotImportedItem) {
    if (this.fieldsNotImported == null) {
      this.fieldsNotImported = new HashMap<String, FieldsNotImportedStringCollectionDto>();
    }
    this.fieldsNotImported.put(key, fieldsNotImportedItem);
    return this;
  }

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

  public Map<String, FieldsNotImportedStringCollectionDto> getFieldsNotImported() {
    return fieldsNotImported;
  }



  public void setFieldsNotImported(Map<String, FieldsNotImportedStringCollectionDto> fieldsNotImported) {
    this.fieldsNotImported = fieldsNotImported;
  }


  public ImportExportResponseDto exceptionMessage(String exceptionMessage) {
    
    this.exceptionMessage = exceptionMessage;
    return this;
  }

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

  public String getExceptionMessage() {
    return exceptionMessage;
  }



  public void setExceptionMessage(String exceptionMessage) {
    this.exceptionMessage = exceptionMessage;
  }


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

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

  public Boolean getDone() {
    return done;
  }



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


  public ImportExportResponseDto failureMessageKey(String failureMessageKey) {
    
    this.failureMessageKey = failureMessageKey;
    return this;
  }

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

  public String getFailureMessageKey() {
    return failureMessageKey;
  }



  public void setFailureMessageKey(String failureMessageKey) {
    this.failureMessageKey = failureMessageKey;
  }


  public ImportExportResponseDto failed(Boolean failed) {
    
    this.failed = failed;
    return this;
  }

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

  public Boolean getFailed() {
    return failed;
  }



  public void setFailed(Boolean failed) {
    this.failed = failed;
  }


  public ImportExportResponseDto failureMessage(String failureMessage) {
    
    this.failureMessage = failureMessage;
    return this;
  }

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

  public String getFailureMessage() {
    return failureMessage;
  }



  public void setFailureMessage(String failureMessage) {
    this.failureMessage = failureMessage;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ImportExportResponseDto importExportResponseDto = (ImportExportResponseDto) o;
    return Objects.equals(this.actionStatus, importExportResponseDto.actionStatus) &&
        Objects.equals(this.executionId, importExportResponseDto.executionId) &&
        Objects.equals(this.summary, importExportResponseDto.summary) &&
        Objects.equals(this.fieldsNotImported, importExportResponseDto.fieldsNotImported) &&
        Objects.equals(this.exceptionMessage, importExportResponseDto.exceptionMessage) &&
        Objects.equals(this.done, importExportResponseDto.done) &&
        Objects.equals(this.failureMessageKey, importExportResponseDto.failureMessageKey) &&
        Objects.equals(this.failed, importExportResponseDto.failed) &&
        Objects.equals(this.failureMessage, importExportResponseDto.failureMessage);
  }

  @Override
  public int hashCode() {
    return Objects.hash(actionStatus, executionId, summary, fieldsNotImported, exceptionMessage, done, failureMessageKey, failed, failureMessage);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ImportExportResponseDto {\n");
    sb.append("    actionStatus: ").append(toIndentedString(actionStatus)).append("\n");
    sb.append("    executionId: ").append(toIndentedString(executionId)).append("\n");
    sb.append("    summary: ").append(toIndentedString(summary)).append("\n");
    sb.append("    fieldsNotImported: ").append(toIndentedString(fieldsNotImported)).append("\n");
    sb.append("    exceptionMessage: ").append(toIndentedString(exceptionMessage)).append("\n");
    sb.append("    done: ").append(toIndentedString(done)).append("\n");
    sb.append("    failureMessageKey: ").append(toIndentedString(failureMessageKey)).append("\n");
    sb.append("    failed: ").append(toIndentedString(failed)).append("\n");
    sb.append("    failureMessage: ").append(toIndentedString(failureMessage)).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    ");
  }

}

