Record Class MailpitMessageRelayConfiguration
java.lang.Object
java.lang.Record
io.micronaut.email.mailpit.client.model.MailpitMessageRelayConfiguration
- Record Components:
enabled- Whether relay is enabled.smtpServer- Configured SMTP server.returnPath- Enforced return path.allowedRecipients- Allowed recipient pattern.blockedRecipients- Blocked recipient pattern.overrideFrom- Override From value.preserveMessageIds- Whether original Message-IDs are preserved.recipientAllowlist- Deprecated recipient allowlist value.
public record MailpitMessageRelayConfiguration(boolean enabled, @Nullable String smtpServer, @Nullable String returnPath, @Nullable String allowedRecipients, @Nullable String blockedRecipients, @Nullable String overrideFrom, boolean preserveMessageIds, @Nullable String recipientAllowlist)
extends Record
Mailpit message relay configuration.
- Since:
- 3.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionMailpitMessageRelayConfiguration(boolean enabled, @Nullable String smtpServer, @Nullable String returnPath, @Nullable String allowedRecipients, @Nullable String blockedRecipients, @Nullable String overrideFrom, boolean preserveMessageIds, @Nullable String recipientAllowlist) Creates an instance of aMailpitMessageRelayConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of theallowedRecipientsrecord component.@Nullable StringReturns the value of theblockedRecipientsrecord component.booleanenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of theoverrideFromrecord component.booleanReturns the value of thepreserveMessageIdsrecord component.@Nullable StringReturns the value of therecipientAllowlistrecord component.@Nullable StringReturns the value of thereturnPathrecord component.@Nullable StringReturns the value of thesmtpServerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MailpitMessageRelayConfiguration
public MailpitMessageRelayConfiguration(boolean enabled, @Nullable String smtpServer, @Nullable String returnPath, @Nullable String allowedRecipients, @Nullable String blockedRecipients, @Nullable String overrideFrom, boolean preserveMessageIds, @Nullable String recipientAllowlist) Creates an instance of aMailpitMessageRelayConfigurationrecord class.- Parameters:
enabled- the value for theenabledrecord componentsmtpServer- the value for thesmtpServerrecord componentreturnPath- the value for thereturnPathrecord componentallowedRecipients- the value for theallowedRecipientsrecord componentblockedRecipients- the value for theblockedRecipientsrecord componentoverrideFrom- the value for theoverrideFromrecord componentpreserveMessageIds- the value for thepreserveMessageIdsrecord componentrecipientAllowlist- the value for therecipientAllowlistrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
enabled
-
smtpServer
Returns the value of thesmtpServerrecord component.- Returns:
- the value of the
smtpServerrecord component
-
returnPath
Returns the value of thereturnPathrecord component.- Returns:
- the value of the
returnPathrecord component
-
allowedRecipients
Returns the value of theallowedRecipientsrecord component.- Returns:
- the value of the
allowedRecipientsrecord component
-
blockedRecipients
Returns the value of theblockedRecipientsrecord component.- Returns:
- the value of the
blockedRecipientsrecord component
-
overrideFrom
Returns the value of theoverrideFromrecord component.- Returns:
- the value of the
overrideFromrecord component
-
preserveMessageIds
public boolean preserveMessageIds()Returns the value of thepreserveMessageIdsrecord component.- Returns:
- the value of the
preserveMessageIdsrecord component
-
recipientAllowlist
Returns the value of therecipientAllowlistrecord component.- Returns:
- the value of the
recipientAllowlistrecord component
-