Constructor and Description |
---|
Builder()
The constructor for the builder.
|
Builder(boolean enableValidation)
The constructor for the builder.
|
Modifier and Type | Method and Description |
---|---|
Email.Builder |
address(String address)
Set the email address and domain fields for the request.
|
Email |
build() |
Email.Builder |
domain(String domain) |
Email.Builder |
hashAddress()
Send the email address as its MD5 hash.
|
public Builder()
public Builder(boolean enableValidation)
enableValidation
- Whether validation should be enabled.public Email.Builder address(String address)
hashAddress()
to instead send it as an MD5 hash.address
- The valid email address used in the transaction.IllegalArgumentException
- when address is not a valid email
address.public Email.Builder hashAddress()
address(String)
will be
sent in plain text. Enable sending it as an MD5 hash instead by
calling this method.public Email.Builder domain(String domain)
domain
- The domain of the email address. This only needs
to be set if the email address is not set.IllegalArgumentException
- when domain is not a valid domain.public Email build()
Email
created from the
fields set on this builder.Copyright © 2019 MaxMind, Inc.. All rights reserved.