/*
 * 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.HashMap;
import java.util.List;
import java.util.Map;

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

  public static final String SERIALIZED_NAME_TEMPLATE_NAME = "templateName";
  @SerializedName(SERIALIZED_NAME_TEMPLATE_NAME)
  private String templateName;

  public static final String SERIALIZED_NAME_TEMPLATE_PATH = "templatePath";
  @SerializedName(SERIALIZED_NAME_TEMPLATE_PATH)
  private String templatePath;

  public static final String SERIALIZED_NAME_BAR_CODE_FIELDS = "barCodeFields";
  @SerializedName(SERIALIZED_NAME_BAR_CODE_FIELDS)
  private List<String> barCodeFields = null;


  public PDFTemplateDto templateFields(Map<String, String> templateFields) {
    
    this.templateFields = templateFields;
    return this;
  }

  public PDFTemplateDto putTemplateFieldsItem(String key, String templateFieldsItem) {
    if (this.templateFields == null) {
      this.templateFields = new HashMap<String, String>();
    }
    this.templateFields.put(key, templateFieldsItem);
    return this;
  }

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

  public Map<String, String> getTemplateFields() {
    return templateFields;
  }



  public void setTemplateFields(Map<String, String> templateFields) {
    this.templateFields = templateFields;
  }


  public PDFTemplateDto templateName(String templateName) {
    
    this.templateName = templateName;
    return this;
  }

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

  public String getTemplateName() {
    return templateName;
  }



  public void setTemplateName(String templateName) {
    this.templateName = templateName;
  }


  public PDFTemplateDto templatePath(String templatePath) {
    
    this.templatePath = templatePath;
    return this;
  }

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

  public String getTemplatePath() {
    return templatePath;
  }



  public void setTemplatePath(String templatePath) {
    this.templatePath = templatePath;
  }


  public PDFTemplateDto barCodeFields(List<String> barCodeFields) {
    
    this.barCodeFields = barCodeFields;
    return this;
  }

  public PDFTemplateDto addBarCodeFieldsItem(String barCodeFieldsItem) {
    if (this.barCodeFields == null) {
      this.barCodeFields = new ArrayList<String>();
    }
    this.barCodeFields.add(barCodeFieldsItem);
    return this;
  }

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

  public List<String> getBarCodeFields() {
    return barCodeFields;
  }



  public void setBarCodeFields(List<String> barCodeFields) {
    this.barCodeFields = barCodeFields;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    PDFTemplateDto pdFTemplateDto = (PDFTemplateDto) o;
    return Objects.equals(this.templateFields, pdFTemplateDto.templateFields) &&
        Objects.equals(this.templateName, pdFTemplateDto.templateName) &&
        Objects.equals(this.templatePath, pdFTemplateDto.templatePath) &&
        Objects.equals(this.barCodeFields, pdFTemplateDto.barCodeFields);
  }

  @Override
  public int hashCode() {
    return Objects.hash(templateFields, templateName, templatePath, barCodeFields);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PDFTemplateDto {\n");
    sb.append("    templateFields: ").append(toIndentedString(templateFields)).append("\n");
    sb.append("    templateName: ").append(toIndentedString(templateName)).append("\n");
    sb.append("    templatePath: ").append(toIndentedString(templatePath)).append("\n");
    sb.append("    barCodeFields: ").append(toIndentedString(barCodeFields)).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    ");
  }

}

