Class MailjetConfigurationProperties

java.lang.Object
io.micronaut.email.mailjet.MailjetConfigurationProperties
All Implemented Interfaces:
io.micronaut.core.util.Toggleable, MailjetConfiguration

@Requires(property="mailjet.api-key") @Requires(property="mailjet.api-secret") @ConfigurationProperties("mailjet") public class MailjetConfigurationProperties extends Object implements MailjetConfiguration
ConfigurationProperties implementation of MailjetConfiguration.
Since:
1.0.0
Author:
Sergio del Amo
  • Field Details

  • Constructor Details

    • MailjetConfigurationProperties

      public MailjetConfigurationProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
    • setEnabled

      public void setEnabled(boolean enabled)
      If Mailjet integration is enabled. Default value: `true`
      Parameters:
      enabled - True if security is enabled
    • getVersion

      @NonNull public @NonNull String getVersion()
      Specified by:
      getVersion in interface MailjetConfiguration
      Returns:
      Mailjet API Version
    • setVersion

      public void setVersion(@NonNull @NonNull String version)
      Mailjet API Version. Default value: `"v3.1"`
      Parameters:
      version - Mailjet API Version
    • getApiKey

      @NonNull public @NonNull String getApiKey()
      Specified by:
      getApiKey in interface MailjetConfiguration
      Returns:
      Mailjet API Key
    • setApiKey

      public void setApiKey(@NonNull @NonNull String apiKey)
      Mailjet API Key.
      Parameters:
      apiKey - Mailjet API Key.
    • getApiSecret

      @NonNull public @NonNull String getApiSecret()
      Specified by:
      getApiSecret in interface MailjetConfiguration
      Returns:
      Mailjet API Secret
    • setApiSecret

      public void setApiSecret(@NonNull @NonNull String apiSecret)
      Mailjet API Secret.
      Parameters:
      apiSecret - Mailjet API Secret