com.mailslurp.models.DeliveryStatusDto 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;
/**
* DeliveryStatusDto
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-03T06:03:24.997Z[GMT]")
public class DeliveryStatusDto {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private UUID id;
public static final String SERIALIZED_NAME_USER_ID = "userId";
@SerializedName(SERIALIZED_NAME_USER_ID)
private UUID userId;
public static final String SERIALIZED_NAME_SENT_ID = "sentId";
@SerializedName(SERIALIZED_NAME_SENT_ID)
private UUID sentId;
public static final String SERIALIZED_NAME_REMOTE_MTA_IP = "remoteMtaIp";
@SerializedName(SERIALIZED_NAME_REMOTE_MTA_IP)
private String remoteMtaIp;
public static final String SERIALIZED_NAME_INBOX_ID = "inboxId";
@SerializedName(SERIALIZED_NAME_INBOX_ID)
private UUID inboxId;
public static final String SERIALIZED_NAME_REPORTING_MTA = "reportingMta";
@SerializedName(SERIALIZED_NAME_REPORTING_MTA)
private String reportingMta;
public static final String SERIALIZED_NAME_RECIPIENTS = "recipients";
@SerializedName(SERIALIZED_NAME_RECIPIENTS)
private List recipients = null;
public static final String SERIALIZED_NAME_SMTP_RESPONSE = "smtpResponse";
@SerializedName(SERIALIZED_NAME_SMTP_RESPONSE)
private String smtpResponse;
public static final String SERIALIZED_NAME_SMTP_STATUS_CODE = "smtpStatusCode";
@SerializedName(SERIALIZED_NAME_SMTP_STATUS_CODE)
private Integer smtpStatusCode;
public static final String SERIALIZED_NAME_PROCESSING_TIME_MILLIS = "processingTimeMillis";
@SerializedName(SERIALIZED_NAME_PROCESSING_TIME_MILLIS)
private Long processingTimeMillis;
public static final String SERIALIZED_NAME_RECEIVED = "received";
@SerializedName(SERIALIZED_NAME_RECEIVED)
private OffsetDateTime received;
public static final String SERIALIZED_NAME_SUBJECT = "subject";
@SerializedName(SERIALIZED_NAME_SUBJECT)
private String subject;
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 DeliveryStatusDto 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 DeliveryStatusDto 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 DeliveryStatusDto sentId(UUID sentId) {
this.sentId = sentId;
return this;
}
/**
* Get sentId
* @return sentId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public UUID getSentId() {
return sentId;
}
public void setSentId(UUID sentId) {
this.sentId = sentId;
}
public DeliveryStatusDto remoteMtaIp(String remoteMtaIp) {
this.remoteMtaIp = remoteMtaIp;
return this;
}
/**
* Get remoteMtaIp
* @return remoteMtaIp
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getRemoteMtaIp() {
return remoteMtaIp;
}
public void setRemoteMtaIp(String remoteMtaIp) {
this.remoteMtaIp = remoteMtaIp;
}
public DeliveryStatusDto inboxId(UUID inboxId) {
this.inboxId = inboxId;
return this;
}
/**
* Get inboxId
* @return inboxId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public UUID getInboxId() {
return inboxId;
}
public void setInboxId(UUID inboxId) {
this.inboxId = inboxId;
}
public DeliveryStatusDto reportingMta(String reportingMta) {
this.reportingMta = reportingMta;
return this;
}
/**
* Get reportingMta
* @return reportingMta
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getReportingMta() {
return reportingMta;
}
public void setReportingMta(String reportingMta) {
this.reportingMta = reportingMta;
}
public DeliveryStatusDto recipients(List recipients) {
this.recipients = recipients;
return this;
}
public DeliveryStatusDto addRecipientsItem(String recipientsItem) {
if (this.recipients == null) {
this.recipients = new ArrayList<>();
}
this.recipients.add(recipientsItem);
return this;
}
/**
* Get recipients
* @return recipients
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List getRecipients() {
return recipients;
}
public void setRecipients(List recipients) {
this.recipients = recipients;
}
public DeliveryStatusDto smtpResponse(String smtpResponse) {
this.smtpResponse = smtpResponse;
return this;
}
/**
* Get smtpResponse
* @return smtpResponse
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getSmtpResponse() {
return smtpResponse;
}
public void setSmtpResponse(String smtpResponse) {
this.smtpResponse = smtpResponse;
}
public DeliveryStatusDto smtpStatusCode(Integer smtpStatusCode) {
this.smtpStatusCode = smtpStatusCode;
return this;
}
/**
* Get smtpStatusCode
* @return smtpStatusCode
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getSmtpStatusCode() {
return smtpStatusCode;
}
public void setSmtpStatusCode(Integer smtpStatusCode) {
this.smtpStatusCode = smtpStatusCode;
}
public DeliveryStatusDto processingTimeMillis(Long processingTimeMillis) {
this.processingTimeMillis = processingTimeMillis;
return this;
}
/**
* Get processingTimeMillis
* @return processingTimeMillis
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getProcessingTimeMillis() {
return processingTimeMillis;
}
public void setProcessingTimeMillis(Long processingTimeMillis) {
this.processingTimeMillis = processingTimeMillis;
}
public DeliveryStatusDto received(OffsetDateTime received) {
this.received = received;
return this;
}
/**
* Get received
* @return received
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public OffsetDateTime getReceived() {
return received;
}
public void setReceived(OffsetDateTime received) {
this.received = received;
}
public DeliveryStatusDto 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 DeliveryStatusDto 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 DeliveryStatusDto updatedAt(OffsetDateTime updatedAt) {
this.updatedAt = updatedAt;
return this;
}
/**
* Get updatedAt
* @return updatedAt
**/
@ApiModelProperty(required = true, value = "")
public OffsetDateTime getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(OffsetDateTime updatedAt) {
this.updatedAt = updatedAt;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DeliveryStatusDto deliveryStatusDto = (DeliveryStatusDto) o;
return Objects.equals(this.id, deliveryStatusDto.id) &&
Objects.equals(this.userId, deliveryStatusDto.userId) &&
Objects.equals(this.sentId, deliveryStatusDto.sentId) &&
Objects.equals(this.remoteMtaIp, deliveryStatusDto.remoteMtaIp) &&
Objects.equals(this.inboxId, deliveryStatusDto.inboxId) &&
Objects.equals(this.reportingMta, deliveryStatusDto.reportingMta) &&
Objects.equals(this.recipients, deliveryStatusDto.recipients) &&
Objects.equals(this.smtpResponse, deliveryStatusDto.smtpResponse) &&
Objects.equals(this.smtpStatusCode, deliveryStatusDto.smtpStatusCode) &&
Objects.equals(this.processingTimeMillis, deliveryStatusDto.processingTimeMillis) &&
Objects.equals(this.received, deliveryStatusDto.received) &&
Objects.equals(this.subject, deliveryStatusDto.subject) &&
Objects.equals(this.createdAt, deliveryStatusDto.createdAt) &&
Objects.equals(this.updatedAt, deliveryStatusDto.updatedAt);
}
@Override
public int hashCode() {
return Objects.hash(id, userId, sentId, remoteMtaIp, inboxId, reportingMta, recipients, smtpResponse, smtpStatusCode, processingTimeMillis, received, subject, createdAt, updatedAt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DeliveryStatusDto {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" userId: ").append(toIndentedString(userId)).append("\n");
sb.append(" sentId: ").append(toIndentedString(sentId)).append("\n");
sb.append(" remoteMtaIp: ").append(toIndentedString(remoteMtaIp)).append("\n");
sb.append(" inboxId: ").append(toIndentedString(inboxId)).append("\n");
sb.append(" reportingMta: ").append(toIndentedString(reportingMta)).append("\n");
sb.append(" recipients: ").append(toIndentedString(recipients)).append("\n");
sb.append(" smtpResponse: ").append(toIndentedString(smtpResponse)).append("\n");
sb.append(" smtpStatusCode: ").append(toIndentedString(smtpStatusCode)).append("\n");
sb.append(" processingTimeMillis: ").append(toIndentedString(processingTimeMillis)).append("\n");
sb.append(" received: ").append(toIndentedString(received)).append("\n");
sb.append(" subject: ").append(toIndentedString(subject)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).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 ");
}
}