com.mailslurp.models.ConnectorImapConnectionDto 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.UUID;
/**
* ConnectorImapConnectionDto
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-03T06:03:24.997Z[GMT]")
public class ConnectorImapConnectionDto {
public static final String SERIALIZED_NAME_CONNECTOR_ID = "connectorId";
@SerializedName(SERIALIZED_NAME_CONNECTOR_ID)
private UUID connectorId;
public static final String SERIALIZED_NAME_IMAP_HOST = "imapHost";
@SerializedName(SERIALIZED_NAME_IMAP_HOST)
private String imapHost;
public static final String SERIALIZED_NAME_IMAP_PORT = "imapPort";
@SerializedName(SERIALIZED_NAME_IMAP_PORT)
private Integer imapPort;
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_SSL = "imapSsl";
@SerializedName(SERIALIZED_NAME_IMAP_SSL)
private Boolean imapSsl;
public static final String SERIALIZED_NAME_SELECT_FOLDER = "selectFolder";
@SerializedName(SERIALIZED_NAME_SELECT_FOLDER)
private String selectFolder;
public static final String SERIALIZED_NAME_SEARCH_TERMS = "searchTerms";
@SerializedName(SERIALIZED_NAME_SEARCH_TERMS)
private String searchTerms;
public static final String SERIALIZED_NAME_ENABLED = "enabled";
@SerializedName(SERIALIZED_NAME_ENABLED)
private Boolean enabled;
public static final String SERIALIZED_NAME_CREATED_AT = "createdAt";
@SerializedName(SERIALIZED_NAME_CREATED_AT)
private OffsetDateTime createdAt;
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private UUID id;
public ConnectorImapConnectionDto connectorId(UUID connectorId) {
this.connectorId = connectorId;
return this;
}
/**
* Get connectorId
* @return connectorId
**/
@ApiModelProperty(required = true, value = "")
public UUID getConnectorId() {
return connectorId;
}
public void setConnectorId(UUID connectorId) {
this.connectorId = connectorId;
}
public ConnectorImapConnectionDto imapHost(String imapHost) {
this.imapHost = imapHost;
return this;
}
/**
* Get imapHost
* @return imapHost
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getImapHost() {
return imapHost;
}
public void setImapHost(String imapHost) {
this.imapHost = imapHost;
}
public ConnectorImapConnectionDto imapPort(Integer imapPort) {
this.imapPort = imapPort;
return this;
}
/**
* Get imapPort
* @return imapPort
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getImapPort() {
return imapPort;
}
public void setImapPort(Integer imapPort) {
this.imapPort = imapPort;
}
public ConnectorImapConnectionDto imapUsername(String imapUsername) {
this.imapUsername = imapUsername;
return this;
}
/**
* Get imapUsername
* @return imapUsername
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getImapUsername() {
return imapUsername;
}
public void setImapUsername(String imapUsername) {
this.imapUsername = imapUsername;
}
public ConnectorImapConnectionDto imapPassword(String imapPassword) {
this.imapPassword = imapPassword;
return this;
}
/**
* Get imapPassword
* @return imapPassword
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getImapPassword() {
return imapPassword;
}
public void setImapPassword(String imapPassword) {
this.imapPassword = imapPassword;
}
public ConnectorImapConnectionDto imapSsl(Boolean imapSsl) {
this.imapSsl = imapSsl;
return this;
}
/**
* Get imapSsl
* @return imapSsl
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Boolean getImapSsl() {
return imapSsl;
}
public void setImapSsl(Boolean imapSsl) {
this.imapSsl = imapSsl;
}
public ConnectorImapConnectionDto selectFolder(String selectFolder) {
this.selectFolder = selectFolder;
return this;
}
/**
* Get selectFolder
* @return selectFolder
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getSelectFolder() {
return selectFolder;
}
public void setSelectFolder(String selectFolder) {
this.selectFolder = selectFolder;
}
public ConnectorImapConnectionDto searchTerms(String searchTerms) {
this.searchTerms = searchTerms;
return this;
}
/**
* Get searchTerms
* @return searchTerms
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getSearchTerms() {
return searchTerms;
}
public void setSearchTerms(String searchTerms) {
this.searchTerms = searchTerms;
}
public ConnectorImapConnectionDto enabled(Boolean enabled) {
this.enabled = enabled;
return this;
}
/**
* Get enabled
* @return enabled
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
public ConnectorImapConnectionDto createdAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Get createdAt
* @return createdAt
**/
@ApiModelProperty(required = true, value = "")
public OffsetDateTime getCreatedAt() {
return createdAt;
}
public void setCreatedAt(OffsetDateTime createdAt) {
this.createdAt = createdAt;
}
public ConnectorImapConnectionDto id(UUID id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@ApiModelProperty(required = true, value = "")
public UUID getId() {
return id;
}
public void setId(UUID id) {
this.id = id;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ConnectorImapConnectionDto connectorImapConnectionDto = (ConnectorImapConnectionDto) o;
return Objects.equals(this.connectorId, connectorImapConnectionDto.connectorId) &&
Objects.equals(this.imapHost, connectorImapConnectionDto.imapHost) &&
Objects.equals(this.imapPort, connectorImapConnectionDto.imapPort) &&
Objects.equals(this.imapUsername, connectorImapConnectionDto.imapUsername) &&
Objects.equals(this.imapPassword, connectorImapConnectionDto.imapPassword) &&
Objects.equals(this.imapSsl, connectorImapConnectionDto.imapSsl) &&
Objects.equals(this.selectFolder, connectorImapConnectionDto.selectFolder) &&
Objects.equals(this.searchTerms, connectorImapConnectionDto.searchTerms) &&
Objects.equals(this.enabled, connectorImapConnectionDto.enabled) &&
Objects.equals(this.createdAt, connectorImapConnectionDto.createdAt) &&
Objects.equals(this.id, connectorImapConnectionDto.id);
}
@Override
public int hashCode() {
return Objects.hash(connectorId, imapHost, imapPort, imapUsername, imapPassword, imapSsl, selectFolder, searchTerms, enabled, createdAt, id);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ConnectorImapConnectionDto {\n");
sb.append(" connectorId: ").append(toIndentedString(connectorId)).append("\n");
sb.append(" imapHost: ").append(toIndentedString(imapHost)).append("\n");
sb.append(" imapPort: ").append(toIndentedString(imapPort)).append("\n");
sb.append(" imapUsername: ").append(toIndentedString(imapUsername)).append("\n");
sb.append(" imapPassword: ").append(toIndentedString(imapPassword)).append("\n");
sb.append(" imapSsl: ").append(toIndentedString(imapSsl)).append("\n");
sb.append(" selectFolder: ").append(toIndentedString(selectFolder)).append("\n");
sb.append(" searchTerms: ").append(toIndentedString(searchTerms)).append("\n");
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" id: ").append(toIndentedString(id)).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 ");
}
}