Record Class EmailDomainVisit
java.lang.Object
java.lang.Record
com.maxmind.minfraud.response.EmailDomainVisit
- Record Components:
hasRedirect- Whether the domain redirects to another URL. This field is only present if the value is true.lastVisitedOn- The date when the automated visit was last completed.status- The status of the domain based on the automated visit. Possible values are: live, dns_error, network_error, http_error, parked, pre_development.
- All Implemented Interfaces:
JsonSerializable
public record EmailDomainVisit(Boolean hasRedirect, LocalDate lastVisitedOn, EmailDomainVisit.Status status)
extends Record
implements JsonSerializable
This class contains information about an automated visit to the email domain.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe status of an email domain based on an automated visit. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance ofEmailDomainVisitwith no data.EmailDomainVisit(Boolean hasRedirect, LocalDate lastVisitedOn, EmailDomainVisit.Status status) Creates an instance of aEmailDomainVisitrecord 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.Returns the value of thehasRedirectrecord component.Returns the value of thelastVisitedOnrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface JsonSerializable
toJson
-
Constructor Details
-
EmailDomainVisit
public EmailDomainVisit()Constructs an instance ofEmailDomainVisitwith no data. -
EmailDomainVisit
public EmailDomainVisit(Boolean hasRedirect, LocalDate lastVisitedOn, EmailDomainVisit.Status status) Creates an instance of aEmailDomainVisitrecord class.- Parameters:
hasRedirect- the value for thehasRedirectrecord componentlastVisitedOn- the value for thelastVisitedOnrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
hasRedirect
Returns the value of thehasRedirectrecord component.- Returns:
- the value of the
hasRedirectrecord component
-
lastVisitedOn
Returns the value of thelastVisitedOnrecord component.- Returns:
- the value of the
lastVisitedOnrecord component
-
status
-