Class SesConfig.Builder

Enclosing class:
SesConfig

public static class SesConfig.Builder extends AbstractServiceConfigBuilder<SesConfig.Builder,SesConfig>
Builder for SesConfig.
  • Method Details

    • smtpHost

      public SesConfig.Builder smtpHost(String smtpHost)
      Sets the SMTP server host for email relay. null disables relay (emails stored only).
      Parameters:
      smtpHost - the SMTP host, or null to disable relay
      Returns:
      this builder
    • smtpPort

      public SesConfig.Builder smtpPort(int smtpPort)
      Sets the SMTP server port.
      Parameters:
      smtpPort - the SMTP port (default 25)
      Returns:
      this builder
    • smtpUser

      public SesConfig.Builder smtpUser(String smtpUser)
      Sets the SMTP authentication username. null disables authentication.
      Parameters:
      smtpUser - the SMTP username, or null
      Returns:
      this builder
    • smtpPass

      public SesConfig.Builder smtpPass(String smtpPass)
      Sets the SMTP authentication password.
      Parameters:
      smtpPass - the SMTP password, or null
      Returns:
      this builder
    • smtpStarttls

      public SesConfig.Builder smtpStarttls(String smtpStarttls)
      Sets the STARTTLS mode: DISABLED, OPTIONAL, or REQUIRED.
      Parameters:
      smtpStarttls - the STARTTLS mode (default "DISABLED")
      Returns:
      this builder
    • build

      public SesConfig build()
      Creates an immutable SesConfig from this builder.
      Specified by:
      build in class AbstractServiceConfigBuilder<SesConfig.Builder,SesConfig>
      Returns:
      the SES configuration