com.mailslurp.models.ImapSmtpAccessDetails 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;
/**
* Access details for inbox using SMTP or IMAP
*/
@ApiModel(description = "Access details for inbox using SMTP or IMAP")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-03T06:03:24.997Z[GMT]")
public class ImapSmtpAccessDetails {
public static final String SERIALIZED_NAME_SECURE_SMTP_SERVER_HOST = "secureSmtpServerHost";
@SerializedName(SERIALIZED_NAME_SECURE_SMTP_SERVER_HOST)
private String secureSmtpServerHost;
public static final String SERIALIZED_NAME_SECURE_SMTP_SERVER_PORT = "secureSmtpServerPort";
@SerializedName(SERIALIZED_NAME_SECURE_SMTP_SERVER_PORT)
private Integer secureSmtpServerPort;
public static final String SERIALIZED_NAME_SECURE_SMTP_USERNAME = "secureSmtpUsername";
@SerializedName(SERIALIZED_NAME_SECURE_SMTP_USERNAME)
private String secureSmtpUsername;
public static final String SERIALIZED_NAME_SECURE_SMTP_PASSWORD = "secureSmtpPassword";
@SerializedName(SERIALIZED_NAME_SECURE_SMTP_PASSWORD)
private String secureSmtpPassword;
public static final String SERIALIZED_NAME_SMTP_SERVER_HOST = "smtpServerHost";
@SerializedName(SERIALIZED_NAME_SMTP_SERVER_HOST)
private String smtpServerHost;
public static final String SERIALIZED_NAME_SMTP_SERVER_PORT = "smtpServerPort";
@SerializedName(SERIALIZED_NAME_SMTP_SERVER_PORT)
private Integer smtpServerPort;
public static final String SERIALIZED_NAME_SMTP_USERNAME = "smtpUsername";
@SerializedName(SERIALIZED_NAME_SMTP_USERNAME)
private String smtpUsername;
public static final String SERIALIZED_NAME_SMTP_PASSWORD = "smtpPassword";
@SerializedName(SERIALIZED_NAME_SMTP_PASSWORD)
private String smtpPassword;
public static final String SERIALIZED_NAME_SECURE_IMAP_SERVER_HOST = "secureImapServerHost";
@SerializedName(SERIALIZED_NAME_SECURE_IMAP_SERVER_HOST)
private String secureImapServerHost;
public static final String SERIALIZED_NAME_SECURE_IMAP_SERVER_PORT = "secureImapServerPort";
@SerializedName(SERIALIZED_NAME_SECURE_IMAP_SERVER_PORT)
private Integer secureImapServerPort;
public static final String SERIALIZED_NAME_SECURE_IMAP_USERNAME = "secureImapUsername";
@SerializedName(SERIALIZED_NAME_SECURE_IMAP_USERNAME)
private String secureImapUsername;
public static final String SERIALIZED_NAME_SECURE_IMAP_PASSWORD = "secureImapPassword";
@SerializedName(SERIALIZED_NAME_SECURE_IMAP_PASSWORD)
private String secureImapPassword;
public static final String SERIALIZED_NAME_IMAP_SERVER_HOST = "imapServerHost";
@SerializedName(SERIALIZED_NAME_IMAP_SERVER_HOST)
private String imapServerHost;
public static final String SERIALIZED_NAME_IMAP_SERVER_PORT = "imapServerPort";
@SerializedName(SERIALIZED_NAME_IMAP_SERVER_PORT)
private Integer imapServerPort;
public static final String SERIALIZED_NAME_IMAP_USERNAME = "imapUsername";
@SerializedName(SERIALIZED_NAME_IMAP_USERNAME)
private String imapUsername;
public static final String SERIALIZED_NAME_IMAP_PASSWORD = "imapPassword";
@SerializedName(SERIALIZED_NAME_IMAP_PASSWORD)
private String imapPassword;
public static final String SERIALIZED_NAME_IMAP_MAILBOX = "imapMailbox";
@SerializedName(SERIALIZED_NAME_IMAP_MAILBOX)
private String imapMailbox;
public static final String SERIALIZED_NAME_MAIL_FROM_DOMAIN = "mailFromDomain";
@SerializedName(SERIALIZED_NAME_MAIL_FROM_DOMAIN)
private String mailFromDomain;
public ImapSmtpAccessDetails secureSmtpServerHost(String secureSmtpServerHost) {
this.secureSmtpServerHost = secureSmtpServerHost;
return this;
}
/**
* Secure TLS SMTP server host domain
* @return secureSmtpServerHost
**/
@ApiModelProperty(required = true, value = "Secure TLS SMTP server host domain")
public String getSecureSmtpServerHost() {
return secureSmtpServerHost;
}
public void setSecureSmtpServerHost(String secureSmtpServerHost) {
this.secureSmtpServerHost = secureSmtpServerHost;
}
public ImapSmtpAccessDetails secureSmtpServerPort(Integer secureSmtpServerPort) {
this.secureSmtpServerPort = secureSmtpServerPort;
return this;
}
/**
* Secure TLS SMTP server host port
* @return secureSmtpServerPort
**/
@ApiModelProperty(required = true, value = "Secure TLS SMTP server host port")
public Integer getSecureSmtpServerPort() {
return secureSmtpServerPort;
}
public void setSecureSmtpServerPort(Integer secureSmtpServerPort) {
this.secureSmtpServerPort = secureSmtpServerPort;
}
public ImapSmtpAccessDetails secureSmtpUsername(String secureSmtpUsername) {
this.secureSmtpUsername = secureSmtpUsername;
return this;
}
/**
* Secure TLS SMTP username for login
* @return secureSmtpUsername
**/
@ApiModelProperty(required = true, value = "Secure TLS SMTP username for login")
public String getSecureSmtpUsername() {
return secureSmtpUsername;
}
public void setSecureSmtpUsername(String secureSmtpUsername) {
this.secureSmtpUsername = secureSmtpUsername;
}
public ImapSmtpAccessDetails secureSmtpPassword(String secureSmtpPassword) {
this.secureSmtpPassword = secureSmtpPassword;
return this;
}
/**
* Secure TLS SMTP password for login
* @return secureSmtpPassword
**/
@ApiModelProperty(required = true, value = "Secure TLS SMTP password for login")
public String getSecureSmtpPassword() {
return secureSmtpPassword;
}
public void setSecureSmtpPassword(String secureSmtpPassword) {
this.secureSmtpPassword = secureSmtpPassword;
}
public ImapSmtpAccessDetails smtpServerHost(String smtpServerHost) {
this.smtpServerHost = smtpServerHost;
return this;
}
/**
* SMTP server host domain
* @return smtpServerHost
**/
@ApiModelProperty(required = true, value = "SMTP server host domain")
public String getSmtpServerHost() {
return smtpServerHost;
}
public void setSmtpServerHost(String smtpServerHost) {
this.smtpServerHost = smtpServerHost;
}
public ImapSmtpAccessDetails smtpServerPort(Integer smtpServerPort) {
this.smtpServerPort = smtpServerPort;
return this;
}
/**
* SMTP server host port
* @return smtpServerPort
**/
@ApiModelProperty(required = true, value = "SMTP server host port")
public Integer getSmtpServerPort() {
return smtpServerPort;
}
public void setSmtpServerPort(Integer smtpServerPort) {
this.smtpServerPort = smtpServerPort;
}
public ImapSmtpAccessDetails smtpUsername(String smtpUsername) {
this.smtpUsername = smtpUsername;
return this;
}
/**
* SMTP username for login
* @return smtpUsername
**/
@ApiModelProperty(required = true, value = "SMTP username for login")
public String getSmtpUsername() {
return smtpUsername;
}
public void setSmtpUsername(String smtpUsername) {
this.smtpUsername = smtpUsername;
}
public ImapSmtpAccessDetails smtpPassword(String smtpPassword) {
this.smtpPassword = smtpPassword;
return this;
}
/**
* SMTP password for login
* @return smtpPassword
**/
@ApiModelProperty(required = true, value = "SMTP password for login")
public String getSmtpPassword() {
return smtpPassword;
}
public void setSmtpPassword(String smtpPassword) {
this.smtpPassword = smtpPassword;
}
public ImapSmtpAccessDetails secureImapServerHost(String secureImapServerHost) {
this.secureImapServerHost = secureImapServerHost;
return this;
}
/**
* Secure TLS IMAP server host domain
* @return secureImapServerHost
**/
@ApiModelProperty(required = true, value = "Secure TLS IMAP server host domain")
public String getSecureImapServerHost() {
return secureImapServerHost;
}
public void setSecureImapServerHost(String secureImapServerHost) {
this.secureImapServerHost = secureImapServerHost;
}
public ImapSmtpAccessDetails secureImapServerPort(Integer secureImapServerPort) {
this.secureImapServerPort = secureImapServerPort;
return this;
}
/**
* Secure TLS IMAP server host port
* @return secureImapServerPort
**/
@ApiModelProperty(required = true, value = "Secure TLS IMAP server host port")
public Integer getSecureImapServerPort() {
return secureImapServerPort;
}
public void setSecureImapServerPort(Integer secureImapServerPort) {
this.secureImapServerPort = secureImapServerPort;
}
public ImapSmtpAccessDetails secureImapUsername(String secureImapUsername) {
this.secureImapUsername = secureImapUsername;
return this;
}
/**
* Secure TLS IMAP username for login
* @return secureImapUsername
**/
@ApiModelProperty(required = true, value = "Secure TLS IMAP username for login")
public String getSecureImapUsername() {
return secureImapUsername;
}
public void setSecureImapUsername(String secureImapUsername) {
this.secureImapUsername = secureImapUsername;
}
public ImapSmtpAccessDetails secureImapPassword(String secureImapPassword) {
this.secureImapPassword = secureImapPassword;
return this;
}
/**
* Secure TLS IMAP password for login
* @return secureImapPassword
**/
@ApiModelProperty(required = true, value = "Secure TLS IMAP password for login")
public String getSecureImapPassword() {
return secureImapPassword;
}
public void setSecureImapPassword(String secureImapPassword) {
this.secureImapPassword = secureImapPassword;
}
public ImapSmtpAccessDetails imapServerHost(String imapServerHost) {
this.imapServerHost = imapServerHost;
return this;
}
/**
* IMAP server host domain
* @return imapServerHost
**/
@ApiModelProperty(required = true, value = "IMAP server host domain")
public String getImapServerHost() {
return imapServerHost;
}
public void setImapServerHost(String imapServerHost) {
this.imapServerHost = imapServerHost;
}
public ImapSmtpAccessDetails imapServerPort(Integer imapServerPort) {
this.imapServerPort = imapServerPort;
return this;
}
/**
* IMAP server host port
* @return imapServerPort
**/
@ApiModelProperty(required = true, value = "IMAP server host port")
public Integer getImapServerPort() {
return imapServerPort;
}
public void setImapServerPort(Integer imapServerPort) {
this.imapServerPort = imapServerPort;
}
public ImapSmtpAccessDetails imapUsername(String imapUsername) {
this.imapUsername = imapUsername;
return this;
}
/**
* IMAP username for login
* @return imapUsername
**/
@ApiModelProperty(required = true, value = "IMAP username for login")
public String getImapUsername() {
return imapUsername;
}
public void setImapUsername(String imapUsername) {
this.imapUsername = imapUsername;
}
public ImapSmtpAccessDetails imapPassword(String imapPassword) {
this.imapPassword = imapPassword;
return this;
}
/**
* IMAP password for login
* @return imapPassword
**/
@ApiModelProperty(required = true, value = "IMAP password for login")
public String getImapPassword() {
return imapPassword;
}
public void setImapPassword(String imapPassword) {
this.imapPassword = imapPassword;
}
public ImapSmtpAccessDetails imapMailbox(String imapMailbox) {
this.imapMailbox = imapMailbox;
return this;
}
/**
* IMAP mailbox to SELECT
* @return imapMailbox
**/
@ApiModelProperty(required = true, value = "IMAP mailbox to SELECT")
public String getImapMailbox() {
return imapMailbox;
}
public void setImapMailbox(String imapMailbox) {
this.imapMailbox = imapMailbox;
}
public ImapSmtpAccessDetails mailFromDomain(String mailFromDomain) {
this.mailFromDomain = mailFromDomain;
return this;
}
/**
* Mail from domain or SMTP HELO value
* @return mailFromDomain
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Mail from domain or SMTP HELO value")
public String getMailFromDomain() {
return mailFromDomain;
}
public void setMailFromDomain(String mailFromDomain) {
this.mailFromDomain = mailFromDomain;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ImapSmtpAccessDetails imapSmtpAccessDetails = (ImapSmtpAccessDetails) o;
return Objects.equals(this.secureSmtpServerHost, imapSmtpAccessDetails.secureSmtpServerHost) &&
Objects.equals(this.secureSmtpServerPort, imapSmtpAccessDetails.secureSmtpServerPort) &&
Objects.equals(this.secureSmtpUsername, imapSmtpAccessDetails.secureSmtpUsername) &&
Objects.equals(this.secureSmtpPassword, imapSmtpAccessDetails.secureSmtpPassword) &&
Objects.equals(this.smtpServerHost, imapSmtpAccessDetails.smtpServerHost) &&
Objects.equals(this.smtpServerPort, imapSmtpAccessDetails.smtpServerPort) &&
Objects.equals(this.smtpUsername, imapSmtpAccessDetails.smtpUsername) &&
Objects.equals(this.smtpPassword, imapSmtpAccessDetails.smtpPassword) &&
Objects.equals(this.secureImapServerHost, imapSmtpAccessDetails.secureImapServerHost) &&
Objects.equals(this.secureImapServerPort, imapSmtpAccessDetails.secureImapServerPort) &&
Objects.equals(this.secureImapUsername, imapSmtpAccessDetails.secureImapUsername) &&
Objects.equals(this.secureImapPassword, imapSmtpAccessDetails.secureImapPassword) &&
Objects.equals(this.imapServerHost, imapSmtpAccessDetails.imapServerHost) &&
Objects.equals(this.imapServerPort, imapSmtpAccessDetails.imapServerPort) &&
Objects.equals(this.imapUsername, imapSmtpAccessDetails.imapUsername) &&
Objects.equals(this.imapPassword, imapSmtpAccessDetails.imapPassword) &&
Objects.equals(this.imapMailbox, imapSmtpAccessDetails.imapMailbox) &&
Objects.equals(this.mailFromDomain, imapSmtpAccessDetails.mailFromDomain);
}
@Override
public int hashCode() {
return Objects.hash(secureSmtpServerHost, secureSmtpServerPort, secureSmtpUsername, secureSmtpPassword, smtpServerHost, smtpServerPort, smtpUsername, smtpPassword, secureImapServerHost, secureImapServerPort, secureImapUsername, secureImapPassword, imapServerHost, imapServerPort, imapUsername, imapPassword, imapMailbox, mailFromDomain);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ImapSmtpAccessDetails {\n");
sb.append(" secureSmtpServerHost: ").append(toIndentedString(secureSmtpServerHost)).append("\n");
sb.append(" secureSmtpServerPort: ").append(toIndentedString(secureSmtpServerPort)).append("\n");
sb.append(" secureSmtpUsername: ").append(toIndentedString(secureSmtpUsername)).append("\n");
sb.append(" secureSmtpPassword: ").append(toIndentedString(secureSmtpPassword)).append("\n");
sb.append(" smtpServerHost: ").append(toIndentedString(smtpServerHost)).append("\n");
sb.append(" smtpServerPort: ").append(toIndentedString(smtpServerPort)).append("\n");
sb.append(" smtpUsername: ").append(toIndentedString(smtpUsername)).append("\n");
sb.append(" smtpPassword: ").append(toIndentedString(smtpPassword)).append("\n");
sb.append(" secureImapServerHost: ").append(toIndentedString(secureImapServerHost)).append("\n");
sb.append(" secureImapServerPort: ").append(toIndentedString(secureImapServerPort)).append("\n");
sb.append(" secureImapUsername: ").append(toIndentedString(secureImapUsername)).append("\n");
sb.append(" secureImapPassword: ").append(toIndentedString(secureImapPassword)).append("\n");
sb.append(" imapServerHost: ").append(toIndentedString(imapServerHost)).append("\n");
sb.append(" imapServerPort: ").append(toIndentedString(imapServerPort)).append("\n");
sb.append(" imapUsername: ").append(toIndentedString(imapUsername)).append("\n");
sb.append(" imapPassword: ").append(toIndentedString(imapPassword)).append("\n");
sb.append(" imapMailbox: ").append(toIndentedString(imapMailbox)).append("\n");
sb.append(" mailFromDomain: ").append(toIndentedString(mailFromDomain)).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 ");
}
}