![JAR search and dependency download from the Maven repository](/logo.png)
com.mailslurp.models.ImapServerSearchOptions 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.HashMap;
import java.util.List;
import java.util.Map;
/**
* IMAP server search options
*/
@ApiModel(description = "IMAP server search options")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-03T06:03:24.997Z[GMT]")
public class ImapServerSearchOptions {
public static final String SERIALIZED_NAME_SEQ_NUM = "seqNum";
@SerializedName(SERIALIZED_NAME_SEQ_NUM)
private String seqNum;
public static final String SERIALIZED_NAME_UID = "uid";
@SerializedName(SERIALIZED_NAME_UID)
private String uid;
public static final String SERIALIZED_NAME_SINCE = "since";
@SerializedName(SERIALIZED_NAME_SINCE)
private OffsetDateTime since;
public static final String SERIALIZED_NAME_BEFORE = "before";
@SerializedName(SERIALIZED_NAME_BEFORE)
private OffsetDateTime before;
public static final String SERIALIZED_NAME_SENT_SINCE = "sentSince";
@SerializedName(SERIALIZED_NAME_SENT_SINCE)
private OffsetDateTime sentSince;
public static final String SERIALIZED_NAME_SENT_BEFORE = "sentBefore";
@SerializedName(SERIALIZED_NAME_SENT_BEFORE)
private OffsetDateTime sentBefore;
public static final String SERIALIZED_NAME_HEADER = "header";
@SerializedName(SERIALIZED_NAME_HEADER)
private Map> header = null;
public static final String SERIALIZED_NAME_BODY = "body";
@SerializedName(SERIALIZED_NAME_BODY)
private List body = null;
public static final String SERIALIZED_NAME_TEXT = "text";
@SerializedName(SERIALIZED_NAME_TEXT)
private List text = null;
public static final String SERIALIZED_NAME_WITH_FLAGS = "withFlags";
@SerializedName(SERIALIZED_NAME_WITH_FLAGS)
private List withFlags = null;
public static final String SERIALIZED_NAME_WITHOUT_FLAGS = "withoutFlags";
@SerializedName(SERIALIZED_NAME_WITHOUT_FLAGS)
private List withoutFlags = null;
public ImapServerSearchOptions seqNum(String seqNum) {
this.seqNum = seqNum;
return this;
}
/**
* Get seqNum
* @return seqNum
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getSeqNum() {
return seqNum;
}
public void setSeqNum(String seqNum) {
this.seqNum = seqNum;
}
public ImapServerSearchOptions uid(String uid) {
this.uid = uid;
return this;
}
/**
* Get uid
* @return uid
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getUid() {
return uid;
}
public void setUid(String uid) {
this.uid = uid;
}
public ImapServerSearchOptions since(OffsetDateTime since) {
this.since = since;
return this;
}
/**
* Get since
* @return since
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public OffsetDateTime getSince() {
return since;
}
public void setSince(OffsetDateTime since) {
this.since = since;
}
public ImapServerSearchOptions before(OffsetDateTime before) {
this.before = before;
return this;
}
/**
* Get before
* @return before
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public OffsetDateTime getBefore() {
return before;
}
public void setBefore(OffsetDateTime before) {
this.before = before;
}
public ImapServerSearchOptions sentSince(OffsetDateTime sentSince) {
this.sentSince = sentSince;
return this;
}
/**
* Get sentSince
* @return sentSince
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public OffsetDateTime getSentSince() {
return sentSince;
}
public void setSentSince(OffsetDateTime sentSince) {
this.sentSince = sentSince;
}
public ImapServerSearchOptions sentBefore(OffsetDateTime sentBefore) {
this.sentBefore = sentBefore;
return this;
}
/**
* Get sentBefore
* @return sentBefore
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public OffsetDateTime getSentBefore() {
return sentBefore;
}
public void setSentBefore(OffsetDateTime sentBefore) {
this.sentBefore = sentBefore;
}
public ImapServerSearchOptions header(Map> header) {
this.header = header;
return this;
}
public ImapServerSearchOptions putHeaderItem(String key, List headerItem) {
if (this.header == null) {
this.header = new HashMap<>();
}
this.header.put(key, headerItem);
return this;
}
/**
* Get header
* @return header
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Map> getHeader() {
return header;
}
public void setHeader(Map> header) {
this.header = header;
}
public ImapServerSearchOptions body(List body) {
this.body = body;
return this;
}
public ImapServerSearchOptions addBodyItem(String bodyItem) {
if (this.body == null) {
this.body = new ArrayList<>();
}
this.body.add(bodyItem);
return this;
}
/**
* Get body
* @return body
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List getBody() {
return body;
}
public void setBody(List body) {
this.body = body;
}
public ImapServerSearchOptions text(List text) {
this.text = text;
return this;
}
public ImapServerSearchOptions addTextItem(String textItem) {
if (this.text == null) {
this.text = new ArrayList<>();
}
this.text.add(textItem);
return this;
}
/**
* Get text
* @return text
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List getText() {
return text;
}
public void setText(List text) {
this.text = text;
}
public ImapServerSearchOptions withFlags(List withFlags) {
this.withFlags = withFlags;
return this;
}
public ImapServerSearchOptions addWithFlagsItem(String withFlagsItem) {
if (this.withFlags == null) {
this.withFlags = new ArrayList<>();
}
this.withFlags.add(withFlagsItem);
return this;
}
/**
* Get withFlags
* @return withFlags
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List getWithFlags() {
return withFlags;
}
public void setWithFlags(List withFlags) {
this.withFlags = withFlags;
}
public ImapServerSearchOptions withoutFlags(List withoutFlags) {
this.withoutFlags = withoutFlags;
return this;
}
public ImapServerSearchOptions addWithoutFlagsItem(String withoutFlagsItem) {
if (this.withoutFlags == null) {
this.withoutFlags = new ArrayList<>();
}
this.withoutFlags.add(withoutFlagsItem);
return this;
}
/**
* Get withoutFlags
* @return withoutFlags
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List getWithoutFlags() {
return withoutFlags;
}
public void setWithoutFlags(List withoutFlags) {
this.withoutFlags = withoutFlags;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ImapServerSearchOptions imapServerSearchOptions = (ImapServerSearchOptions) o;
return Objects.equals(this.seqNum, imapServerSearchOptions.seqNum) &&
Objects.equals(this.uid, imapServerSearchOptions.uid) &&
Objects.equals(this.since, imapServerSearchOptions.since) &&
Objects.equals(this.before, imapServerSearchOptions.before) &&
Objects.equals(this.sentSince, imapServerSearchOptions.sentSince) &&
Objects.equals(this.sentBefore, imapServerSearchOptions.sentBefore) &&
Objects.equals(this.header, imapServerSearchOptions.header) &&
Objects.equals(this.body, imapServerSearchOptions.body) &&
Objects.equals(this.text, imapServerSearchOptions.text) &&
Objects.equals(this.withFlags, imapServerSearchOptions.withFlags) &&
Objects.equals(this.withoutFlags, imapServerSearchOptions.withoutFlags);
}
@Override
public int hashCode() {
return Objects.hash(seqNum, uid, since, before, sentSince, sentBefore, header, body, text, withFlags, withoutFlags);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ImapServerSearchOptions {\n");
sb.append(" seqNum: ").append(toIndentedString(seqNum)).append("\n");
sb.append(" uid: ").append(toIndentedString(uid)).append("\n");
sb.append(" since: ").append(toIndentedString(since)).append("\n");
sb.append(" before: ").append(toIndentedString(before)).append("\n");
sb.append(" sentSince: ").append(toIndentedString(sentSince)).append("\n");
sb.append(" sentBefore: ").append(toIndentedString(sentBefore)).append("\n");
sb.append(" header: ").append(toIndentedString(header)).append("\n");
sb.append(" body: ").append(toIndentedString(body)).append("\n");
sb.append(" text: ").append(toIndentedString(text)).append("\n");
sb.append(" withFlags: ").append(toIndentedString(withFlags)).append("\n");
sb.append(" withoutFlags: ").append(toIndentedString(withoutFlags)).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