@ConfigurationProperties(value="javamail") public class JavaMailConfigurationProperties extends java.lang.Object implements JavaMailConfiguration
ConfigurationProperties
implementation of JavaMailConfiguration
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
PREFIX
javamail prefix.
|
Constructor and Description |
---|
JavaMailConfigurationProperties() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
If Mailjet integration is enabled.
|
void |
setProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
properties as listed in Appendix A of the JavaMail spec (particularly mail.store.protocol, mail.transport.protocol, mail.host, mail.user, and mail.from).
|
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
enabled
- True if security is enabled@Nullable public java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties
in interface JavaMailConfiguration
public void setProperties(@MapFormat(transformation=FLAT) java.util.Map<java.lang.String,java.lang.Object> properties)
properties
- properties as listed in Appendix A of the JavaMail spec (particularly mail.store.protocol, mail.transport.protocol, mail.host, mail.user, and mail.from)