Record Class EmailDomain
java.lang.Object
java.lang.Record
com.maxmind.minfraud.response.EmailDomain
- Record Components:
classification- A classification of the email domain. Possible values are: business, education, government, isp_email.firstSeen- The date an email domain was first seen by MaxMind.risk- A risk score associated with the email domain, ranging from 0.01 to 99. Higher scores indicate higher risk.visit- AnEmailDomainVisitobject containing information about an automated visit to the email domain.volume- The activity on the email domain across the minFraud network, expressed in sightings per million. This value ranges from 0.001 to 1,000,000.
- All Implemented Interfaces:
JsonSerializable
public record EmailDomain(EmailDomain.Classification classification, LocalDate firstSeen, Double risk, EmailDomainVisit visit, Double volume)
extends Record
implements JsonSerializable
This class contains minFraud response data related to the email domain.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe classification of an email domain. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance ofEmailDomainwith no data.EmailDomain(EmailDomain.Classification classification, LocalDate firstSeen, Double risk, EmailDomainVisit visit, Double volume) Compact canonical constructor that sets defaults for null values. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassificationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefirstSeenrecord component.Deprecated, for removal: This API element is subject to removal in a future version.final inthashCode()Returns a hash code value for this object.risk()Returns the value of theriskrecord component.final StringtoString()Returns a string representation of this record class.visit()Returns the value of thevisitrecord component.volume()Returns the value of thevolumerecord component.Methods inherited from interface JsonSerializable
toJson
-
Constructor Details
-
EmailDomain
public EmailDomain(EmailDomain.Classification classification, LocalDate firstSeen, Double risk, EmailDomainVisit visit, Double volume) Compact canonical constructor that sets defaults for null values. -
EmailDomain
public EmailDomain()Constructs an instance ofEmailDomainwith no data.
-
-
Method Details
-
getFirstSeen
Deprecated, for removal: This API element is subject to removal in a future version.UsefirstSeen()instead. This method will be removed in 5.0.0.- Returns:
- A date to identify the date an email domain was first seen by MaxMind.
-
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). -
classification
Returns the value of theclassificationrecord component.- Returns:
- the value of the
classificationrecord component
-
firstSeen
-
risk
-
visit
-
volume
-
firstSeen()instead.