// *** 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.azure.keyvault.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetCertificateCertificatePolicyX509CertificatePropertySubjectAlternativeName {
    /**
     * @return A list of alternative DNS names (FQDNs) identified by the Certificate.
     * 
     */
    private List<String> dnsNames;
    /**
     * @return A list of email addresses identified by this Certificate.
     * 
     */
    private List<String> emails;
    /**
     * @return A list of User Principal Names identified by the Certificate.
     * 
     */
    private List<String> upns;

    private GetCertificateCertificatePolicyX509CertificatePropertySubjectAlternativeName() {}
    /**
     * @return A list of alternative DNS names (FQDNs) identified by the Certificate.
     * 
     */
    public List<String> dnsNames() {
        return this.dnsNames;
    }
    /**
     * @return A list of email addresses identified by this Certificate.
     * 
     */
    public List<String> emails() {
        return this.emails;
    }
    /**
     * @return A list of User Principal Names identified by the Certificate.
     * 
     */
    public List<String> upns() {
        return this.upns;
    }

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

    public static Builder builder(GetCertificateCertificatePolicyX509CertificatePropertySubjectAlternativeName defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<String> dnsNames;
        private List<String> emails;
        private List<String> upns;
        public Builder() {}
        public Builder(GetCertificateCertificatePolicyX509CertificatePropertySubjectAlternativeName defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.dnsNames = defaults.dnsNames;
    	      this.emails = defaults.emails;
    	      this.upns = defaults.upns;
        }

        @CustomType.Setter
        public Builder dnsNames(List<String> dnsNames) {
            this.dnsNames = Objects.requireNonNull(dnsNames);
            return this;
        }
        public Builder dnsNames(String... dnsNames) {
            return dnsNames(List.of(dnsNames));
        }
        @CustomType.Setter
        public Builder emails(List<String> emails) {
            this.emails = Objects.requireNonNull(emails);
            return this;
        }
        public Builder emails(String... emails) {
            return emails(List.of(emails));
        }
        @CustomType.Setter
        public Builder upns(List<String> upns) {
            this.upns = Objects.requireNonNull(upns);
            return this;
        }
        public Builder upns(String... upns) {
            return upns(List.of(upns));
        }
        public GetCertificateCertificatePolicyX509CertificatePropertySubjectAlternativeName build() {
            final var o = new GetCertificateCertificatePolicyX509CertificatePropertySubjectAlternativeName();
            o.dnsNames = dnsNames;
            o.emails = emails;
            o.upns = upns;
            return o;
        }
    }
}
