
com.mailslurp.models.ThreadProjection Maven / Gradle / Ivy
/*
* MailSlurp API
* MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://docs.mailslurp.com/) - [Examples](https://github.com/mailslurp/examples) repository
*
* The version of the OpenAPI document: 6.5.2
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.mailslurp.models;
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.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
/**
* A thread is a message thread created for a message received by an alias
*/
@ApiModel(description = "A thread is a message thread created for a message received by an alias")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-05-03T02:14:29.400Z[GMT]")
public class ThreadProjection {
public static final String SERIALIZED_NAME_USER_ID = "userId";
@SerializedName(SERIALIZED_NAME_USER_ID)
private UUID userId;
public static final String SERIALIZED_NAME_INBOX_ID = "inboxId";
@SerializedName(SERIALIZED_NAME_INBOX_ID)
private UUID inboxId;
public static final String SERIALIZED_NAME_TO = "to";
@SerializedName(SERIALIZED_NAME_TO)
private List to = new ArrayList<>();
public static final String SERIALIZED_NAME_BCC = "bcc";
@SerializedName(SERIALIZED_NAME_BCC)
private List bcc = null;
public static final String SERIALIZED_NAME_CC = "cc";
@SerializedName(SERIALIZED_NAME_CC)
private List cc = null;
public static final String SERIALIZED_NAME_ALIAS_ID = "aliasId";
@SerializedName(SERIALIZED_NAME_ALIAS_ID)
private UUID aliasId;
public static final String SERIALIZED_NAME_CREATED_AT = "createdAt";
@SerializedName(SERIALIZED_NAME_CREATED_AT)
private OffsetDateTime createdAt;
public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt";
@SerializedName(SERIALIZED_NAME_UPDATED_AT)
private OffsetDateTime updatedAt;
public static final String SERIALIZED_NAME_SUBJECT = "subject";
@SerializedName(SERIALIZED_NAME_SUBJECT)
private String subject;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private UUID id;
public ThreadProjection userId(UUID userId) {
this.userId = userId;
return this;
}
/**
* User ID
* @return userId
**/
@ApiModelProperty(required = true, value = "User ID")
public UUID getUserId() {
return userId;
}
public void setUserId(UUID userId) {
this.userId = userId;
}
public ThreadProjection inboxId(UUID inboxId) {
this.inboxId = inboxId;
return this;
}
/**
* Inbox ID
* @return inboxId
**/
@ApiModelProperty(required = true, value = "Inbox ID")
public UUID getInboxId() {
return inboxId;
}
public void setInboxId(UUID inboxId) {
this.inboxId = inboxId;
}
public ThreadProjection to(List to) {
this.to = to;
return this;
}
public ThreadProjection addToItem(String toItem) {
this.to.add(toItem);
return this;
}
/**
* To recipients
* @return to
**/
@ApiModelProperty(required = true, value = "To recipients")
public List getTo() {
return to;
}
public void setTo(List to) {
this.to = to;
}
public ThreadProjection bcc(List bcc) {
this.bcc = bcc;
return this;
}
public ThreadProjection addBccItem(String bccItem) {
if (this.bcc == null) {
this.bcc = new ArrayList<>();
}
this.bcc.add(bccItem);
return this;
}
/**
* BCC recipients
* @return bcc
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "BCC recipients")
public List getBcc() {
return bcc;
}
public void setBcc(List bcc) {
this.bcc = bcc;
}
public ThreadProjection cc(List cc) {
this.cc = cc;
return this;
}
public ThreadProjection addCcItem(String ccItem) {
if (this.cc == null) {
this.cc = new ArrayList<>();
}
this.cc.add(ccItem);
return this;
}
/**
* CC recipients
* @return cc
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "CC recipients")
public List getCc() {
return cc;
}
public void setCc(List cc) {
this.cc = cc;
}
public ThreadProjection aliasId(UUID aliasId) {
this.aliasId = aliasId;
return this;
}
/**
* Alias ID
* @return aliasId
**/
@ApiModelProperty(required = true, value = "Alias ID")
public UUID getAliasId() {
return aliasId;
}
public void setAliasId(UUID aliasId) {
this.aliasId = aliasId;
}
public ThreadProjection createdAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Created at DateTime
* @return createdAt
**/
@ApiModelProperty(required = true, value = "Created at DateTime")
public OffsetDateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
}
public ThreadProjection updatedAt(OffsetDateTime updatedAt) {
this.updatedAt = updatedAt;
return this;
}
/**
* Updated at DateTime
* @return updatedAt
**/
@ApiModelProperty(required = true, value = "Updated at DateTime")
public OffsetDateTime getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(OffsetDateTime updatedAt) {
this.updatedAt = updatedAt;
}
public ThreadProjection subject(String subject) {
this.subject = subject;
return this;
}
/**
* Thread subject
* @return subject
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Thread subject")
public String getSubject() {
return subject;
}
public void setSubject(String subject) {
this.subject = subject;
}
public ThreadProjection name(String name) {
this.name = name;
return this;
}
/**
* Name of thread
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Name of thread")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public ThreadProjection id(UUID id) {
this.id = id;
return this;
}
/**
* ID of email thread
* @return id
**/
@ApiModelProperty(required = true, value = "ID of email thread")
public UUID getId() {
return id;
}
public void setId(UUID id) {
this.id = id;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ThreadProjection threadProjection = (ThreadProjection) o;
return Objects.equals(this.userId, threadProjection.userId) &&
Objects.equals(this.inboxId, threadProjection.inboxId) &&
Objects.equals(this.to, threadProjection.to) &&
Objects.equals(this.bcc, threadProjection.bcc) &&
Objects.equals(this.cc, threadProjection.cc) &&
Objects.equals(this.aliasId, threadProjection.aliasId) &&
Objects.equals(this.createdAt, threadProjection.createdAt) &&
Objects.equals(this.updatedAt, threadProjection.updatedAt) &&
Objects.equals(this.subject, threadProjection.subject) &&
Objects.equals(this.name, threadProjection.name) &&
Objects.equals(this.id, threadProjection.id);
}
@Override
public int hashCode() {
return Objects.hash(userId, inboxId, to, bcc, cc, aliasId, createdAt, updatedAt, subject, name, id);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ThreadProjection {\n");
sb.append(" userId: ").append(toIndentedString(userId)).append("\n");
sb.append(" inboxId: ").append(toIndentedString(inboxId)).append("\n");
sb.append(" to: ").append(toIndentedString(to)).append("\n");
sb.append(" bcc: ").append(toIndentedString(bcc)).append("\n");
sb.append(" cc: ").append(toIndentedString(cc)).append("\n");
sb.append(" aliasId: ").append(toIndentedString(aliasId)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
sb.append(" subject: ").append(toIndentedString(subject)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).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 - 2025 Weber Informatics LLC | Privacy Policy