Record Class EmailPreparationResponse
- Record Components:
domain
- The domain associated with the email preparation.emailSource
- The source of the email.emailWithRandomValue
- A list of emails with their associated random values.validationState
- The validation state of the email preparation.
This record encapsulates the response details for an email preparation process. It includes the domain associated with the email preparation, the source of the email, a list of emails with their associated random values, and the validation state of the email preparation. The domain field represents the domain name that was validated. The emailSource field indicates the source of the email, which could be used to determine the authenticity and origin of the email for validation purposes. The emailWithRandomValue field contains a list of emails along with their associated random values, which are used for validation purposes. The validationState field represents the current state of the email preparation process, indicating whether the validation was successful, failed, or is still in progress.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The field for thedomain
record component.private final EmailSource
The field for theemailSource
record component.private final List
<EmailWithRandomValue> The field for theemailWithRandomValue
record component.private final ValidationState
The field for thevalidationState
record component. -
Constructor Summary
ConstructorsConstructorDescriptionEmailPreparationResponse
(String domain, EmailSource emailSource, List<EmailWithRandomValue> emailWithRandomValue, ValidationState validationState) Creates an instance of aEmailPreparationResponse
record class. -
Method Summary
Modifier and TypeMethodDescriptiondomain()
Returns the value of thedomain
record component.Returns the value of theemailSource
record component.Returns the value of theemailWithRandomValue
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.Returns the value of thevalidationState
record component.
-
Field Details
-
domain
The field for thedomain
record component. -
emailSource
The field for theemailSource
record component. -
emailWithRandomValue
The field for theemailWithRandomValue
record component. -
validationState
The field for thevalidationState
record component.
-
-
Constructor Details
-
EmailPreparationResponse
public EmailPreparationResponse(String domain, EmailSource emailSource, List<EmailWithRandomValue> emailWithRandomValue, ValidationState validationState) Creates an instance of aEmailPreparationResponse
record class.- Parameters:
domain
- the value for thedomain
record componentemailSource
- the value for theemailSource
record componentemailWithRandomValue
- the value for theemailWithRandomValue
record componentvalidationState
- the value for thevalidationState
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
domain
Returns the value of thedomain
record component.- Returns:
- the value of the
domain
record component
-
emailSource
Returns the value of theemailSource
record component.- Returns:
- the value of the
emailSource
record component
-
emailWithRandomValue
Returns the value of theemailWithRandomValue
record component.- Returns:
- the value of the
emailWithRandomValue
record component
-
validationState
Returns the value of thevalidationState
record component.- Returns:
- the value of the
validationState
record component
-