Record Class MailpitLink
java.lang.Object
java.lang.Record
io.micronaut.email.mailpit.client.model.MailpitLink
- Record Components:
url- Link URL.statusCode- HTTP status code.status- HTTP status text.
-
Constructor Summary
ConstructorsConstructorDescriptionMailpitLink(@Nullable String url, int statusCode, @Nullable String status) Creates an instance of aMailpitLinkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Stringstatus()Returns the value of thestatusrecord component.intReturns the value of thestatusCoderecord component.final StringtoString()Returns a string representation of this record class.@Nullable Stringurl()Returns the value of theurlrecord component.
-
Constructor Details
-
MailpitLink
Creates an instance of aMailpitLinkrecord class.- Parameters:
url- the value for theurlrecord componentstatusCode- the value for thestatusCoderecord componentstatus- the value for thestatusrecord 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. -
url
-
statusCode
public int statusCode()Returns the value of thestatusCoderecord component.- Returns:
- the value of the
statusCoderecord component
-
status
-