com.mailslurp.models.ImapAccessDetails 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 IMAP
*/
@ApiModel(description = "Access details for inbox using IMAP")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-03T06:03:24.997Z[GMT]")
public class ImapAccessDetails {
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 ImapAccessDetails 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 ImapAccessDetails 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 ImapAccessDetails 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 ImapAccessDetails 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 ImapAccessDetails 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 ImapAccessDetails 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 ImapAccessDetails 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 ImapAccessDetails 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 ImapAccessDetails 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;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ImapAccessDetails imapAccessDetails = (ImapAccessDetails) o;
return Objects.equals(this.secureImapServerHost, imapAccessDetails.secureImapServerHost) &&
Objects.equals(this.secureImapServerPort, imapAccessDetails.secureImapServerPort) &&
Objects.equals(this.secureImapUsername, imapAccessDetails.secureImapUsername) &&
Objects.equals(this.secureImapPassword, imapAccessDetails.secureImapPassword) &&
Objects.equals(this.imapServerHost, imapAccessDetails.imapServerHost) &&
Objects.equals(this.imapServerPort, imapAccessDetails.imapServerPort) &&
Objects.equals(this.imapUsername, imapAccessDetails.imapUsername) &&
Objects.equals(this.imapPassword, imapAccessDetails.imapPassword) &&
Objects.equals(this.imapMailbox, imapAccessDetails.imapMailbox);
}
@Override
public int hashCode() {
return Objects.hash(secureImapServerHost, secureImapServerPort, secureImapUsername, secureImapPassword, imapServerHost, imapServerPort, imapUsername, imapPassword, imapMailbox);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ImapAccessDetails {\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("}");
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 ");
}
}