All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.holunda.camunda.taskpool.cockpit.rest.model.TaskEventDto Maven / Gradle / Ivy

There is a newer version: 2.0.5
Show newest version
package io.holunda.camunda.taskpool.cockpit.rest.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.holunda.camunda.taskpool.cockpit.rest.model.TaskDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.OffsetDateTime;
import javax.validation.Valid;
import javax.validation.constraints.*;

/**
 * Represents a user task event.
 */
@ApiModel(description = "Represents a user task event.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-04-02T18:15:46.103+02:00")

public class TaskEventDto   {
  @JsonProperty("id")
  private String id = null;

  @JsonProperty("eventType")
  private String eventType = null;

  @JsonProperty("created")
  private OffsetDateTime created = null;

  @JsonProperty("task")
  private TaskDto task = null;

  public TaskEventDto id(String id) {
    this.id = id;
    return this;
  }

   /**
   * Id of the task.
   * @return id
  **/
  @ApiModelProperty(value = "Id of the task.")


  public String getId() {
    return id;
  }

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

  public TaskEventDto eventType(String eventType) {
    this.eventType = eventType;
    return this;
  }

   /**
   * Event type.
   * @return eventType
  **/
  @ApiModelProperty(value = "Event type.")


  public String getEventType() {
    return eventType;
  }

  public void setEventType(String eventType) {
    this.eventType = eventType;
  }

  public TaskEventDto created(OffsetDateTime created) {
    this.created = created;
    return this;
  }

   /**
   * Time of event creation.
   * @return created
  **/
  @ApiModelProperty(value = "Time of event creation.")

  @Valid

  public OffsetDateTime getCreated() {
    return created;
  }

  public void setCreated(OffsetDateTime created) {
    this.created = created;
  }

  public TaskEventDto task(TaskDto task) {
    this.task = task;
    return this;
  }

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

  @Valid

  public TaskDto getTask() {
    return task;
  }

  public void setTask(TaskDto task) {
    this.task = task;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TaskEventDto taskEvent = (TaskEventDto) o;
    return Objects.equals(this.id, taskEvent.id) &&
        Objects.equals(this.eventType, taskEvent.eventType) &&
        Objects.equals(this.created, taskEvent.created) &&
        Objects.equals(this.task, taskEvent.task);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, eventType, created, task);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TaskEventDto {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    eventType: ").append(toIndentedString(eventType)).append("\n");
    sb.append("    created: ").append(toIndentedString(created)).append("\n");
    sb.append("    task: ").append(toIndentedString(task)).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    ");
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy