@Requires(property="postmark.api-token") @ConfigurationProperties(value="postmark") public class PostmarkConfigurationProperties extends java.lang.Object implements PostmarkConfiguration
ConfigurationProperties implementation of PostmarkConfiguration.| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static boolean |
DEFAULT_TRACK_OPENS
The default track opens value.
|
static java.lang.String |
PREFIX
postmark prefix.
|
| Constructor and Description |
|---|
PostmarkConfigurationProperties() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getApiToken() |
TrackLinks |
getTrackLinks() |
boolean |
getTrackOpens() |
boolean |
isEnabled() |
void |
setApiToken(java.lang.String apiToken)
Postmark API token.
|
void |
setEnabled(boolean enabled)
If Postmark integration is enabled.
|
void |
setTrackLinks(TrackLinks trackLinks)
Whether to track the email's links.
|
void |
setTrackOpens(boolean trackOpens)
Whether to track if the email is opened.
|
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public static final boolean DEFAULT_TRACK_OPENS
public boolean isEnabled()
isEnabled in interface io.micronaut.core.util.Toggleablepublic void setEnabled(boolean enabled)
enabled - True if security is enabled@NonNull public java.lang.String getApiToken()
getApiToken in interface PostmarkConfigurationpublic void setApiToken(@NonNull
java.lang.String apiToken)
apiToken - Postmark API token.public void setTrackOpens(boolean trackOpens)
trackOpens - Whether to track if the email is openedpublic void setTrackLinks(@NonNull
TrackLinks trackLinks)
trackLinks - Whether to track the email's linkspublic boolean getTrackOpens()
getTrackOpens in interface PostmarkConfiguration@NonNull public TrackLinks getTrackLinks()
getTrackLinks in interface PostmarkConfiguration