Record Class MailpitListUnsubscribe
java.lang.Object
java.lang.Record
io.micronaut.email.mailpit.client.model.MailpitListUnsubscribe
- Record Components:
header- List-Unsubscribe header.links- Detected links.errors- Validation errors.headerPost- List-Unsubscribe-Post header.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable Stringerrors()Returns the value of theerrorsrecord component.final inthashCode()Returns a hash code value for this object.@Nullable Stringheader()Returns the value of theheaderrecord component.@Nullable StringReturns the value of theheaderPostrecord component.links()Returns the value of thelinksrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MailpitListUnsubscribe
public MailpitListUnsubscribe(@Nullable String header, @Nullable List<String> links, @Nullable String errors, @Nullable String headerPost) Creates an instance of aMailpitListUnsubscriberecord class.- Parameters:
header- the value for theheaderrecord componentlinks- the value for thelinksrecord componenterrors- the value for theerrorsrecord componentheaderPost- the value for theheaderPostrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
header
-
links
-
errors
-
headerPost
Returns the value of theheaderPostrecord component.- Returns:
- the value of the
headerPostrecord component
-