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

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

  public static final String SERIALIZED_NAME_DESCRIPTION = "description";
  @SerializedName(SERIALIZED_NAME_DESCRIPTION)
  private String description;

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

  public static final String SERIALIZED_NAME_MANDATORY = "mandatory";
  @SerializedName(SERIALIZED_NAME_MANDATORY)
  private Boolean mandatory;

  public static final String SERIALIZED_NAME_INSTANTIATED_FROM_B_S_M = "instantiatedFromBSM";
  @SerializedName(SERIALIZED_NAME_INSTANTIATED_FROM_B_S_M)
  private Boolean instantiatedFromBSM;

  public static final String SERIALIZED_NAME_MATCH = "match";
  @SerializedName(SERIALIZED_NAME_MATCH)
  private Boolean match;

  public static final String SERIALIZED_NAME_IMAGE_BASE64 = "imageBase64";
  @SerializedName(SERIALIZED_NAME_IMAGE_BASE64)
  private String imageBase64;

  public static final String SERIALIZED_NAME_IMAGE_PATH = "imagePath";
  @SerializedName(SERIALIZED_NAME_IMAGE_PATH)
  private String imagePath;


  public ServiceConfigurationDto code(String code) {
    
    this.code = code;
    return this;
  }

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

  public String getCode() {
    return code;
  }



  public void setCode(String code) {
    this.code = code;
  }


  public ServiceConfigurationDto description(String description) {
    
    this.description = description;
    return this;
  }

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

  public String getDescription() {
    return description;
  }



  public void setDescription(String description) {
    this.description = description;
  }


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

  public ServiceConfigurationDto 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;
  }


  public ServiceConfigurationDto mandatory(Boolean mandatory) {
    
    this.mandatory = mandatory;
    return this;
  }

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

  public Boolean getMandatory() {
    return mandatory;
  }



  public void setMandatory(Boolean mandatory) {
    this.mandatory = mandatory;
  }


  public ServiceConfigurationDto instantiatedFromBSM(Boolean instantiatedFromBSM) {
    
    this.instantiatedFromBSM = instantiatedFromBSM;
    return this;
  }

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

  public Boolean getInstantiatedFromBSM() {
    return instantiatedFromBSM;
  }



  public void setInstantiatedFromBSM(Boolean instantiatedFromBSM) {
    this.instantiatedFromBSM = instantiatedFromBSM;
  }


  public ServiceConfigurationDto match(Boolean match) {
    
    this.match = match;
    return this;
  }

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

  public Boolean getMatch() {
    return match;
  }



  public void setMatch(Boolean match) {
    this.match = match;
  }


  public ServiceConfigurationDto imageBase64(String imageBase64) {
    
    this.imageBase64 = imageBase64;
    return this;
  }

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

  public String getImageBase64() {
    return imageBase64;
  }



  public void setImageBase64(String imageBase64) {
    this.imageBase64 = imageBase64;
  }


  public ServiceConfigurationDto imagePath(String imagePath) {
    
    this.imagePath = imagePath;
    return this;
  }

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

  public String getImagePath() {
    return imagePath;
  }



  public void setImagePath(String imagePath) {
    this.imagePath = imagePath;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ServiceConfigurationDto serviceConfigurationDto = (ServiceConfigurationDto) o;
    return Objects.equals(this.code, serviceConfigurationDto.code) &&
        Objects.equals(this.description, serviceConfigurationDto.description) &&
        Objects.equals(this.customFields, serviceConfigurationDto.customFields) &&
        Objects.equals(this.mandatory, serviceConfigurationDto.mandatory) &&
        Objects.equals(this.instantiatedFromBSM, serviceConfigurationDto.instantiatedFromBSM) &&
        Objects.equals(this.match, serviceConfigurationDto.match) &&
        Objects.equals(this.imageBase64, serviceConfigurationDto.imageBase64) &&
        Objects.equals(this.imagePath, serviceConfigurationDto.imagePath);
  }

  @Override
  public int hashCode() {
    return Objects.hash(code, description, customFields, mandatory, instantiatedFromBSM, match, imageBase64, imagePath);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ServiceConfigurationDto {\n");
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    customFields: ").append(toIndentedString(customFields)).append("\n");
    sb.append("    mandatory: ").append(toIndentedString(mandatory)).append("\n");
    sb.append("    instantiatedFromBSM: ").append(toIndentedString(instantiatedFromBSM)).append("\n");
    sb.append("    match: ").append(toIndentedString(match)).append("\n");
    sb.append("    imageBase64: ").append(toIndentedString(imageBase64)).append("\n");
    sb.append("    imagePath: ").append(toIndentedString(imagePath)).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    ");
  }

}

