/*
 * 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.LanguageDescriptionDto;
import org.openapitools.client.model.ScriptInstanceDto;

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

  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_UPDATED_CODE = "updatedCode";
  @SerializedName(SERIALIZED_NAME_UPDATED_CODE)
  private String updatedCode;

  public static final String SERIALIZED_NAME_DISABLED = "disabled";
  @SerializedName(SERIALIZED_NAME_DISABLED)
  private Boolean disabled;

  public static final String SERIALIZED_NAME_APPLIES_TO = "appliesTo";
  @SerializedName(SERIALIZED_NAME_APPLIES_TO)
  private String appliesTo;

  public static final String SERIALIZED_NAME_APPLICABLE_ON_EL = "applicableOnEl";
  @SerializedName(SERIALIZED_NAME_APPLICABLE_ON_EL)
  private String applicableOnEl;

  public static final String SERIALIZED_NAME_LABEL = "label";
  @SerializedName(SERIALIZED_NAME_LABEL)
  private String label;

  public static final String SERIALIZED_NAME_LABELS_TRANSLATED = "labelsTranslated";
  @SerializedName(SERIALIZED_NAME_LABELS_TRANSLATED)
  private List<LanguageDescriptionDto> labelsTranslated = null;

  public static final String SERIALIZED_NAME_SCRIPT = "script";
  @SerializedName(SERIALIZED_NAME_SCRIPT)
  private ScriptInstanceDto script;

  public static final String SERIALIZED_NAME_GUI_POSITION = "guiPosition";
  @SerializedName(SERIALIZED_NAME_GUI_POSITION)
  private String guiPosition;


  public EntityCustomActionDto id(Long id) {
    
    this.id = id;
    return this;
  }

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

  public Long getId() {
    return id;
  }



  public void setId(Long id) {
    this.id = id;
  }


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

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

  public String getCode() {
    return code;
  }



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


  public EntityCustomActionDto 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 EntityCustomActionDto updatedCode(String updatedCode) {
    
    this.updatedCode = updatedCode;
    return this;
  }

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

  public String getUpdatedCode() {
    return updatedCode;
  }



  public void setUpdatedCode(String updatedCode) {
    this.updatedCode = updatedCode;
  }


  public EntityCustomActionDto disabled(Boolean disabled) {
    
    this.disabled = disabled;
    return this;
  }

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

  public Boolean getDisabled() {
    return disabled;
  }



  public void setDisabled(Boolean disabled) {
    this.disabled = disabled;
  }


  public EntityCustomActionDto appliesTo(String appliesTo) {
    
    this.appliesTo = appliesTo;
    return this;
  }

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

  public String getAppliesTo() {
    return appliesTo;
  }



  public void setAppliesTo(String appliesTo) {
    this.appliesTo = appliesTo;
  }


  public EntityCustomActionDto applicableOnEl(String applicableOnEl) {
    
    this.applicableOnEl = applicableOnEl;
    return this;
  }

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

  public String getApplicableOnEl() {
    return applicableOnEl;
  }



  public void setApplicableOnEl(String applicableOnEl) {
    this.applicableOnEl = applicableOnEl;
  }


  public EntityCustomActionDto label(String label) {
    
    this.label = label;
    return this;
  }

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

  public String getLabel() {
    return label;
  }



  public void setLabel(String label) {
    this.label = label;
  }


  public EntityCustomActionDto labelsTranslated(List<LanguageDescriptionDto> labelsTranslated) {
    
    this.labelsTranslated = labelsTranslated;
    return this;
  }

  public EntityCustomActionDto addLabelsTranslatedItem(LanguageDescriptionDto labelsTranslatedItem) {
    if (this.labelsTranslated == null) {
      this.labelsTranslated = new ArrayList<LanguageDescriptionDto>();
    }
    this.labelsTranslated.add(labelsTranslatedItem);
    return this;
  }

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

  public List<LanguageDescriptionDto> getLabelsTranslated() {
    return labelsTranslated;
  }



  public void setLabelsTranslated(List<LanguageDescriptionDto> labelsTranslated) {
    this.labelsTranslated = labelsTranslated;
  }


  public EntityCustomActionDto script(ScriptInstanceDto script) {
    
    this.script = script;
    return this;
  }

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

  public ScriptInstanceDto getScript() {
    return script;
  }



  public void setScript(ScriptInstanceDto script) {
    this.script = script;
  }


  public EntityCustomActionDto guiPosition(String guiPosition) {
    
    this.guiPosition = guiPosition;
    return this;
  }

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

  public String getGuiPosition() {
    return guiPosition;
  }



  public void setGuiPosition(String guiPosition) {
    this.guiPosition = guiPosition;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    EntityCustomActionDto entityCustomActionDto = (EntityCustomActionDto) o;
    return Objects.equals(this.id, entityCustomActionDto.id) &&
        Objects.equals(this.code, entityCustomActionDto.code) &&
        Objects.equals(this.description, entityCustomActionDto.description) &&
        Objects.equals(this.updatedCode, entityCustomActionDto.updatedCode) &&
        Objects.equals(this.disabled, entityCustomActionDto.disabled) &&
        Objects.equals(this.appliesTo, entityCustomActionDto.appliesTo) &&
        Objects.equals(this.applicableOnEl, entityCustomActionDto.applicableOnEl) &&
        Objects.equals(this.label, entityCustomActionDto.label) &&
        Objects.equals(this.labelsTranslated, entityCustomActionDto.labelsTranslated) &&
        Objects.equals(this.script, entityCustomActionDto.script) &&
        Objects.equals(this.guiPosition, entityCustomActionDto.guiPosition);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, code, description, updatedCode, disabled, appliesTo, applicableOnEl, label, labelsTranslated, script, guiPosition);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class EntityCustomActionDto {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    updatedCode: ").append(toIndentedString(updatedCode)).append("\n");
    sb.append("    disabled: ").append(toIndentedString(disabled)).append("\n");
    sb.append("    appliesTo: ").append(toIndentedString(appliesTo)).append("\n");
    sb.append("    applicableOnEl: ").append(toIndentedString(applicableOnEl)).append("\n");
    sb.append("    label: ").append(toIndentedString(label)).append("\n");
    sb.append("    labelsTranslated: ").append(toIndentedString(labelsTranslated)).append("\n");
    sb.append("    script: ").append(toIndentedString(script)).append("\n");
    sb.append("    guiPosition: ").append(toIndentedString(guiPosition)).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    ");
  }

}

