Class DomainValidation

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class DomainValidation
    extends Object
    implements Serializable, Cloneable

    Structure that contains the domain name, the base validation domain to which validation email is sent, and the email addresses used to validate the domain identity.

    See Also:
    Serialized Form
    • Constructor Detail

      • DomainValidation

        public DomainValidation()
    • Method Detail

      • setDomainName

        public void setDomainName​(String domainName)

        Fully Qualified Domain Name (FQDN) of the form www.example.com or example.com

        Parameters:
        domainName - Fully Qualified Domain Name (FQDN) of the form www.example.com or example.com
      • getDomainName

        public String getDomainName()

        Fully Qualified Domain Name (FQDN) of the form www.example.com or example.com

        Returns:
        Fully Qualified Domain Name (FQDN) of the form www.example.com or example.com
      • withDomainName

        public DomainValidation withDomainName​(String domainName)

        Fully Qualified Domain Name (FQDN) of the form www.example.com or example.com

        Parameters:
        domainName - Fully Qualified Domain Name (FQDN) of the form www.example.com or example.com
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getValidationEmails

        public List<String> getValidationEmails()

        A list of contact address for the domain registrant.

        Returns:
        A list of contact address for the domain registrant.
      • setValidationEmails

        public void setValidationEmails​(Collection<String> validationEmails)

        A list of contact address for the domain registrant.

        Parameters:
        validationEmails - A list of contact address for the domain registrant.
      • withValidationEmails

        public DomainValidation withValidationEmails​(String... validationEmails)

        A list of contact address for the domain registrant.

        NOTE: This method appends the values to the existing list (if any). Use setValidationEmails(java.util.Collection) or withValidationEmails(java.util.Collection) if you want to override the existing values.

        Parameters:
        validationEmails - A list of contact address for the domain registrant.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withValidationEmails

        public DomainValidation withValidationEmails​(Collection<String> validationEmails)

        A list of contact address for the domain registrant.

        Parameters:
        validationEmails - A list of contact address for the domain registrant.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setValidationDomain

        public void setValidationDomain​(String validationDomain)

        The base validation domain that acts as the suffix of the email addresses that are used to send the emails.

        Parameters:
        validationDomain - The base validation domain that acts as the suffix of the email addresses that are used to send the emails.
      • getValidationDomain

        public String getValidationDomain()

        The base validation domain that acts as the suffix of the email addresses that are used to send the emails.

        Returns:
        The base validation domain that acts as the suffix of the email addresses that are used to send the emails.
      • withValidationDomain

        public DomainValidation withValidationDomain​(String validationDomain)

        The base validation domain that acts as the suffix of the email addresses that are used to send the emails.

        Parameters:
        validationDomain - The base validation domain that acts as the suffix of the email addresses that are used to send the emails.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object