
com.mailslurp.models.ImapAccessDetails Maven / Gradle / Ivy
/*
* 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-05-03T02:14:29.400Z[GMT]")
public class ImapAccessDetails {
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 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.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(imapServerHost, imapServerPort, imapUsername, imapPassword, imapMailbox);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ImapAccessDetails {\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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy