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

io.github.qsy7.data.pipe.modules.email.EmailSourceConfiguration Maven / Gradle / Ivy

// Generated by delombok at Fri Apr 08 15:27:40 EDT 2022
package io.github.qsy7.data.pipe.modules.email;

import io.github.qsy7.data.pipe.api.sink.AbstractSourceConfiguration;
import io.github.qsy7.email.api.model.PrivateEmailAccount;

public class EmailSourceConfiguration extends AbstractSourceConfiguration {
  protected String folderName;
  protected PrivateEmailAccount emailAccount;

  public EmailSourceConfiguration(final String folderName, final PrivateEmailAccount emailAccount) {
    super(EmailSource.class);
    this.folderName = folderName;
    this.emailAccount = emailAccount;
  }

  @java.lang.SuppressWarnings("all")
  public String getFolderName() {
    return this.folderName;
  }

  @java.lang.SuppressWarnings("all")
  public PrivateEmailAccount getEmailAccount() {
    return this.emailAccount;
  }

  @java.lang.SuppressWarnings("all")
  public void setFolderName(final String folderName) {
    this.folderName = folderName;
  }

  @java.lang.SuppressWarnings("all")
  public void setEmailAccount(final PrivateEmailAccount emailAccount) {
    this.emailAccount = emailAccount;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public boolean equals(final java.lang.Object o) {
    if (o == this) return true;
    if (!(o instanceof EmailSourceConfiguration)) return false;
    final EmailSourceConfiguration other = (EmailSourceConfiguration) o;
    if (!other.canEqual((java.lang.Object) this)) return false;
    final java.lang.Object this$folderName = this.getFolderName();
    final java.lang.Object other$folderName = other.getFolderName();
    if (this$folderName == null ? other$folderName != null : !this$folderName.equals(other$folderName)) return false;
    final java.lang.Object this$emailAccount = this.getEmailAccount();
    final java.lang.Object other$emailAccount = other.getEmailAccount();
    if (this$emailAccount == null ? other$emailAccount != null : !this$emailAccount.equals(other$emailAccount)) return false;
    return true;
  }

  @java.lang.SuppressWarnings("all")
  protected boolean canEqual(final java.lang.Object other) {
    return other instanceof EmailSourceConfiguration;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public int hashCode() {
    final int PRIME = 59;
    int result = 1;
    final java.lang.Object $folderName = this.getFolderName();
    result = result * PRIME + ($folderName == null ? 43 : $folderName.hashCode());
    final java.lang.Object $emailAccount = this.getEmailAccount();
    result = result * PRIME + ($emailAccount == null ? 43 : $emailAccount.hashCode());
    return result;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  public java.lang.String toString() {
    return "EmailSourceConfiguration(folderName=" + this.folderName + ", emailAccount=" + this.emailAccount + ")";
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy