Record Class EmailPreparationResponse

java.lang.Object
java.lang.Record
com.digicert.validation.methods.email.prepare.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.

public record EmailPreparationResponse(String domain, EmailSource emailSource, List<EmailWithRandomValue> emailWithRandomValue, ValidationState validationState) extends Record
Represents the response for 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 Details

  • Constructor Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • domain

      public String domain()
      Returns the value of the domain record component.
      Returns:
      the value of the domain record component
    • emailSource

      public EmailSource emailSource()
      Returns the value of the emailSource record component.
      Returns:
      the value of the emailSource record component
    • emailWithRandomValue

      public List<EmailWithRandomValue> emailWithRandomValue()
      Returns the value of the emailWithRandomValue record component.
      Returns:
      the value of the emailWithRandomValue record component
    • validationState

      public ValidationState validationState()
      Returns the value of the validationState record component.
      Returns:
      the value of the validationState record component