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

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

  public static final String SERIALIZED_NAME_OVERRWRITE = "overrwrite";
  @SerializedName(SERIALIZED_NAME_OVERRWRITE)
  private Boolean overrwrite;

  public static final String SERIALIZED_NAME_VALUES = "values";
  @SerializedName(SERIALIZED_NAME_VALUES)
  private List<CustomTableRecordDto> values = null;

  public static final String SERIALIZED_NAME_VALUES_FROM_LISTOF_MAP = "valuesFromListofMap";
  @SerializedName(SERIALIZED_NAME_VALUES_FROM_LISTOF_MAP)
  private List<Map<String, Object>> valuesFromListofMap = null;


  public CustomTableDataDto customTableCode(String customTableCode) {
    
    this.customTableCode = customTableCode;
    return this;
  }

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

  public String getCustomTableCode() {
    return customTableCode;
  }



  public void setCustomTableCode(String customTableCode) {
    this.customTableCode = customTableCode;
  }


  public CustomTableDataDto overrwrite(Boolean overrwrite) {
    
    this.overrwrite = overrwrite;
    return this;
  }

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

  public Boolean getOverrwrite() {
    return overrwrite;
  }



  public void setOverrwrite(Boolean overrwrite) {
    this.overrwrite = overrwrite;
  }


  public CustomTableDataDto values(List<CustomTableRecordDto> values) {
    
    this.values = values;
    return this;
  }

  public CustomTableDataDto addValuesItem(CustomTableRecordDto valuesItem) {
    if (this.values == null) {
      this.values = new ArrayList<CustomTableRecordDto>();
    }
    this.values.add(valuesItem);
    return this;
  }

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

  public List<CustomTableRecordDto> getValues() {
    return values;
  }



  public void setValues(List<CustomTableRecordDto> values) {
    this.values = values;
  }


  public CustomTableDataDto valuesFromListofMap(List<Map<String, Object>> valuesFromListofMap) {
    
    this.valuesFromListofMap = valuesFromListofMap;
    return this;
  }

  public CustomTableDataDto addValuesFromListofMapItem(Map<String, Object> valuesFromListofMapItem) {
    if (this.valuesFromListofMap == null) {
      this.valuesFromListofMap = new ArrayList<Map<String, Object>>();
    }
    this.valuesFromListofMap.add(valuesFromListofMapItem);
    return this;
  }

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

  public List<Map<String, Object>> getValuesFromListofMap() {
    return valuesFromListofMap;
  }



  public void setValuesFromListofMap(List<Map<String, Object>> valuesFromListofMap) {
    this.valuesFromListofMap = valuesFromListofMap;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CustomTableDataDto customTableDataDto = (CustomTableDataDto) o;
    return Objects.equals(this.customTableCode, customTableDataDto.customTableCode) &&
        Objects.equals(this.overrwrite, customTableDataDto.overrwrite) &&
        Objects.equals(this.values, customTableDataDto.values) &&
        Objects.equals(this.valuesFromListofMap, customTableDataDto.valuesFromListofMap);
  }

  @Override
  public int hashCode() {
    return Objects.hash(customTableCode, overrwrite, values, valuesFromListofMap);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CustomTableDataDto {\n");
    sb.append("    customTableCode: ").append(toIndentedString(customTableCode)).append("\n");
    sb.append("    overrwrite: ").append(toIndentedString(overrwrite)).append("\n");
    sb.append("    values: ").append(toIndentedString(values)).append("\n");
    sb.append("    valuesFromListofMap: ").append(toIndentedString(valuesFromListofMap)).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    ");
  }

}

