Class SesConfig
java.lang.Object
io.floci.testcontainers.config.services.AbstractServiceConfig<SesConfig.Builder>
io.floci.testcontainers.config.services.SesConfig
Configuration for SES-specific container settings.
Instances are created via SesConfig.Builder:
SesConfig config = SesConfig.builder()
.smtpHost("localhost")
.smtpPort(587)
.smtpUser("user")
.smtpPass("pass")
.smtpStarttls("REQUIRED")
.build();
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class io.floci.testcontainers.config.services.AbstractServiceConfig
DEFAULT_ENABLED -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyEnvVarsToContainer(org.testcontainers.containers.Container<?> container) Applies this service configuration to the given container by setting the appropriate environment variables.static SesConfig.Builderbuilder()Returns a newSesConfig.Builderfor this configuration.Returns the SMTP server host for email relay, ornullif relay is disabled.Returns the SMTP authentication password, ornull.intReturns the SMTP server port.Returns the STARTTLS mode: DISABLED, OPTIONAL, or REQUIRED.Returns the SMTP authentication username, ornullif no authentication.Returns a newSesConfig.Builderfor this configuration, initialized with the current values of this instance.Methods inherited from class io.floci.testcontainers.config.services.AbstractServiceConfig
applyExposedPortsToContainer, isEnabled
-
Method Details
-
builder
Returns a newSesConfig.Builderfor this configuration.- Returns:
- a new builder
-
toBuilder
Returns a newSesConfig.Builderfor this configuration, initialized with the current values of this instance.- Specified by:
toBuilderin classAbstractServiceConfig<SesConfig.Builder>- Returns:
- a new builder pre-populated with this configuration's values
-
getSmtpHost
Returns the SMTP server host for email relay, ornullif relay is disabled.- Returns:
- the SMTP host, or
null
-
getSmtpPort
public int getSmtpPort()Returns the SMTP server port.- Returns:
- the SMTP port
-
getSmtpUser
Returns the SMTP authentication username, ornullif no authentication.- Returns:
- the SMTP username, or
null
-
getSmtpPass
Returns the SMTP authentication password, ornull.- Returns:
- the SMTP password, or
null
-
getSmtpStarttls
Returns the STARTTLS mode: DISABLED, OPTIONAL, or REQUIRED.- Returns:
- the STARTTLS mode
-
applyEnvVarsToContainer
public void applyEnvVarsToContainer(org.testcontainers.containers.Container<?> container) Description copied from class:AbstractServiceConfigApplies this service configuration to the given container by setting the appropriate environment variables.- Overrides:
applyEnvVarsToContainerin classAbstractServiceConfig<SesConfig.Builder>- Parameters:
container- the container to configure
-