Class CfnCertificate.DomainValidationOptionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.certificatemanager.CfnCertificate.DomainValidationOptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCertificate.DomainValidationOptionProperty>
- Enclosing interface:
CfnCertificate.DomainValidationOptionProperty
@Stability(Stable)
public static final class CfnCertificate.DomainValidationOptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCertificate.DomainValidationOptionProperty>
A builder for
CfnCertificate.DomainValidationOptionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.domainName
(String domainName) Sets the value ofCfnCertificate.DomainValidationOptionProperty.getDomainName()
hostedZoneId
(String hostedZoneId) Sets the value ofCfnCertificate.DomainValidationOptionProperty.getHostedZoneId()
validationDomain
(String validationDomain) Sets the value ofCfnCertificate.DomainValidationOptionProperty.getValidationDomain()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainName
@Stability(Stable) public CfnCertificate.DomainValidationOptionProperty.Builder domainName(String domainName) Sets the value ofCfnCertificate.DomainValidationOptionProperty.getDomainName()
- Parameters:
domainName
- A fully qualified domain name (FQDN) in the certificate request. This parameter is required.- Returns:
this
-
hostedZoneId
@Stability(Stable) public CfnCertificate.DomainValidationOptionProperty.Builder hostedZoneId(String hostedZoneId) Sets the value ofCfnCertificate.DomainValidationOptionProperty.getHostedZoneId()
- Parameters:
hostedZoneId
- TheHostedZoneId
option, which is available if you are using Route 53 as your domain registrar, causes ACM to add your CNAME to the domain record. Your list ofDomainValidationOptions
must contain one and only one of the domain-validation options, and theHostedZoneId
can be used only whenDNS
is specified as your validation method.Use the Route 53
ListHostedZones
API to discover IDs for available hosted zones.This option is required for publicly trusted certificates.
The
ListHostedZones
API returns IDs in the format "/hostedzone/Z111111QQQQQQQ", but CloudFormation requires the IDs to be in the format "Z111111QQQQQQQ".When you change your
DomainValidationOptions
, a new resource is created.- Returns:
this
-
validationDomain
@Stability(Stable) public CfnCertificate.DomainValidationOptionProperty.Builder validationDomain(String validationDomain) Sets the value ofCfnCertificate.DomainValidationOptionProperty.getValidationDomain()
- Parameters:
validationDomain
- The domain name to which you want ACM to send validation emails. This domain name is the suffix of the email addresses that you want ACM to use. This must be the same as theDomainName
value or a superdomain of theDomainName
value. For example, if you request a certificate fortesting.example.com
, you can specifyexample.com
as this value. In that case, ACM sends domain validation emails to the following five addresses:- admin@example.com
- administrator@example.com
- hostmaster@example.com
- postmaster@example.com
- webmaster@example.com
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCertificate.DomainValidationOptionProperty>
- Returns:
- a new instance of
CfnCertificate.DomainValidationOptionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-