Class CfnCertificate.Builder

java.lang.Object
software.amazon.awscdk.services.lightsail.CfnCertificate.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCertificate>
Enclosing class:
CfnCertificate

@Stability(Stable) public static final class CfnCertificate.Builder extends Object implements software.amazon.jsii.Builder<CfnCertificate>
A fluent builder for CfnCertificate.
  • Method Details

    • create

      @Stability(Stable) public static CfnCertificate.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnCertificate.Builder.
    • certificateName

      @Stability(Stable) public CfnCertificate.Builder certificateName(String certificateName)
      The name of the certificate.

      Parameters:
      certificateName - The name of the certificate. This parameter is required.
      Returns:
      this
    • domainName

      @Stability(Stable) public CfnCertificate.Builder domainName(String domainName)
      The domain name of the certificate.

      Parameters:
      domainName - The domain name of the certificate. This parameter is required.
      Returns:
      this
    • subjectAlternativeNames

      @Stability(Stable) public CfnCertificate.Builder subjectAlternativeNames(List<String> subjectAlternativeNames)
      An array of strings that specify the alternate domains (such as example.org ) and subdomains (such as blog.example.com ) of the certificate.

      Parameters:
      subjectAlternativeNames - An array of strings that specify the alternate domains (such as example.org ) and subdomains (such as blog.example.com ) of the certificate. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnCertificate.Builder tags(List<? extends CfnTag> tags)
      An array of key-value pairs to apply to this resource.

      For more information, see Tag in the AWS CloudFormation User Guide .

      The Value of Tags is optional for Lightsail resources.

      Parameters:
      tags - An array of key-value pairs to apply to this resource. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnCertificate build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnCertificate>
      Returns:
      a newly built instance of CfnCertificate.