Class DomainValidation
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Fully Qualified Domain Name (FQDN) of the formwww.example.com or
example.com
The base validation domain that acts as the suffix of the email addresses that are used to send the emails.A list of contact address for the domain registrant.int
hashCode()
void
setDomainName
(String domainName) Fully Qualified Domain Name (FQDN) of the formwww.example.com or
example.com
void
setValidationDomain
(String validationDomain) The base validation domain that acts as the suffix of the email addresses that are used to send the emails.void
setValidationEmails
(Collection<String> validationEmails) A list of contact address for the domain registrant.toString()
Returns a string representation of this object; useful for testing and debugging.withDomainName
(String domainName) Fully Qualified Domain Name (FQDN) of the formwww.example.com or
example.com
withValidationDomain
(String validationDomain) The base validation domain that acts as the suffix of the email addresses that are used to send the emails.withValidationEmails
(String... validationEmails) A list of contact address for the domain registrant.withValidationEmails
(Collection<String> validationEmails) A list of contact address for the domain registrant.
-
Constructor Details
-
DomainValidation
public DomainValidation()
-
-
Method Details
-
setDomainName
Fully Qualified Domain Name (FQDN) of the form
www.example.com or
example.com
- Parameters:
domainName
- Fully Qualified Domain Name (FQDN) of the formwww.example.com or
example.com
-
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
Fully Qualified Domain Name (FQDN) of the form
www.example.com or
example.com
- Parameters:
domainName
- Fully Qualified Domain Name (FQDN) of the formwww.example.com or
example.com
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getValidationEmails
A list of contact address for the domain registrant.
- Returns:
- A list of contact address for the domain registrant.
-
setValidationEmails
A list of contact address for the domain registrant.
- Parameters:
validationEmails
- A list of contact address for the domain registrant.
-
withValidationEmails
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)
orwithValidationEmails(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
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
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
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
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
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-