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

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

  public static final String SERIALIZED_NAME_VERSION = "version";
  @SerializedName(SERIALIZED_NAME_VERSION)
  private Integer version;

  public static final String SERIALIZED_NAME_UUID = "uuid";
  @SerializedName(SERIALIZED_NAME_UUID)
  private String uuid;

  public static final String SERIALIZED_NAME_ACTION_EL = "actionEl";
  @SerializedName(SERIALIZED_NAME_ACTION_EL)
  private String actionEl;

  public static final String SERIALIZED_NAME_PRIORITY = "priority";
  @SerializedName(SERIALIZED_NAME_PRIORITY)
  private Integer priority;

  public static final String SERIALIZED_NAME_CONDITION_EL = "conditionEl";
  @SerializedName(SERIALIZED_NAME_CONDITION_EL)
  private String conditionEl;

  public static final String SERIALIZED_NAME_WF_TRANSITION = "wfTransition";
  @SerializedName(SERIALIZED_NAME_WF_TRANSITION)
  private WFTransition wfTransition;

  public static final String SERIALIZED_NAME_USER_GROUP_CODE = "userGroupCode";
  @SerializedName(SERIALIZED_NAME_USER_GROUP_CODE)
  private String userGroupCode;

  public static final String SERIALIZED_NAME_TRANSIENT = "transient";
  @SerializedName(SERIALIZED_NAME_TRANSIENT)
  private Boolean _transient;


  public WFAction 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 WFAction version(Integer version) {
    
    this.version = version;
    return this;
  }

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

  public Integer getVersion() {
    return version;
  }



  public void setVersion(Integer version) {
    this.version = version;
  }


  public WFAction uuid(String uuid) {
    
    this.uuid = uuid;
    return this;
  }

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

  public String getUuid() {
    return uuid;
  }



  public void setUuid(String uuid) {
    this.uuid = uuid;
  }


  public WFAction actionEl(String actionEl) {
    
    this.actionEl = actionEl;
    return this;
  }

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

  public String getActionEl() {
    return actionEl;
  }



  public void setActionEl(String actionEl) {
    this.actionEl = actionEl;
  }


  public WFAction priority(Integer priority) {
    
    this.priority = priority;
    return this;
  }

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

  public Integer getPriority() {
    return priority;
  }



  public void setPriority(Integer priority) {
    this.priority = priority;
  }


  public WFAction conditionEl(String conditionEl) {
    
    this.conditionEl = conditionEl;
    return this;
  }

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

  public String getConditionEl() {
    return conditionEl;
  }



  public void setConditionEl(String conditionEl) {
    this.conditionEl = conditionEl;
  }


  public WFAction wfTransition(WFTransition wfTransition) {
    
    this.wfTransition = wfTransition;
    return this;
  }

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

  public WFTransition getWfTransition() {
    return wfTransition;
  }



  public void setWfTransition(WFTransition wfTransition) {
    this.wfTransition = wfTransition;
  }


  public WFAction userGroupCode(String userGroupCode) {
    
    this.userGroupCode = userGroupCode;
    return this;
  }

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

  public String getUserGroupCode() {
    return userGroupCode;
  }



  public void setUserGroupCode(String userGroupCode) {
    this.userGroupCode = userGroupCode;
  }


  public WFAction _transient(Boolean _transient) {
    
    this._transient = _transient;
    return this;
  }

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

  public Boolean getTransient() {
    return _transient;
  }



  public void setTransient(Boolean _transient) {
    this._transient = _transient;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    WFAction wfAction = (WFAction) o;
    return Objects.equals(this.id, wfAction.id) &&
        Objects.equals(this.version, wfAction.version) &&
        Objects.equals(this.uuid, wfAction.uuid) &&
        Objects.equals(this.actionEl, wfAction.actionEl) &&
        Objects.equals(this.priority, wfAction.priority) &&
        Objects.equals(this.conditionEl, wfAction.conditionEl) &&
        Objects.equals(this.wfTransition, wfAction.wfTransition) &&
        Objects.equals(this.userGroupCode, wfAction.userGroupCode) &&
        Objects.equals(this._transient, wfAction._transient);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, version, uuid, actionEl, priority, conditionEl, wfTransition, userGroupCode, _transient);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class WFAction {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    version: ").append(toIndentedString(version)).append("\n");
    sb.append("    uuid: ").append(toIndentedString(uuid)).append("\n");
    sb.append("    actionEl: ").append(toIndentedString(actionEl)).append("\n");
    sb.append("    priority: ").append(toIndentedString(priority)).append("\n");
    sb.append("    conditionEl: ").append(toIndentedString(conditionEl)).append("\n");
    sb.append("    wfTransition: ").append(toIndentedString(wfTransition)).append("\n");
    sb.append("    userGroupCode: ").append(toIndentedString(userGroupCode)).append("\n");
    sb.append("    _transient: ").append(toIndentedString(_transient)).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    ");
  }

}

