io.vanillabp.cockpit.bpms.api.v1.UserTaskActivatedEvent Maven / Gradle / Ivy
/*
* BC-API
* Business Cockpit API
*
* The version of the OpenAPI document: 1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.vanillabp.cockpit.bpms.api.v1;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.time.OffsetDateTime;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* UserTaskActivatedEvent
*/
@JsonPropertyOrder({
UserTaskActivatedEvent.JSON_PROPERTY_ID,
UserTaskActivatedEvent.JSON_PROPERTY_USER_TASK_ID,
UserTaskActivatedEvent.JSON_PROPERTY_INITIATOR,
UserTaskActivatedEvent.JSON_PROPERTY_TIMESTAMP,
UserTaskActivatedEvent.JSON_PROPERTY_SOURCE,
UserTaskActivatedEvent.JSON_PROPERTY_COMMENT
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-20T08:07:41.493160+02:00[Europe/Berlin]")
public class UserTaskActivatedEvent {
public static final String JSON_PROPERTY_ID = "id";
private String id;
public static final String JSON_PROPERTY_USER_TASK_ID = "userTaskId";
private String userTaskId;
public static final String JSON_PROPERTY_INITIATOR = "initiator";
private String initiator;
public static final String JSON_PROPERTY_TIMESTAMP = "timestamp";
private OffsetDateTime timestamp;
public static final String JSON_PROPERTY_SOURCE = "source";
private String source;
public static final String JSON_PROPERTY_COMMENT = "comment";
private String comment;
public UserTaskActivatedEvent() {
}
public UserTaskActivatedEvent id(String id) {
this.id = id;
return this;
}
/**
* event id withing the source system
* @return id
**/
@jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getId() {
return id;
}
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setId(String id) {
this.id = id;
}
public UserTaskActivatedEvent userTaskId(String userTaskId) {
this.userTaskId = userTaskId;
return this;
}
/**
* user task id
* @return userTaskId
**/
@jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_USER_TASK_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getUserTaskId() {
return userTaskId;
}
@JsonProperty(JSON_PROPERTY_USER_TASK_ID)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setUserTaskId(String userTaskId) {
this.userTaskId = userTaskId;
}
public UserTaskActivatedEvent initiator(String initiator) {
this.initiator = initiator;
return this;
}
/**
* The user who triggered the update. Null if the update is done by the system.
* @return initiator
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_INITIATOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getInitiator() {
return initiator;
}
@JsonProperty(JSON_PROPERTY_INITIATOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setInitiator(String initiator) {
this.initiator = initiator;
}
public UserTaskActivatedEvent timestamp(OffsetDateTime timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* Timestamp of the initial cause of this event (e.g. the time the task was created for ACTIVATED)
* @return timestamp
**/
@jakarta.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public OffsetDateTime getTimestamp() {
return timestamp;
}
@JsonProperty(JSON_PROPERTY_TIMESTAMP)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTimestamp(OffsetDateTime timestamp) {
this.timestamp = timestamp;
}
public UserTaskActivatedEvent source(String source) {
this.source = source;
return this;
}
/**
* name of the source system sending this event
* @return source
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SOURCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSource() {
return source;
}
@JsonProperty(JSON_PROPERTY_SOURCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSource(String source) {
this.source = source;
}
public UserTaskActivatedEvent comment(String comment) {
this.comment = comment;
return this;
}
/**
* Get comment
* @return comment
**/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_COMMENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getComment() {
return comment;
}
@JsonProperty(JSON_PROPERTY_COMMENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setComment(String comment) {
this.comment = comment;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UserTaskActivatedEvent userTaskActivatedEvent = (UserTaskActivatedEvent) o;
return Objects.equals(this.id, userTaskActivatedEvent.id) &&
Objects.equals(this.userTaskId, userTaskActivatedEvent.userTaskId) &&
Objects.equals(this.initiator, userTaskActivatedEvent.initiator) &&
Objects.equals(this.timestamp, userTaskActivatedEvent.timestamp) &&
Objects.equals(this.source, userTaskActivatedEvent.source) &&
Objects.equals(this.comment, userTaskActivatedEvent.comment);
}
@Override
public int hashCode() {
return Objects.hash(id, userTaskId, initiator, timestamp, source, comment);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UserTaskActivatedEvent {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" userTaskId: ").append(toIndentedString(userTaskId)).append("\n");
sb.append(" initiator: ").append(toIndentedString(initiator)).append("\n");
sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" comment: ").append(toIndentedString(comment)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}