![JAR search and dependency download from the Maven repository](/logo.png)
com.mailslurp.models.SentEmailProjection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mailslurp-client-java Show documentation
Show all versions of mailslurp-client-java Show documentation
Official MailSlurp email API - create real inboxes then send and receive emails and attachments from tests and code.
The newest version!
/*
* 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;
/**
* SentEmailProjection
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-03T06:03:24.997Z[GMT]")
public class SentEmailProjection {
public static final String SERIALIZED_NAME_CREATED_AT = "createdAt";
@SerializedName(SERIALIZED_NAME_CREATED_AT)
private OffsetDateTime createdAt;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private UUID id;
public static final String SERIALIZED_NAME_FROM = "from";
@SerializedName(SERIALIZED_NAME_FROM)
private String from;
public static final String SERIALIZED_NAME_SUBJECT = "subject";
@SerializedName(SERIALIZED_NAME_SUBJECT)
private String subject;
public static final String SERIALIZED_NAME_ATTACHMENTS = "attachments";
@SerializedName(SERIALIZED_NAME_ATTACHMENTS)
private List attachments = new ArrayList<>();
public static final String SERIALIZED_NAME_INBOX_ID = "inboxId";
@SerializedName(SERIALIZED_NAME_INBOX_ID)
private UUID inboxId;
public static final String SERIALIZED_NAME_USER_ID = "userId";
@SerializedName(SERIALIZED_NAME_USER_ID)
private UUID userId;
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 = new ArrayList<>();
public static final String SERIALIZED_NAME_CC = "cc";
@SerializedName(SERIALIZED_NAME_CC)
private List cc = new ArrayList<>();
public static final String SERIALIZED_NAME_BODY_M_D5_HASH = "bodyMD5Hash";
@SerializedName(SERIALIZED_NAME_BODY_M_D5_HASH)
private String bodyMD5Hash;
public static final String SERIALIZED_NAME_VIRTUAL_SEND = "virtualSend";
@SerializedName(SERIALIZED_NAME_VIRTUAL_SEND)
private Boolean virtualSend;
public SentEmailProjection createdAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Get createdAt
* @return createdAt
**/
@ApiModelProperty(required = true, value = "")
public OffsetDateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
}
public SentEmailProjection id(UUID id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@ApiModelProperty(required = true, value = "")
public UUID getId() {
return id;
}
public void setId(UUID id) {
this.id = id;
}
public SentEmailProjection from(String from) {
this.from = from;
return this;
}
/**
* Get from
* @return from
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getFrom() {
return from;
}
public void setFrom(String from) {
this.from = from;
}
public SentEmailProjection subject(String subject) {
this.subject = subject;
return this;
}
/**
* Get subject
* @return subject
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getSubject() {
return subject;
}
public void setSubject(String subject) {
this.subject = subject;
}
public SentEmailProjection attachments(List attachments) {
this.attachments = attachments;
return this;
}
public SentEmailProjection addAttachmentsItem(String attachmentsItem) {
this.attachments.add(attachmentsItem);
return this;
}
/**
* Get attachments
* @return attachments
**/
@ApiModelProperty(required = true, value = "")
public List getAttachments() {
return attachments;
}
public void setAttachments(List attachments) {
this.attachments = attachments;
}
public SentEmailProjection inboxId(UUID inboxId) {
this.inboxId = inboxId;
return this;
}
/**
* Get inboxId
* @return inboxId
**/
@ApiModelProperty(required = true, value = "")
public UUID getInboxId() {
return inboxId;
}
public void setInboxId(UUID inboxId) {
this.inboxId = inboxId;
}
public SentEmailProjection userId(UUID userId) {
this.userId = userId;
return this;
}
/**
* Get userId
* @return userId
**/
@ApiModelProperty(required = true, value = "")
public UUID getUserId() {
return userId;
}
public void setUserId(UUID userId) {
this.userId = userId;
}
public SentEmailProjection to(List to) {
this.to = to;
return this;
}
public SentEmailProjection addToItem(String toItem) {
this.to.add(toItem);
return this;
}
/**
* Get to
* @return to
**/
@ApiModelProperty(required = true, value = "")
public List getTo() {
return to;
}
public void setTo(List to) {
this.to = to;
}
public SentEmailProjection bcc(List bcc) {
this.bcc = bcc;
return this;
}
public SentEmailProjection addBccItem(String bccItem) {
this.bcc.add(bccItem);
return this;
}
/**
* Get bcc
* @return bcc
**/
@ApiModelProperty(required = true, value = "")
public List getBcc() {
return bcc;
}
public void setBcc(List bcc) {
this.bcc = bcc;
}
public SentEmailProjection cc(List cc) {
this.cc = cc;
return this;
}
public SentEmailProjection addCcItem(String ccItem) {
this.cc.add(ccItem);
return this;
}
/**
* Get cc
* @return cc
**/
@ApiModelProperty(required = true, value = "")
public List getCc() {
return cc;
}
public void setCc(List cc) {
this.cc = cc;
}
public SentEmailProjection bodyMD5Hash(String bodyMD5Hash) {
this.bodyMD5Hash = bodyMD5Hash;
return this;
}
/**
* Get bodyMD5Hash
* @return bodyMD5Hash
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getBodyMD5Hash() {
return bodyMD5Hash;
}
public void setBodyMD5Hash(String bodyMD5Hash) {
this.bodyMD5Hash = bodyMD5Hash;
}
public SentEmailProjection virtualSend(Boolean virtualSend) {
this.virtualSend = virtualSend;
return this;
}
/**
* Get virtualSend
* @return virtualSend
**/
@ApiModelProperty(required = true, value = "")
public Boolean getVirtualSend() {
return virtualSend;
}
public void setVirtualSend(Boolean virtualSend) {
this.virtualSend = virtualSend;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SentEmailProjection sentEmailProjection = (SentEmailProjection) o;
return Objects.equals(this.createdAt, sentEmailProjection.createdAt) &&
Objects.equals(this.id, sentEmailProjection.id) &&
Objects.equals(this.from, sentEmailProjection.from) &&
Objects.equals(this.subject, sentEmailProjection.subject) &&
Objects.equals(this.attachments, sentEmailProjection.attachments) &&
Objects.equals(this.inboxId, sentEmailProjection.inboxId) &&
Objects.equals(this.userId, sentEmailProjection.userId) &&
Objects.equals(this.to, sentEmailProjection.to) &&
Objects.equals(this.bcc, sentEmailProjection.bcc) &&
Objects.equals(this.cc, sentEmailProjection.cc) &&
Objects.equals(this.bodyMD5Hash, sentEmailProjection.bodyMD5Hash) &&
Objects.equals(this.virtualSend, sentEmailProjection.virtualSend);
}
@Override
public int hashCode() {
return Objects.hash(createdAt, id, from, subject, attachments, inboxId, userId, to, bcc, cc, bodyMD5Hash, virtualSend);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SentEmailProjection {\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" from: ").append(toIndentedString(from)).append("\n");
sb.append(" subject: ").append(toIndentedString(subject)).append("\n");
sb.append(" attachments: ").append(toIndentedString(attachments)).append("\n");
sb.append(" inboxId: ").append(toIndentedString(inboxId)).append("\n");
sb.append(" userId: ").append(toIndentedString(userId)).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(" bodyMD5Hash: ").append(toIndentedString(bodyMD5Hash)).append("\n");
sb.append(" virtualSend: ").append(toIndentedString(virtualSend)).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