Class SesConfig.Builder
java.lang.Object
io.floci.testcontainers.config.services.AbstractServiceConfigBuilder<SesConfig.Builder,SesConfig>
io.floci.testcontainers.config.services.SesConfig.Builder
- Enclosing class:
- SesConfig
public static class SesConfig.Builder
extends AbstractServiceConfigBuilder<SesConfig.Builder,SesConfig>
Builder for
SesConfig.-
Field Summary
Fields inherited from class io.floci.testcontainers.config.services.AbstractServiceConfigBuilder
enabled -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an immutableSesConfigfrom this builder.Sets the SMTP server host for email relay.Sets the SMTP authentication password.smtpPort(int smtpPort) Sets the SMTP server port.smtpStarttls(String smtpStarttls) Sets the STARTTLS mode: DISABLED, OPTIONAL, or REQUIRED.Sets the SMTP authentication username.Methods inherited from class io.floci.testcontainers.config.services.AbstractServiceConfigBuilder
enabled
-
Method Details
-
smtpHost
Sets the SMTP server host for email relay.nulldisables relay (emails stored only).- Parameters:
smtpHost- the SMTP host, ornullto disable relay- Returns:
- this builder
-
smtpPort
Sets the SMTP server port.- Parameters:
smtpPort- the SMTP port (default 25)- Returns:
- this builder
-
smtpUser
Sets the SMTP authentication username.nulldisables authentication.- Parameters:
smtpUser- the SMTP username, ornull- Returns:
- this builder
-
smtpPass
Sets the SMTP authentication password.- Parameters:
smtpPass- the SMTP password, ornull- Returns:
- this builder
-
smtpStarttls
Sets the STARTTLS mode: DISABLED, OPTIONAL, or REQUIRED.- Parameters:
smtpStarttls- the STARTTLS mode (default "DISABLED")- Returns:
- this builder
-
build
Creates an immutableSesConfigfrom this builder.- Specified by:
buildin classAbstractServiceConfigBuilder<SesConfig.Builder,SesConfig> - Returns:
- the SES configuration
-