@Requires(property="sendgrid.api-key") @ConfigurationProperties(value="sendgrid") public class SendGridConfigurationProperties extends java.lang.Object implements SendGridConfiguration
ConfigurationProperties implementation of SendGridConfiguration.| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
PREFIX
sendgrid prefix.
|
| Constructor and Description |
|---|
SendGridConfigurationProperties() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getApiKey() |
boolean |
isEnabled() |
void |
setApiKey(java.lang.String apiKey) |
void |
setEnabled(boolean enabled)
If SendGrid integration is enabled.
|
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
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 getApiKey()
getApiKey in interface SendGridConfigurationpublic void setApiKey(@NonNull
java.lang.String apiKey)
apiKey - The API (Application Programming Interface) keys to authenticate access to SendGrid service.