Class CfnCertificateProps.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnCertificateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCertificateProps>
- Enclosing interface:
- CfnCertificateProps
@Stability(Stable)
public static final class CfnCertificateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCertificateProps>
A builder for
CfnCertificateProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.certificateName(String certificateName) Sets the value ofCfnCertificateProps.getCertificateName()domainName(String domainName) Sets the value ofCfnCertificateProps.getDomainName()subjectAlternativeNames(List<String> subjectAlternativeNames) Sets the value ofCfnCertificateProps.getSubjectAlternativeNames()Sets the value ofCfnCertificateProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
certificateName
Sets the value ofCfnCertificateProps.getCertificateName()- Parameters:
certificateName- The name of the certificate. This parameter is required.- Returns:
this
-
domainName
Sets the value ofCfnCertificateProps.getDomainName()- Parameters:
domainName- The domain name of the certificate. This parameter is required.- Returns:
this
-
subjectAlternativeNames
@Stability(Stable) public CfnCertificateProps.Builder subjectAlternativeNames(List<String> subjectAlternativeNames) Sets the value ofCfnCertificateProps.getSubjectAlternativeNames()- Parameters:
subjectAlternativeNames- An array of strings that specify the alternate domains (such asexample.org) and subdomains (such asblog.example.com) of the certificate.- Returns:
this
-
tags
Sets the value ofCfnCertificateProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag in the AWS CloudFormation User Guide .The
ValueofTagsis optional for Lightsail resources.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCertificateProps>- Returns:
- a new instance of
CfnCertificateProps - Throws:
NullPointerException- if any required attribute was not provided
-