/*
 * 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.CustomFieldDto;

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

  public static final String SERIALIZED_NAME_PREFIX = "prefix";
  @SerializedName(SERIALIZED_NAME_PREFIX)
  private String prefix;

  public static final String SERIALIZED_NAME_CUSTOM_FIELDS = "customFields";
  @SerializedName(SERIALIZED_NAME_CUSTOM_FIELDS)
  private List<CustomFieldDto> customFields = null;


  public BpmProductDto bpmCode(String bpmCode) {
    
    this.bpmCode = bpmCode;
    return this;
  }

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

  public String getBpmCode() {
    return bpmCode;
  }



  public void setBpmCode(String bpmCode) {
    this.bpmCode = bpmCode;
  }


  public BpmProductDto prefix(String prefix) {
    
    this.prefix = prefix;
    return this;
  }

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

  public String getPrefix() {
    return prefix;
  }



  public void setPrefix(String prefix) {
    this.prefix = prefix;
  }


  public BpmProductDto customFields(List<CustomFieldDto> customFields) {
    
    this.customFields = customFields;
    return this;
  }

  public BpmProductDto addCustomFieldsItem(CustomFieldDto customFieldsItem) {
    if (this.customFields == null) {
      this.customFields = new ArrayList<CustomFieldDto>();
    }
    this.customFields.add(customFieldsItem);
    return this;
  }

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

  public List<CustomFieldDto> getCustomFields() {
    return customFields;
  }



  public void setCustomFields(List<CustomFieldDto> customFields) {
    this.customFields = customFields;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BpmProductDto bpmProductDto = (BpmProductDto) o;
    return Objects.equals(this.bpmCode, bpmProductDto.bpmCode) &&
        Objects.equals(this.prefix, bpmProductDto.prefix) &&
        Objects.equals(this.customFields, bpmProductDto.customFields);
  }

  @Override
  public int hashCode() {
    return Objects.hash(bpmCode, prefix, customFields);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BpmProductDto {\n");
    sb.append("    bpmCode: ").append(toIndentedString(bpmCode)).append("\n");
    sb.append("    prefix: ").append(toIndentedString(prefix)).append("\n");
    sb.append("    customFields: ").append(toIndentedString(customFields)).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    ");
  }

}

