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 Details

  • Constructor Details

    • SendGridConfigurationProperties

      public SendGridConfigurationProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.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

      @NonNull public @NonNull String getApiKey()
      Specified by:
      getApiKey in interface SendGridConfiguration
      Returns:
      The API (Application Programming Interface) keys to authenticate access to SendGrid service.
    • setApiKey

      public void setApiKey(@NonNull @NonNull String apiKey)
      Parameters:
      apiKey - The API (Application Programming Interface) keys to authenticate access to SendGrid service.