All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.lightsail.LbCertificateArgs Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.lightsail;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class LbCertificateArgs extends com.pulumi.resources.ResourceArgs {

    public static final LbCertificateArgs Empty = new LbCertificateArgs();

    /**
     * The domain name (e.g., example.com) for your SSL/TLS certificate.
     * 
     */
    @Import(name="domainName")
    private @Nullable Output domainName;

    /**
     * @return The domain name (e.g., example.com) for your SSL/TLS certificate.
     * 
     */
    public Optional> domainName() {
        return Optional.ofNullable(this.domainName);
    }

    /**
     * The load balancer name where you want to create the SSL/TLS certificate.
     * 
     */
    @Import(name="lbName", required=true)
    private Output lbName;

    /**
     * @return The load balancer name where you want to create the SSL/TLS certificate.
     * 
     */
    public Output lbName() {
        return this.lbName;
    }

    /**
     * The SSL/TLS certificate name.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The SSL/TLS certificate name.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Set of domains that should be SANs in the issued certificate. `domain_name` attribute is automatically added as a Subject Alternative Name.
     * 
     */
    @Import(name="subjectAlternativeNames")
    private @Nullable Output> subjectAlternativeNames;

    /**
     * @return Set of domains that should be SANs in the issued certificate. `domain_name` attribute is automatically added as a Subject Alternative Name.
     * 
     */
    public Optional>> subjectAlternativeNames() {
        return Optional.ofNullable(this.subjectAlternativeNames);
    }

    private LbCertificateArgs() {}

    private LbCertificateArgs(LbCertificateArgs $) {
        this.domainName = $.domainName;
        this.lbName = $.lbName;
        this.name = $.name;
        this.subjectAlternativeNames = $.subjectAlternativeNames;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(LbCertificateArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private LbCertificateArgs $;

        public Builder() {
            $ = new LbCertificateArgs();
        }

        public Builder(LbCertificateArgs defaults) {
            $ = new LbCertificateArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param domainName The domain name (e.g., example.com) for your SSL/TLS certificate.
         * 
         * @return builder
         * 
         */
        public Builder domainName(@Nullable Output domainName) {
            $.domainName = domainName;
            return this;
        }

        /**
         * @param domainName The domain name (e.g., example.com) for your SSL/TLS certificate.
         * 
         * @return builder
         * 
         */
        public Builder domainName(String domainName) {
            return domainName(Output.of(domainName));
        }

        /**
         * @param lbName The load balancer name where you want to create the SSL/TLS certificate.
         * 
         * @return builder
         * 
         */
        public Builder lbName(Output lbName) {
            $.lbName = lbName;
            return this;
        }

        /**
         * @param lbName The load balancer name where you want to create the SSL/TLS certificate.
         * 
         * @return builder
         * 
         */
        public Builder lbName(String lbName) {
            return lbName(Output.of(lbName));
        }

        /**
         * @param name The SSL/TLS certificate name.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The SSL/TLS certificate name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param subjectAlternativeNames Set of domains that should be SANs in the issued certificate. `domain_name` attribute is automatically added as a Subject Alternative Name.
         * 
         * @return builder
         * 
         */
        public Builder subjectAlternativeNames(@Nullable Output> subjectAlternativeNames) {
            $.subjectAlternativeNames = subjectAlternativeNames;
            return this;
        }

        /**
         * @param subjectAlternativeNames Set of domains that should be SANs in the issued certificate. `domain_name` attribute is automatically added as a Subject Alternative Name.
         * 
         * @return builder
         * 
         */
        public Builder subjectAlternativeNames(List subjectAlternativeNames) {
            return subjectAlternativeNames(Output.of(subjectAlternativeNames));
        }

        /**
         * @param subjectAlternativeNames Set of domains that should be SANs in the issued certificate. `domain_name` attribute is automatically added as a Subject Alternative Name.
         * 
         * @return builder
         * 
         */
        public Builder subjectAlternativeNames(String... subjectAlternativeNames) {
            return subjectAlternativeNames(List.of(subjectAlternativeNames));
        }

        public LbCertificateArgs build() {
            if ($.lbName == null) {
                throw new MissingRequiredPropertyException("LbCertificateArgs", "lbName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy