Class CertificateProps.Builder
java.lang.Object
software.amazon.awscdk.services.certificatemanager.CertificateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CertificateProps>
- Enclosing interface:
CertificateProps
@Stability(Stable)
public static final class CertificateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CertificateProps>
A builder for
CertificateProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.domainName
(String domainName) Sets the value ofCertificateProps.getDomainName()
subjectAlternativeNames
(List<String> subjectAlternativeNames) Sets the value ofCertificateProps.getSubjectAlternativeNames()
validation
(CertificateValidation validation) Sets the value ofCertificateProps.getValidation()
validationDomains
(Map<String, String> validationDomains) Deprecated.use `validation` instead.validationMethod
(ValidationMethod validationMethod) Deprecated.use `validation` instead.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
domainName
Sets the value ofCertificateProps.getDomainName()
- Parameters:
domainName
- Fully-qualified domain name to request a certificate for. This parameter is required. May contain wildcards, such as*.domain.com
.- Returns:
this
-
subjectAlternativeNames
@Stability(Stable) public CertificateProps.Builder subjectAlternativeNames(List<String> subjectAlternativeNames) Sets the value ofCertificateProps.getSubjectAlternativeNames()
- Parameters:
subjectAlternativeNames
- Alternative domain names on your certificate. Use this to register alternative domain names that represent the same site.- Returns:
this
-
validation
Sets the value ofCertificateProps.getValidation()
- Parameters:
validation
- How to validate this certificate.- Returns:
this
-
validationDomains
@Stability(Deprecated) @Deprecated public CertificateProps.Builder validationDomains(Map<String, String> validationDomains) Deprecated.use `validation` instead.Sets the value ofCertificateProps.getValidationDomains()
- Parameters:
validationDomains
- What validation domain to use for every requested domain. Has to be a superdomain of the requested domain.- Returns:
this
-
validationMethod
@Stability(Deprecated) @Deprecated public CertificateProps.Builder validationMethod(ValidationMethod validationMethod) Deprecated.use `validation` instead.Sets the value ofCertificateProps.getValidationMethod()
- Parameters:
validationMethod
- Validation method used to assert domain ownership.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CertificateProps>
- Returns:
- a new instance of
CertificateProps
- Throws:
NullPointerException
- if any required attribute was not provided
-