com.mailslurp.models.InboxReplierEventProjection 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;
/**
* Inbox replier event
*/
@ApiModel(description = "Inbox replier event")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-03T06:03:24.997Z[GMT]")
public class InboxReplierEventProjection {
public static final String SERIALIZED_NAME_CREATED_AT = "createdAt";
@SerializedName(SERIALIZED_NAME_CREATED_AT)
private OffsetDateTime createdAt;
public static final String SERIALIZED_NAME_REPLIER_ID = "replierId";
@SerializedName(SERIALIZED_NAME_REPLIER_ID)
private UUID replierId;
public static final String SERIALIZED_NAME_RECIPIENTS = "recipients";
@SerializedName(SERIALIZED_NAME_RECIPIENTS)
private List recipients = null;
public static final String SERIALIZED_NAME_EMAIL_ID = "emailId";
@SerializedName(SERIALIZED_NAME_EMAIL_ID)
private UUID emailId;
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_SENT_ID = "sentId";
@SerializedName(SERIALIZED_NAME_SENT_ID)
private UUID sentId;
public static final String SERIALIZED_NAME_MESSAGE = "message";
@SerializedName(SERIALIZED_NAME_MESSAGE)
private String message;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private UUID id;
/**
* Gets or Sets status
*/
@JsonAdapter(StatusEnum.Adapter.class)
public enum StatusEnum {
SUCCESS("SUCCESS"),
FAILURE("FAILURE");
private String value;
StatusEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
return null;
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_STATUS = "status";
@SerializedName(SERIALIZED_NAME_STATUS)
private StatusEnum status;
public InboxReplierEventProjection 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 InboxReplierEventProjection replierId(UUID replierId) {
this.replierId = replierId;
return this;
}
/**
* Get replierId
* @return replierId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public UUID getReplierId() {
return replierId;
}
public void setReplierId(UUID replierId) {
this.replierId = replierId;
}
public InboxReplierEventProjection recipients(List recipients) {
this.recipients = recipients;
return this;
}
public InboxReplierEventProjection 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 InboxReplierEventProjection emailId(UUID emailId) {
this.emailId = emailId;
return this;
}
/**
* Get emailId
* @return emailId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public UUID getEmailId() {
return emailId;
}
public void setEmailId(UUID emailId) {
this.emailId = emailId;
}
public InboxReplierEventProjection 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 InboxReplierEventProjection userId(UUID userId) {
this.userId = userId;
return this;
}
/**
* Get userId
* @return userId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public UUID getUserId() {
return userId;
}
public void setUserId(UUID userId) {
this.userId = userId;
}
public InboxReplierEventProjection 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 InboxReplierEventProjection message(String message) {
this.message = message;
return this;
}
/**
* Get message
* @return message
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public InboxReplierEventProjection id(UUID id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public UUID getId() {
return id;
}
public void setId(UUID id) {
this.id = id;
}
public InboxReplierEventProjection status(StatusEnum status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public StatusEnum getStatus() {
return status;
}
public void setStatus(StatusEnum status) {
this.status = status;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
InboxReplierEventProjection inboxReplierEventProjection = (InboxReplierEventProjection) o;
return Objects.equals(this.createdAt, inboxReplierEventProjection.createdAt) &&
Objects.equals(this.replierId, inboxReplierEventProjection.replierId) &&
Objects.equals(this.recipients, inboxReplierEventProjection.recipients) &&
Objects.equals(this.emailId, inboxReplierEventProjection.emailId) &&
Objects.equals(this.inboxId, inboxReplierEventProjection.inboxId) &&
Objects.equals(this.userId, inboxReplierEventProjection.userId) &&
Objects.equals(this.sentId, inboxReplierEventProjection.sentId) &&
Objects.equals(this.message, inboxReplierEventProjection.message) &&
Objects.equals(this.id, inboxReplierEventProjection.id) &&
Objects.equals(this.status, inboxReplierEventProjection.status);
}
@Override
public int hashCode() {
return Objects.hash(createdAt, replierId, recipients, emailId, inboxId, userId, sentId, message, id, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InboxReplierEventProjection {\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" replierId: ").append(toIndentedString(replierId)).append("\n");
sb.append(" recipients: ").append(toIndentedString(recipients)).append("\n");
sb.append(" emailId: ").append(toIndentedString(emailId)).append("\n");
sb.append(" inboxId: ").append(toIndentedString(inboxId)).append("\n");
sb.append(" userId: ").append(toIndentedString(userId)).append("\n");
sb.append(" sentId: ").append(toIndentedString(sentId)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).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 ");
}
}