![JAR search and dependency download from the Maven repository](/logo.png)
com.mailslurp.models.SmtpAccessDetails 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 SMTP
*/
@ApiModel(description = "Access details for inbox using SMTP")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-05-03T02:14:29.400Z[GMT]")
public class SmtpAccessDetails {
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_MAIL_FROM_DOMAIN = "mailFromDomain";
@SerializedName(SERIALIZED_NAME_MAIL_FROM_DOMAIN)
private String mailFromDomain;
public SmtpAccessDetails 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 SmtpAccessDetails 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 SmtpAccessDetails 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 SmtpAccessDetails 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 SmtpAccessDetails 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 SmtpAccessDetails 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 SmtpAccessDetails 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 SmtpAccessDetails 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 SmtpAccessDetails 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;
}
SmtpAccessDetails smtpAccessDetails = (SmtpAccessDetails) o;
return Objects.equals(this.secureSmtpServerHost, smtpAccessDetails.secureSmtpServerHost) &&
Objects.equals(this.secureSmtpServerPort, smtpAccessDetails.secureSmtpServerPort) &&
Objects.equals(this.secureSmtpUsername, smtpAccessDetails.secureSmtpUsername) &&
Objects.equals(this.secureSmtpPassword, smtpAccessDetails.secureSmtpPassword) &&
Objects.equals(this.smtpServerHost, smtpAccessDetails.smtpServerHost) &&
Objects.equals(this.smtpServerPort, smtpAccessDetails.smtpServerPort) &&
Objects.equals(this.smtpUsername, smtpAccessDetails.smtpUsername) &&
Objects.equals(this.smtpPassword, smtpAccessDetails.smtpPassword) &&
Objects.equals(this.mailFromDomain, smtpAccessDetails.mailFromDomain);
}
@Override
public int hashCode() {
return Objects.hash(secureSmtpServerHost, secureSmtpServerPort, secureSmtpUsername, secureSmtpPassword, smtpServerHost, smtpServerPort, smtpUsername, smtpPassword, mailFromDomain);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SmtpAccessDetails {\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(" 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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy