All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mailslurp.models.CreateConnectorImapConnectionOptions Maven / Gradle / Ivy

Go to download

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;

/**
 * Options for IMAP connection to external email inbox. Allows syncing emails iva IMAP.
 */
@ApiModel(description = "Options for IMAP connection to external email inbox. Allows syncing emails iva IMAP.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-06-03T06:03:24.997Z[GMT]")
public class CreateConnectorImapConnectionOptions {
  public static final String SERIALIZED_NAME_IMAP_SSL = "imapSsl";
  @SerializedName(SERIALIZED_NAME_IMAP_SSL)
  private Boolean imapSsl;

  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_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_IMAP_PORT = "imapPort";
  @SerializedName(SERIALIZED_NAME_IMAP_PORT)
  private Integer imapPort;

  public static final String SERIALIZED_NAME_IMAP_HOST = "imapHost";
  @SerializedName(SERIALIZED_NAME_IMAP_HOST)
  private String imapHost;

  public static final String SERIALIZED_NAME_ENABLED = "enabled";
  @SerializedName(SERIALIZED_NAME_ENABLED)
  private Boolean enabled;


  public CreateConnectorImapConnectionOptions 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 CreateConnectorImapConnectionOptions 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 CreateConnectorImapConnectionOptions 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 CreateConnectorImapConnectionOptions selectFolder(String selectFolder) {
    
    this.selectFolder = selectFolder;
    return this;
  }

   /**
   * Optional folder to select during IMAP connection
   * @return selectFolder
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "Optional folder to select during IMAP connection")

  public String getSelectFolder() {
    return selectFolder;
  }


  public void setSelectFolder(String selectFolder) {
    this.selectFolder = selectFolder;
  }


  public CreateConnectorImapConnectionOptions 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 CreateConnectorImapConnectionOptions imapPort(Integer imapPort) {
    
    this.imapPort = imapPort;
    return this;
  }

   /**
   * IMAP server port
   * @return imapPort
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "IMAP server port")

  public Integer getImapPort() {
    return imapPort;
  }


  public void setImapPort(Integer imapPort) {
    this.imapPort = imapPort;
  }


  public CreateConnectorImapConnectionOptions imapHost(String imapHost) {
    
    this.imapHost = imapHost;
    return this;
  }

   /**
   * IMAP server host
   * @return imapHost
  **/
  @ApiModelProperty(required = true, value = "IMAP server host")

  public String getImapHost() {
    return imapHost;
  }


  public void setImapHost(String imapHost) {
    this.imapHost = imapHost;
  }


  public CreateConnectorImapConnectionOptions enabled(Boolean enabled) {
    
    this.enabled = enabled;
    return this;
  }

   /**
   * IMAP server enabled
   * @return enabled
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "IMAP server enabled")

  public Boolean getEnabled() {
    return enabled;
  }


  public void setEnabled(Boolean enabled) {
    this.enabled = enabled;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CreateConnectorImapConnectionOptions createConnectorImapConnectionOptions = (CreateConnectorImapConnectionOptions) o;
    return Objects.equals(this.imapSsl, createConnectorImapConnectionOptions.imapSsl) &&
        Objects.equals(this.imapUsername, createConnectorImapConnectionOptions.imapUsername) &&
        Objects.equals(this.imapPassword, createConnectorImapConnectionOptions.imapPassword) &&
        Objects.equals(this.selectFolder, createConnectorImapConnectionOptions.selectFolder) &&
        Objects.equals(this.searchTerms, createConnectorImapConnectionOptions.searchTerms) &&
        Objects.equals(this.imapPort, createConnectorImapConnectionOptions.imapPort) &&
        Objects.equals(this.imapHost, createConnectorImapConnectionOptions.imapHost) &&
        Objects.equals(this.enabled, createConnectorImapConnectionOptions.enabled);
  }

  @Override
  public int hashCode() {
    return Objects.hash(imapSsl, imapUsername, imapPassword, selectFolder, searchTerms, imapPort, imapHost, enabled);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CreateConnectorImapConnectionOptions {\n");
    sb.append("    imapSsl: ").append(toIndentedString(imapSsl)).append("\n");
    sb.append("    imapUsername: ").append(toIndentedString(imapUsername)).append("\n");
    sb.append("    imapPassword: ").append(toIndentedString(imapPassword)).append("\n");
    sb.append("    selectFolder: ").append(toIndentedString(selectFolder)).append("\n");
    sb.append("    searchTerms: ").append(toIndentedString(searchTerms)).append("\n");
    sb.append("    imapPort: ").append(toIndentedString(imapPort)).append("\n");
    sb.append("    imapHost: ").append(toIndentedString(imapHost)).append("\n");
    sb.append("    enabled: ").append(toIndentedString(enabled)).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 - 2024 Weber Informatics LLC | Privacy Policy