Package io.micronaut.email.sendgrid
Class SendGridConfigurationProperties
java.lang.Object
io.micronaut.email.sendgrid.SendGridConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,SendGridConfiguration
@Requires(property="sendgrid.api-key")
@ConfigurationProperties("sendgrid")
public class SendGridConfigurationProperties
extends Object
implements SendGridConfiguration
ConfigurationProperties
implementation of SendGridConfiguration
.- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enable value.static final String
sendgrid prefix. -
Constructor Summary
-
Method Summary
-
Field Details
-
PREFIX
sendgrid prefix.- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
-
Constructor Details
-
SendGridConfigurationProperties
public SendGridConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) If SendGrid integration is enabled. Default value true- Parameters:
enabled
- True if security is enabled
-
getApiKey
- Specified by:
getApiKey
in interfaceSendGridConfiguration
- Returns:
- The API (Application Programming Interface) keys to authenticate access to SendGrid service.
-
setApiKey
- Parameters:
apiKey
- The API (Application Programming Interface) keys to authenticate access to SendGrid service.
-