/*
 * 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.threeten.bp.OffsetDateTime;

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

  public static final String SERIALIZED_NAME_WORKFLOW_INSTANCE_CODE = "workflowInstanceCode";
  @SerializedName(SERIALIZED_NAME_WORKFLOW_INSTANCE_CODE)
  private String workflowInstanceCode;

  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_TRANSITION_NAME = "transitionName";
  @SerializedName(SERIALIZED_NAME_TRANSITION_NAME)
  private String transitionName;


  public WorkflowInstanceHistoryDto actionDate(OffsetDateTime actionDate) {
    
    this.actionDate = actionDate;
    return this;
  }

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

  public OffsetDateTime getActionDate() {
    return actionDate;
  }



  public void setActionDate(OffsetDateTime actionDate) {
    this.actionDate = actionDate;
  }


  public WorkflowInstanceHistoryDto workflowInstanceCode(String workflowInstanceCode) {
    
    this.workflowInstanceCode = workflowInstanceCode;
    return this;
  }

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

  public String getWorkflowInstanceCode() {
    return workflowInstanceCode;
  }



  public void setWorkflowInstanceCode(String workflowInstanceCode) {
    this.workflowInstanceCode = workflowInstanceCode;
  }


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

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

  public String getTransitionName() {
    return transitionName;
  }



  public void setTransitionName(String transitionName) {
    this.transitionName = transitionName;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    WorkflowInstanceHistoryDto workflowInstanceHistoryDto = (WorkflowInstanceHistoryDto) o;
    return Objects.equals(this.actionDate, workflowInstanceHistoryDto.actionDate) &&
        Objects.equals(this.workflowInstanceCode, workflowInstanceHistoryDto.workflowInstanceCode) &&
        Objects.equals(this.fromStatus, workflowInstanceHistoryDto.fromStatus) &&
        Objects.equals(this.toStatus, workflowInstanceHistoryDto.toStatus) &&
        Objects.equals(this.transitionName, workflowInstanceHistoryDto.transitionName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(actionDate, workflowInstanceCode, fromStatus, toStatus, transitionName);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class WorkflowInstanceHistoryDto {\n");
    sb.append("    actionDate: ").append(toIndentedString(actionDate)).append("\n");
    sb.append("    workflowInstanceCode: ").append(toIndentedString(workflowInstanceCode)).append("\n");
    sb.append("    fromStatus: ").append(toIndentedString(fromStatus)).append("\n");
    sb.append("    toStatus: ").append(toIndentedString(toStatus)).append("\n");
    sb.append("    transitionName: ").append(toIndentedString(transitionName)).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    ");
  }

}

