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

org.openmetadata.schema.entity.feed.Thread Maven / Gradle / Ivy

There is a newer version: 1.6.0-rc1
Show newest version

package org.openmetadata.schema.entity.feed;

import java.net.URI;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import javax.annotation.processing.Generated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonValue;
import org.openmetadata.schema.type.AnnouncementDetails;
import org.openmetadata.schema.type.ChatbotDetails;
import org.openmetadata.schema.type.EntityReference;
import org.openmetadata.schema.type.Post;
import org.openmetadata.schema.type.Reaction;
import org.openmetadata.schema.type.TaskDetails;
import org.openmetadata.schema.type.ThreadType;


/**
 * Thread
 * 

* This schema defines the Thread entity. A Thread is a collection of posts made by the users. The first post that starts a thread is **about** a data asset **from** a user. Other users can respond to this post by creating new posts in the thread. Note that bot users can also interact with a thread. A post can contains links that mention Users or other Data Assets. * */ @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "id", "type", "href", "threadTs", "about", "entityRef", "entityUrlLink", "domain", "generatedBy", "cardStyle", "fieldOperation", "feedInfo", "addressedTo", "createdBy", "updatedAt", "updatedBy", "resolved", "message", "postsCount", "posts", "reactions", "task", "announcement", "chatbot" }) @Generated("jsonschema2pojo") public class Thread { /** * Unique id used to identify an entity. * (Required) * */ @JsonProperty("id") @JsonPropertyDescription("Unique id used to identify an entity.") @NotNull private UUID id; /** * Type of thread. * */ @JsonProperty("type") @JsonPropertyDescription("Type of thread.") private ThreadType type = ThreadType.fromValue("Conversation"); /** * URI that points to a resource. * */ @JsonProperty("href") @JsonPropertyDescription("URI that points to a resource.") private URI href; /** * Timestamp in Unix epoch time milliseconds.@om-field-type * */ @JsonProperty("threadTs") @JsonPropertyDescription("Timestamp in Unix epoch time milliseconds.") private Long threadTs; /** * Link to an entity or field within an entity using this format `<#E::{entities}::{entityType}::{field}::{arrayFieldName}::{arrayFieldValue}`. * (Required) * */ @JsonProperty("about") @JsonPropertyDescription("Link to an entity or field within an entity using this format `<#E::{entities}::{entityType}::{field}::{arrayFieldName}::{arrayFieldValue}`.") @Pattern(regexp = "(?U)^<#E::\\w+::(?:[^:<>|]|:[^:<>|])+(?:::(?:[^:<>|]|:[^:<>|])+)*>$") @NotNull private String about; /** * Entity Reference *

* This schema defines the EntityReference type used for referencing an entity. EntityReference is used for capturing relationships from one entity to another. For example, a table has an attribute called database of type EntityReference that captures the relationship of a table `belongs to a` database. * */ @JsonProperty("entityRef") @JsonPropertyDescription("This schema defines the EntityReference type used for referencing an entity. EntityReference is used for capturing relationships from one entity to another. For example, a table has an attribute called database of type EntityReference that captures the relationship of a table `belongs to a` database.") @Valid private EntityReference entityRef; /** * Link to the entity in `about` that the thread belongs to. * */ @JsonProperty("entityUrlLink") @JsonPropertyDescription("Link to the entity in `about` that the thread belongs to.") private String entityUrlLink; /** * Unique id used to identify an entity. * */ @JsonProperty("domain") @JsonPropertyDescription("Unique id used to identify an entity.") private UUID domain; /** * User or team that generated the thread. * */ @JsonProperty("generatedBy") @JsonPropertyDescription("User or team that generated the thread.") private Thread.GeneratedBy generatedBy = Thread.GeneratedBy.fromValue("user"); /** * Card style for the thread. * */ @JsonProperty("cardStyle") @JsonPropertyDescription("Card style for the thread.") private Thread.CardStyle cardStyle = Thread.CardStyle.fromValue("default"); /** * Operation on thread, whether the field was added, or updated or deleted. * */ @JsonProperty("fieldOperation") @JsonPropertyDescription("Operation on thread, whether the field was added, or updated or deleted.") private Thread.FieldOperation fieldOperation = Thread.FieldOperation.fromValue("updated"); /** * Entity Id of the entity in `about` that the thread belongs to. * */ @JsonProperty("feedInfo") @JsonPropertyDescription("Entity Id of the entity in `about` that the thread belongs to.") @Valid private FeedInfo feedInfo; /** * Link to an entity or field within an entity using this format `<#E::{entities}::{entityType}::{field}::{arrayFieldName}::{arrayFieldValue}`. * */ @JsonProperty("addressedTo") @JsonPropertyDescription("Link to an entity or field within an entity using this format `<#E::{entities}::{entityType}::{field}::{arrayFieldName}::{arrayFieldValue}`.") @Pattern(regexp = "(?U)^<#E::\\w+::(?:[^:<>|]|:[^:<>|])+(?:::(?:[^:<>|]|:[^:<>|])+)*>$") private String addressedTo; /** * User who created the thread. * */ @JsonProperty("createdBy") @JsonPropertyDescription("User who created the thread.") private String createdBy; /** * Timestamp in Unix epoch time milliseconds.@om-field-type * */ @JsonProperty("updatedAt") @JsonPropertyDescription("Timestamp in Unix epoch time milliseconds.") private Long updatedAt; /** * User who made the update. * */ @JsonProperty("updatedBy") @JsonPropertyDescription("User who made the update.") private String updatedBy; /** * When `true` indicates the thread has been resolved. * */ @JsonProperty("resolved") @JsonPropertyDescription("When `true` indicates the thread has been resolved.") private Boolean resolved = false; /** * The main message of the thread in Markdown format. * (Required) * */ @JsonProperty("message") @JsonPropertyDescription("The main message of the thread in Markdown format.") @NotNull private String message; /** * The total count of posts in the thread. * */ @JsonProperty("postsCount") @JsonPropertyDescription("The total count of posts in the thread.") private Integer postsCount = 0; @JsonProperty("posts") @Valid private List posts = new ArrayList(); @JsonProperty("reactions") @Valid private List reactions = null; /** * Details about the task. This is only applicable if thread is of type task. * */ @JsonProperty("task") @JsonPropertyDescription("Details about the task. This is only applicable if thread is of type task.") @Valid private TaskDetails task; /** * Details about the announcement. This is only applicable if thread is of type announcement. * */ @JsonProperty("announcement") @JsonPropertyDescription("Details about the announcement. This is only applicable if thread is of type announcement.") @Valid private AnnouncementDetails announcement; /** * Details about the Chatbot conversation. This is only applicable if thread is of type Chatbot. * */ @JsonProperty("chatbot") @JsonPropertyDescription("Details about the Chatbot conversation. This is only applicable if thread is of type Chatbot.") @Valid private ChatbotDetails chatbot; /** * Unique id used to identify an entity. * (Required) * */ @JsonProperty("id") public UUID getId() { return id; } /** * Unique id used to identify an entity. * (Required) * */ @JsonProperty("id") public void setId(UUID id) { this.id = id; } public Thread withId(UUID id) { this.id = id; return this; } /** * Type of thread. * */ @JsonProperty("type") public ThreadType getType() { return type; } /** * Type of thread. * */ @JsonProperty("type") public void setType(ThreadType type) { this.type = type; } public Thread withType(ThreadType type) { this.type = type; return this; } /** * URI that points to a resource. * */ @JsonProperty("href") public URI getHref() { return href; } /** * URI that points to a resource. * */ @JsonProperty("href") public void setHref(URI href) { this.href = href; } public Thread withHref(URI href) { this.href = href; return this; } /** * Timestamp in Unix epoch time milliseconds.@om-field-type * */ @JsonProperty("threadTs") public Long getThreadTs() { return threadTs; } /** * Timestamp in Unix epoch time milliseconds.@om-field-type * */ @JsonProperty("threadTs") public void setThreadTs(Long threadTs) { this.threadTs = threadTs; } public Thread withThreadTs(Long threadTs) { this.threadTs = threadTs; return this; } /** * Link to an entity or field within an entity using this format `<#E::{entities}::{entityType}::{field}::{arrayFieldName}::{arrayFieldValue}`. * (Required) * */ @JsonProperty("about") public String getAbout() { return about; } /** * Link to an entity or field within an entity using this format `<#E::{entities}::{entityType}::{field}::{arrayFieldName}::{arrayFieldValue}`. * (Required) * */ @JsonProperty("about") public void setAbout(String about) { this.about = about; } public Thread withAbout(String about) { this.about = about; return this; } /** * Entity Reference *

* This schema defines the EntityReference type used for referencing an entity. EntityReference is used for capturing relationships from one entity to another. For example, a table has an attribute called database of type EntityReference that captures the relationship of a table `belongs to a` database. * */ @JsonProperty("entityRef") public EntityReference getEntityRef() { return entityRef; } /** * Entity Reference *

* This schema defines the EntityReference type used for referencing an entity. EntityReference is used for capturing relationships from one entity to another. For example, a table has an attribute called database of type EntityReference that captures the relationship of a table `belongs to a` database. * */ @JsonProperty("entityRef") public void setEntityRef(EntityReference entityRef) { this.entityRef = entityRef; } public Thread withEntityRef(EntityReference entityRef) { this.entityRef = entityRef; return this; } /** * Link to the entity in `about` that the thread belongs to. * */ @JsonProperty("entityUrlLink") public String getEntityUrlLink() { return entityUrlLink; } /** * Link to the entity in `about` that the thread belongs to. * */ @JsonProperty("entityUrlLink") public void setEntityUrlLink(String entityUrlLink) { this.entityUrlLink = entityUrlLink; } public Thread withEntityUrlLink(String entityUrlLink) { this.entityUrlLink = entityUrlLink; return this; } /** * Unique id used to identify an entity. * */ @JsonProperty("domain") public UUID getDomain() { return domain; } /** * Unique id used to identify an entity. * */ @JsonProperty("domain") public void setDomain(UUID domain) { this.domain = domain; } public Thread withDomain(UUID domain) { this.domain = domain; return this; } /** * User or team that generated the thread. * */ @JsonProperty("generatedBy") public Thread.GeneratedBy getGeneratedBy() { return generatedBy; } /** * User or team that generated the thread. * */ @JsonProperty("generatedBy") public void setGeneratedBy(Thread.GeneratedBy generatedBy) { this.generatedBy = generatedBy; } public Thread withGeneratedBy(Thread.GeneratedBy generatedBy) { this.generatedBy = generatedBy; return this; } /** * Card style for the thread. * */ @JsonProperty("cardStyle") public Thread.CardStyle getCardStyle() { return cardStyle; } /** * Card style for the thread. * */ @JsonProperty("cardStyle") public void setCardStyle(Thread.CardStyle cardStyle) { this.cardStyle = cardStyle; } public Thread withCardStyle(Thread.CardStyle cardStyle) { this.cardStyle = cardStyle; return this; } /** * Operation on thread, whether the field was added, or updated or deleted. * */ @JsonProperty("fieldOperation") public Thread.FieldOperation getFieldOperation() { return fieldOperation; } /** * Operation on thread, whether the field was added, or updated or deleted. * */ @JsonProperty("fieldOperation") public void setFieldOperation(Thread.FieldOperation fieldOperation) { this.fieldOperation = fieldOperation; } public Thread withFieldOperation(Thread.FieldOperation fieldOperation) { this.fieldOperation = fieldOperation; return this; } /** * Entity Id of the entity in `about` that the thread belongs to. * */ @JsonProperty("feedInfo") public FeedInfo getFeedInfo() { return feedInfo; } /** * Entity Id of the entity in `about` that the thread belongs to. * */ @JsonProperty("feedInfo") public void setFeedInfo(FeedInfo feedInfo) { this.feedInfo = feedInfo; } public Thread withFeedInfo(FeedInfo feedInfo) { this.feedInfo = feedInfo; return this; } /** * Link to an entity or field within an entity using this format `<#E::{entities}::{entityType}::{field}::{arrayFieldName}::{arrayFieldValue}`. * */ @JsonProperty("addressedTo") public String getAddressedTo() { return addressedTo; } /** * Link to an entity or field within an entity using this format `<#E::{entities}::{entityType}::{field}::{arrayFieldName}::{arrayFieldValue}`. * */ @JsonProperty("addressedTo") public void setAddressedTo(String addressedTo) { this.addressedTo = addressedTo; } public Thread withAddressedTo(String addressedTo) { this.addressedTo = addressedTo; return this; } /** * User who created the thread. * */ @JsonProperty("createdBy") public String getCreatedBy() { return createdBy; } /** * User who created the thread. * */ @JsonProperty("createdBy") public void setCreatedBy(String createdBy) { this.createdBy = createdBy; } public Thread withCreatedBy(String createdBy) { this.createdBy = createdBy; return this; } /** * Timestamp in Unix epoch time milliseconds.@om-field-type * */ @JsonProperty("updatedAt") public Long getUpdatedAt() { return updatedAt; } /** * Timestamp in Unix epoch time milliseconds.@om-field-type * */ @JsonProperty("updatedAt") public void setUpdatedAt(Long updatedAt) { this.updatedAt = updatedAt; } public Thread withUpdatedAt(Long updatedAt) { this.updatedAt = updatedAt; return this; } /** * User who made the update. * */ @JsonProperty("updatedBy") public String getUpdatedBy() { return updatedBy; } /** * User who made the update. * */ @JsonProperty("updatedBy") public void setUpdatedBy(String updatedBy) { this.updatedBy = updatedBy; } public Thread withUpdatedBy(String updatedBy) { this.updatedBy = updatedBy; return this; } /** * When `true` indicates the thread has been resolved. * */ @JsonProperty("resolved") public Boolean getResolved() { return resolved; } /** * When `true` indicates the thread has been resolved. * */ @JsonProperty("resolved") public void setResolved(Boolean resolved) { this.resolved = resolved; } public Thread withResolved(Boolean resolved) { this.resolved = resolved; return this; } /** * The main message of the thread in Markdown format. * (Required) * */ @JsonProperty("message") public String getMessage() { return message; } /** * The main message of the thread in Markdown format. * (Required) * */ @JsonProperty("message") public void setMessage(String message) { this.message = message; } public Thread withMessage(String message) { this.message = message; return this; } /** * The total count of posts in the thread. * */ @JsonProperty("postsCount") public Integer getPostsCount() { return postsCount; } /** * The total count of posts in the thread. * */ @JsonProperty("postsCount") public void setPostsCount(Integer postsCount) { this.postsCount = postsCount; } public Thread withPostsCount(Integer postsCount) { this.postsCount = postsCount; return this; } @JsonProperty("posts") public List getPosts() { return posts; } @JsonProperty("posts") public void setPosts(List posts) { this.posts = posts; } public Thread withPosts(List posts) { this.posts = posts; return this; } @JsonProperty("reactions") public List getReactions() { return reactions; } @JsonProperty("reactions") public void setReactions(List reactions) { this.reactions = reactions; } public Thread withReactions(List reactions) { this.reactions = reactions; return this; } /** * Details about the task. This is only applicable if thread is of type task. * */ @JsonProperty("task") public TaskDetails getTask() { return task; } /** * Details about the task. This is only applicable if thread is of type task. * */ @JsonProperty("task") public void setTask(TaskDetails task) { this.task = task; } public Thread withTask(TaskDetails task) { this.task = task; return this; } /** * Details about the announcement. This is only applicable if thread is of type announcement. * */ @JsonProperty("announcement") public AnnouncementDetails getAnnouncement() { return announcement; } /** * Details about the announcement. This is only applicable if thread is of type announcement. * */ @JsonProperty("announcement") public void setAnnouncement(AnnouncementDetails announcement) { this.announcement = announcement; } public Thread withAnnouncement(AnnouncementDetails announcement) { this.announcement = announcement; return this; } /** * Details about the Chatbot conversation. This is only applicable if thread is of type Chatbot. * */ @JsonProperty("chatbot") public ChatbotDetails getChatbot() { return chatbot; } /** * Details about the Chatbot conversation. This is only applicable if thread is of type Chatbot. * */ @JsonProperty("chatbot") public void setChatbot(ChatbotDetails chatbot) { this.chatbot = chatbot; } public Thread withChatbot(ChatbotDetails chatbot) { this.chatbot = chatbot; return this; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(Thread.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('['); sb.append("id"); sb.append('='); sb.append(((this.id == null)?"":this.id)); sb.append(','); sb.append("type"); sb.append('='); sb.append(((this.type == null)?"":this.type)); sb.append(','); sb.append("href"); sb.append('='); sb.append(((this.href == null)?"":this.href)); sb.append(','); sb.append("threadTs"); sb.append('='); sb.append(((this.threadTs == null)?"":this.threadTs)); sb.append(','); sb.append("about"); sb.append('='); sb.append(((this.about == null)?"":this.about)); sb.append(','); sb.append("entityRef"); sb.append('='); sb.append(((this.entityRef == null)?"":this.entityRef)); sb.append(','); sb.append("entityUrlLink"); sb.append('='); sb.append(((this.entityUrlLink == null)?"":this.entityUrlLink)); sb.append(','); sb.append("domain"); sb.append('='); sb.append(((this.domain == null)?"":this.domain)); sb.append(','); sb.append("generatedBy"); sb.append('='); sb.append(((this.generatedBy == null)?"":this.generatedBy)); sb.append(','); sb.append("cardStyle"); sb.append('='); sb.append(((this.cardStyle == null)?"":this.cardStyle)); sb.append(','); sb.append("fieldOperation"); sb.append('='); sb.append(((this.fieldOperation == null)?"":this.fieldOperation)); sb.append(','); sb.append("feedInfo"); sb.append('='); sb.append(((this.feedInfo == null)?"":this.feedInfo)); sb.append(','); sb.append("addressedTo"); sb.append('='); sb.append(((this.addressedTo == null)?"":this.addressedTo)); sb.append(','); sb.append("createdBy"); sb.append('='); sb.append(((this.createdBy == null)?"":this.createdBy)); sb.append(','); sb.append("updatedAt"); sb.append('='); sb.append(((this.updatedAt == null)?"":this.updatedAt)); sb.append(','); sb.append("updatedBy"); sb.append('='); sb.append(((this.updatedBy == null)?"":this.updatedBy)); sb.append(','); sb.append("resolved"); sb.append('='); sb.append(((this.resolved == null)?"":this.resolved)); sb.append(','); sb.append("message"); sb.append('='); sb.append(((this.message == null)?"":this.message)); sb.append(','); sb.append("postsCount"); sb.append('='); sb.append(((this.postsCount == null)?"":this.postsCount)); sb.append(','); sb.append("posts"); sb.append('='); sb.append(((this.posts == null)?"":this.posts)); sb.append(','); sb.append("reactions"); sb.append('='); sb.append(((this.reactions == null)?"":this.reactions)); sb.append(','); sb.append("task"); sb.append('='); sb.append(((this.task == null)?"":this.task)); sb.append(','); sb.append("announcement"); sb.append('='); sb.append(((this.announcement == null)?"":this.announcement)); sb.append(','); sb.append("chatbot"); sb.append('='); sb.append(((this.chatbot == null)?"":this.chatbot)); sb.append(','); if (sb.charAt((sb.length()- 1)) == ',') { sb.setCharAt((sb.length()- 1), ']'); } else { sb.append(']'); } return sb.toString(); } @Override public int hashCode() { int result = 1; result = ((result* 31)+((this.addressedTo == null)? 0 :this.addressedTo.hashCode())); result = ((result* 31)+((this.about == null)? 0 :this.about.hashCode())); result = ((result* 31)+((this.type == null)? 0 :this.type.hashCode())); result = ((result* 31)+((this.posts == null)? 0 :this.posts.hashCode())); result = ((result* 31)+((this.postsCount == null)? 0 :this.postsCount.hashCode())); result = ((result* 31)+((this.id == null)? 0 :this.id.hashCode())); result = ((result* 31)+((this.href == null)? 0 :this.href.hashCode())); result = ((result* 31)+((this.generatedBy == null)? 0 :this.generatedBy.hashCode())); result = ((result* 31)+((this.updatedAt == null)? 0 :this.updatedAt.hashCode())); result = ((result* 31)+((this.resolved == null)? 0 :this.resolved.hashCode())); result = ((result* 31)+((this.announcement == null)? 0 :this.announcement.hashCode())); result = ((result* 31)+((this.entityUrlLink == null)? 0 :this.entityUrlLink.hashCode())); result = ((result* 31)+((this.chatbot == null)? 0 :this.chatbot.hashCode())); result = ((result* 31)+((this.updatedBy == null)? 0 :this.updatedBy.hashCode())); result = ((result* 31)+((this.feedInfo == null)? 0 :this.feedInfo.hashCode())); result = ((result* 31)+((this.fieldOperation == null)? 0 :this.fieldOperation.hashCode())); result = ((result* 31)+((this.entityRef == null)? 0 :this.entityRef.hashCode())); result = ((result* 31)+((this.message == null)? 0 :this.message.hashCode())); result = ((result* 31)+((this.task == null)? 0 :this.task.hashCode())); result = ((result* 31)+((this.createdBy == null)? 0 :this.createdBy.hashCode())); result = ((result* 31)+((this.domain == null)? 0 :this.domain.hashCode())); result = ((result* 31)+((this.reactions == null)? 0 :this.reactions.hashCode())); result = ((result* 31)+((this.threadTs == null)? 0 :this.threadTs.hashCode())); result = ((result* 31)+((this.cardStyle == null)? 0 :this.cardStyle.hashCode())); return result; } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof Thread) == false) { return false; } Thread rhs = ((Thread) other); return (((((((((((((((((((((((((this.addressedTo == rhs.addressedTo)||((this.addressedTo!= null)&&this.addressedTo.equals(rhs.addressedTo)))&&((this.about == rhs.about)||((this.about!= null)&&this.about.equals(rhs.about))))&&((this.type == rhs.type)||((this.type!= null)&&this.type.equals(rhs.type))))&&((this.posts == rhs.posts)||((this.posts!= null)&&this.posts.equals(rhs.posts))))&&((this.postsCount == rhs.postsCount)||((this.postsCount!= null)&&this.postsCount.equals(rhs.postsCount))))&&((this.id == rhs.id)||((this.id!= null)&&this.id.equals(rhs.id))))&&((this.href == rhs.href)||((this.href!= null)&&this.href.equals(rhs.href))))&&((this.generatedBy == rhs.generatedBy)||((this.generatedBy!= null)&&this.generatedBy.equals(rhs.generatedBy))))&&((this.updatedAt == rhs.updatedAt)||((this.updatedAt!= null)&&this.updatedAt.equals(rhs.updatedAt))))&&((this.resolved == rhs.resolved)||((this.resolved!= null)&&this.resolved.equals(rhs.resolved))))&&((this.announcement == rhs.announcement)||((this.announcement!= null)&&this.announcement.equals(rhs.announcement))))&&((this.entityUrlLink == rhs.entityUrlLink)||((this.entityUrlLink!= null)&&this.entityUrlLink.equals(rhs.entityUrlLink))))&&((this.chatbot == rhs.chatbot)||((this.chatbot!= null)&&this.chatbot.equals(rhs.chatbot))))&&((this.updatedBy == rhs.updatedBy)||((this.updatedBy!= null)&&this.updatedBy.equals(rhs.updatedBy))))&&((this.feedInfo == rhs.feedInfo)||((this.feedInfo!= null)&&this.feedInfo.equals(rhs.feedInfo))))&&((this.fieldOperation == rhs.fieldOperation)||((this.fieldOperation!= null)&&this.fieldOperation.equals(rhs.fieldOperation))))&&((this.entityRef == rhs.entityRef)||((this.entityRef!= null)&&this.entityRef.equals(rhs.entityRef))))&&((this.message == rhs.message)||((this.message!= null)&&this.message.equals(rhs.message))))&&((this.task == rhs.task)||((this.task!= null)&&this.task.equals(rhs.task))))&&((this.createdBy == rhs.createdBy)||((this.createdBy!= null)&&this.createdBy.equals(rhs.createdBy))))&&((this.domain == rhs.domain)||((this.domain!= null)&&this.domain.equals(rhs.domain))))&&((this.reactions == rhs.reactions)||((this.reactions!= null)&&this.reactions.equals(rhs.reactions))))&&((this.threadTs == rhs.threadTs)||((this.threadTs!= null)&&this.threadTs.equals(rhs.threadTs))))&&((this.cardStyle == rhs.cardStyle)||((this.cardStyle!= null)&&this.cardStyle.equals(rhs.cardStyle)))); } /** * Card style for the thread. * */ @Generated("jsonschema2pojo") public enum CardStyle { DEFAULT("default"), LOGICAL_TEST_CASE_ADDED("logicalTestCaseAdded"), ENTITY_CREATED("entityCreated"), ENTITY_DELETED("entityDeleted"), ENTITY_SOFT_DELETED("entitySoftDeleted"), DESCRIPTION("description"), TAGS("tags"), OWNER("owner"), TEST_CASE_RESULT("testCaseResult"), CUSTOM_PROPERTIES("customProperties"), ASSETS("assets"), DOMAIN("domain"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (Thread.CardStyle c: values()) { CONSTANTS.put(c.value, c); } } CardStyle(String value) { this.value = value; } @Override public String toString() { return this.value; } @JsonValue public String value() { return this.value; } @JsonCreator public static Thread.CardStyle fromValue(String value) { Thread.CardStyle constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } /** * Operation on thread, whether the field was added, or updated or deleted. * */ @Generated("jsonschema2pojo") public enum FieldOperation { ADDED("added"), UPDATED("updated"), DELETED("deleted"), NONE("none"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (Thread.FieldOperation c: values()) { CONSTANTS.put(c.value, c); } } FieldOperation(String value) { this.value = value; } @Override public String toString() { return this.value; } @JsonValue public String value() { return this.value; } @JsonCreator public static Thread.FieldOperation fromValue(String value) { Thread.FieldOperation constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } /** * User or team that generated the thread. * */ @Generated("jsonschema2pojo") public enum GeneratedBy { USER("user"), SYSTEM("system"); private final String value; private final static Map CONSTANTS = new HashMap(); static { for (Thread.GeneratedBy c: values()) { CONSTANTS.put(c.value, c); } } GeneratedBy(String value) { this.value = value; } @Override public String toString() { return this.value; } @JsonValue public String value() { return this.value; } @JsonCreator public static Thread.GeneratedBy fromValue(String value) { Thread.GeneratedBy constant = CONSTANTS.get(value); if (constant == null) { throw new IllegalArgumentException(value); } else { return constant; } } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy