Package io.micronaut.email.mailjet
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
@NonNull String
@NonNull String
boolean
void
Mailjet API Key.void
setApiSecret
(@NonNull String apiSecret) Mailjet API Secret.void
setEnabled
(boolean enabled) If Mailjet integration is enabled.void
setVersion
(@NonNull String version) Mailjet API Version.
-
Field Details
-
PREFIX
mailjet prefix.- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
DEFAULT_VERSION
The default version.- See Also:
-
-
Constructor Details
-
MailjetConfigurationProperties
public MailjetConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.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
- Specified by:
getVersion
in interfaceMailjetConfiguration
- Returns:
- Mailjet API Version
-
setVersion
Mailjet API Version. Default value: `"v3.1"`- Parameters:
version
- Mailjet API Version
-
getApiKey
- Specified by:
getApiKey
in interfaceMailjetConfiguration
- Returns:
- Mailjet API Key
-
setApiKey
Mailjet API Key.- Parameters:
apiKey
- Mailjet API Key.
-
getApiSecret
- Specified by:
getApiSecret
in interfaceMailjetConfiguration
- Returns:
- Mailjet API Secret
-
setApiSecret
Mailjet API Secret.- Parameters:
apiSecret
- Mailjet API Secret
-