Record Class MailpitSpamAssassinResponse
java.lang.Object
java.lang.Record
io.micronaut.email.mailpit.client.model.MailpitSpamAssassinResponse
- Record Components:
error- Error message.spam- Whether the message is spam.rules- Matched rules.score- Spam score.
public record MailpitSpamAssassinResponse(@Nullable String error, boolean spam, @Nullable List<MailpitSpamAssassinRule> rules, double score)
extends Record
Mailpit SpamAssassin check response.
- Since:
- 3.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionMailpitSpamAssassinResponse(@Nullable String error, boolean spam, @Nullable List<MailpitSpamAssassinRule> rules, double score) Creates an instance of aMailpitSpamAssassinResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable Stringerror()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.@Nullable List<MailpitSpamAssassinRule> rules()Returns the value of therulesrecord component.doublescore()Returns the value of thescorerecord component.booleanspam()Returns the value of thespamrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MailpitSpamAssassinResponse
public MailpitSpamAssassinResponse(@Nullable String error, boolean spam, @Nullable List<MailpitSpamAssassinRule> rules, double score) Creates an instance of aMailpitSpamAssassinResponserecord class.
-
-
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. -
error
-
spam
-
rules
-
score
-