/*
 * 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.ArrayList;
import java.util.List;
import org.openapitools.client.model.PDFTemplateDto;

/**
 * PDFDocumentRequestDto
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-09-13T10:03:17.753Z[GMT]")
public class PDFDocumentRequestDto {
  public static final String SERIALIZED_NAME_LIST_TEMPLATES = "listTemplates";
  @SerializedName(SERIALIZED_NAME_LIST_TEMPLATES)
  private List<PDFTemplateDto> listTemplates = null;

  public static final String SERIALIZED_NAME_DOCUMENT_DESTINATION_DIR = "documentDestinationDir";
  @SerializedName(SERIALIZED_NAME_DOCUMENT_DESTINATION_DIR)
  private String documentDestinationDir;

  public static final String SERIALIZED_NAME_DOCUMENT_NAME_PREFIX = "documentNamePrefix";
  @SerializedName(SERIALIZED_NAME_DOCUMENT_NAME_PREFIX)
  private String documentNamePrefix;

  public static final String SERIALIZED_NAME_RETURN_PDF = "returnPdf";
  @SerializedName(SERIALIZED_NAME_RETURN_PDF)
  private Boolean returnPdf;

  public static final String SERIALIZED_NAME_COMBINE_FILES = "combineFiles";
  @SerializedName(SERIALIZED_NAME_COMBINE_FILES)
  private Boolean combineFiles;

  public static final String SERIALIZED_NAME_ABSOLUTE_PATHS = "absolutePaths";
  @SerializedName(SERIALIZED_NAME_ABSOLUTE_PATHS)
  private Boolean absolutePaths;


  public PDFDocumentRequestDto listTemplates(List<PDFTemplateDto> listTemplates) {
    
    this.listTemplates = listTemplates;
    return this;
  }

  public PDFDocumentRequestDto addListTemplatesItem(PDFTemplateDto listTemplatesItem) {
    if (this.listTemplates == null) {
      this.listTemplates = new ArrayList<PDFTemplateDto>();
    }
    this.listTemplates.add(listTemplatesItem);
    return this;
  }

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

  public List<PDFTemplateDto> getListTemplates() {
    return listTemplates;
  }



  public void setListTemplates(List<PDFTemplateDto> listTemplates) {
    this.listTemplates = listTemplates;
  }


  public PDFDocumentRequestDto documentDestinationDir(String documentDestinationDir) {
    
    this.documentDestinationDir = documentDestinationDir;
    return this;
  }

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

  public String getDocumentDestinationDir() {
    return documentDestinationDir;
  }



  public void setDocumentDestinationDir(String documentDestinationDir) {
    this.documentDestinationDir = documentDestinationDir;
  }


  public PDFDocumentRequestDto documentNamePrefix(String documentNamePrefix) {
    
    this.documentNamePrefix = documentNamePrefix;
    return this;
  }

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

  public String getDocumentNamePrefix() {
    return documentNamePrefix;
  }



  public void setDocumentNamePrefix(String documentNamePrefix) {
    this.documentNamePrefix = documentNamePrefix;
  }


  public PDFDocumentRequestDto returnPdf(Boolean returnPdf) {
    
    this.returnPdf = returnPdf;
    return this;
  }

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

  public Boolean getReturnPdf() {
    return returnPdf;
  }



  public void setReturnPdf(Boolean returnPdf) {
    this.returnPdf = returnPdf;
  }


  public PDFDocumentRequestDto combineFiles(Boolean combineFiles) {
    
    this.combineFiles = combineFiles;
    return this;
  }

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

  public Boolean getCombineFiles() {
    return combineFiles;
  }



  public void setCombineFiles(Boolean combineFiles) {
    this.combineFiles = combineFiles;
  }


  public PDFDocumentRequestDto absolutePaths(Boolean absolutePaths) {
    
    this.absolutePaths = absolutePaths;
    return this;
  }

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

  public Boolean getAbsolutePaths() {
    return absolutePaths;
  }



  public void setAbsolutePaths(Boolean absolutePaths) {
    this.absolutePaths = absolutePaths;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PDFDocumentRequestDto pdFDocumentRequestDto = (PDFDocumentRequestDto) o;
    return Objects.equals(this.listTemplates, pdFDocumentRequestDto.listTemplates) &&
        Objects.equals(this.documentDestinationDir, pdFDocumentRequestDto.documentDestinationDir) &&
        Objects.equals(this.documentNamePrefix, pdFDocumentRequestDto.documentNamePrefix) &&
        Objects.equals(this.returnPdf, pdFDocumentRequestDto.returnPdf) &&
        Objects.equals(this.combineFiles, pdFDocumentRequestDto.combineFiles) &&
        Objects.equals(this.absolutePaths, pdFDocumentRequestDto.absolutePaths);
  }

  @Override
  public int hashCode() {
    return Objects.hash(listTemplates, documentDestinationDir, documentNamePrefix, returnPdf, combineFiles, absolutePaths);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PDFDocumentRequestDto {\n");
    sb.append("    listTemplates: ").append(toIndentedString(listTemplates)).append("\n");
    sb.append("    documentDestinationDir: ").append(toIndentedString(documentDestinationDir)).append("\n");
    sb.append("    documentNamePrefix: ").append(toIndentedString(documentNamePrefix)).append("\n");
    sb.append("    returnPdf: ").append(toIndentedString(returnPdf)).append("\n");
    sb.append("    combineFiles: ").append(toIndentedString(combineFiles)).append("\n");
    sb.append("    absolutePaths: ").append(toIndentedString(absolutePaths)).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    ");
  }

}

