/*
 * 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.WFAction;
import org.openapitools.client.model.WFDecisionRule;
import org.openapitools.client.model.Workflow;

/**
 * WFTransition
 */
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-09-13T10:03:17.753Z[GMT]")
public class WFTransition {
  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_FROM_STATUS = "fromStatus";
  @SerializedName(SERIALIZED_NAME_FROM_STATUS)
  private String fromStatus;

  public static final String SERIALIZED_NAME_TO_STATUS = "toStatus";
  @SerializedName(SERIALIZED_NAME_TO_STATUS)
  private String toStatus;

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

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

  public static final String SERIALIZED_NAME_WORKFLOW = "workflow";
  @SerializedName(SERIALIZED_NAME_WORKFLOW)
  private Workflow workflow;

  public static final String SERIALIZED_NAME_WF_DECISION_RULES = "wfDecisionRules";
  @SerializedName(SERIALIZED_NAME_WF_DECISION_RULES)
  private List<WFDecisionRule> wfDecisionRules = null;

  public static final String SERIALIZED_NAME_WF_ACTIONS = "wfActions";
  @SerializedName(SERIALIZED_NAME_WF_ACTIONS)
  private List<WFAction> wfActions = null;

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

  public static final String SERIALIZED_NAME_COMBINED_EL = "combinedEl";
  @SerializedName(SERIALIZED_NAME_COMBINED_EL)
  private String combinedEl;

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


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

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

  public String getFromStatus() {
    return fromStatus;
  }



  public void setFromStatus(String fromStatus) {
    this.fromStatus = fromStatus;
  }


  public WFTransition toStatus(String toStatus) {
    
    this.toStatus = toStatus;
    return this;
  }

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

  public String getToStatus() {
    return toStatus;
  }



  public void setToStatus(String toStatus) {
    this.toStatus = toStatus;
  }


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

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

  public String getDescription() {
    return description;
  }



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


  public WFTransition workflow(Workflow workflow) {
    
    this.workflow = workflow;
    return this;
  }

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

  public Workflow getWorkflow() {
    return workflow;
  }



  public void setWorkflow(Workflow workflow) {
    this.workflow = workflow;
  }


  public WFTransition wfDecisionRules(List<WFDecisionRule> wfDecisionRules) {
    
    this.wfDecisionRules = wfDecisionRules;
    return this;
  }

  public WFTransition addWfDecisionRulesItem(WFDecisionRule wfDecisionRulesItem) {
    if (this.wfDecisionRules == null) {
      this.wfDecisionRules = new ArrayList<WFDecisionRule>();
    }
    this.wfDecisionRules.add(wfDecisionRulesItem);
    return this;
  }

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

  public List<WFDecisionRule> getWfDecisionRules() {
    return wfDecisionRules;
  }



  public void setWfDecisionRules(List<WFDecisionRule> wfDecisionRules) {
    this.wfDecisionRules = wfDecisionRules;
  }


  public WFTransition wfActions(List<WFAction> wfActions) {
    
    this.wfActions = wfActions;
    return this;
  }

  public WFTransition addWfActionsItem(WFAction wfActionsItem) {
    if (this.wfActions == null) {
      this.wfActions = new ArrayList<WFAction>();
    }
    this.wfActions.add(wfActionsItem);
    return this;
  }

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

  public List<WFAction> getWfActions() {
    return wfActions;
  }



  public void setWfActions(List<WFAction> wfActions) {
    this.wfActions = wfActions;
  }


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

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

  public String getCombinedEl() {
    return combinedEl;
  }



  public void setCombinedEl(String combinedEl) {
    this.combinedEl = combinedEl;
  }


  public WFTransition _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;
    }
    WFTransition wfTransition = (WFTransition) o;
    return Objects.equals(this.id, wfTransition.id) &&
        Objects.equals(this.version, wfTransition.version) &&
        Objects.equals(this.uuid, wfTransition.uuid) &&
        Objects.equals(this.fromStatus, wfTransition.fromStatus) &&
        Objects.equals(this.toStatus, wfTransition.toStatus) &&
        Objects.equals(this.priority, wfTransition.priority) &&
        Objects.equals(this.description, wfTransition.description) &&
        Objects.equals(this.workflow, wfTransition.workflow) &&
        Objects.equals(this.wfDecisionRules, wfTransition.wfDecisionRules) &&
        Objects.equals(this.wfActions, wfTransition.wfActions) &&
        Objects.equals(this.conditionEl, wfTransition.conditionEl) &&
        Objects.equals(this.combinedEl, wfTransition.combinedEl) &&
        Objects.equals(this._transient, wfTransition._transient);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, version, uuid, fromStatus, toStatus, priority, description, workflow, wfDecisionRules, wfActions, conditionEl, combinedEl, _transient);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class WFTransition {\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("    fromStatus: ").append(toIndentedString(fromStatus)).append("\n");
    sb.append("    toStatus: ").append(toIndentedString(toStatus)).append("\n");
    sb.append("    priority: ").append(toIndentedString(priority)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    workflow: ").append(toIndentedString(workflow)).append("\n");
    sb.append("    wfDecisionRules: ").append(toIndentedString(wfDecisionRules)).append("\n");
    sb.append("    wfActions: ").append(toIndentedString(wfActions)).append("\n");
    sb.append("    conditionEl: ").append(toIndentedString(conditionEl)).append("\n");
    sb.append("    combinedEl: ").append(toIndentedString(combinedEl)).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    ");
  }

}

