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.certificateName
(String certificateName) Sets the value ofCertificateProps.getCertificateName()
domainName
(String domainName) Sets the value ofCertificateProps.getDomainName()
keyAlgorithm
(KeyAlgorithm keyAlgorithm) Sets the value ofCertificateProps.getKeyAlgorithm()
subjectAlternativeNames
(List<String> subjectAlternativeNames) Sets the value ofCertificateProps.getSubjectAlternativeNames()
transparencyLoggingEnabled
(Boolean transparencyLoggingEnabled) Sets the value ofCertificateProps.getTransparencyLoggingEnabled()
validation
(CertificateValidation validation) Sets the value ofCertificateProps.getValidation()
-
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
-
certificateName
Sets the value ofCertificateProps.getCertificateName()
- Parameters:
certificateName
- The Certificate name. Since the Certificate resource doesn't support providing a physical name, the value provided here will be recorded in theName
tag- Returns:
this
-
keyAlgorithm
Sets the value ofCertificateProps.getKeyAlgorithm()
- Parameters:
keyAlgorithm
- Specifies the algorithm of the public and private key pair that your certificate uses to encrypt data.- 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
-
transparencyLoggingEnabled
@Stability(Stable) public CertificateProps.Builder transparencyLoggingEnabled(Boolean transparencyLoggingEnabled) Sets the value ofCertificateProps.getTransparencyLoggingEnabled()
- Parameters:
transparencyLoggingEnabled
- Enable or disable transparency logging for this certificate. Once a certificate has been logged, it cannot be removed from the log. Opting out at that point will have no effect. If you opt out of logging when you request a certificate and then choose later to opt back in, your certificate will not be logged until it is renewed. If you want the certificate to be logged immediately, we recommend that you issue a new one.- Returns:
this
-
validation
Sets the value ofCertificateProps.getValidation()
- Parameters:
validation
- How to validate this certificate.- 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
-