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

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ClusterReverseProxyCertificateCommonNamesCommonName {
    /**
     * @return The common or subject name of the certificate.
     * 
     */
    private String certificateCommonName;
    /**
     * @return The Issuer Thumbprint of the Certificate.
     * 
     * &gt; **NOTE:** Certificate Issuer Thumbprint may become required in the future, `https://docs.microsoft.com/azure/service-fabric/service-fabric-create-cluster-using-cert-cn#download-and-update-a-sample-template`.
     * 
     */
    private @Nullable String certificateIssuerThumbprint;

    private ClusterReverseProxyCertificateCommonNamesCommonName() {}
    /**
     * @return The common or subject name of the certificate.
     * 
     */
    public String certificateCommonName() {
        return this.certificateCommonName;
    }
    /**
     * @return The Issuer Thumbprint of the Certificate.
     * 
     * &gt; **NOTE:** Certificate Issuer Thumbprint may become required in the future, `https://docs.microsoft.com/azure/service-fabric/service-fabric-create-cluster-using-cert-cn#download-and-update-a-sample-template`.
     * 
     */
    public Optional<String> certificateIssuerThumbprint() {
        return Optional.ofNullable(this.certificateIssuerThumbprint);
    }

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

    public static Builder builder(ClusterReverseProxyCertificateCommonNamesCommonName defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String certificateCommonName;
        private @Nullable String certificateIssuerThumbprint;
        public Builder() {}
        public Builder(ClusterReverseProxyCertificateCommonNamesCommonName defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.certificateCommonName = defaults.certificateCommonName;
    	      this.certificateIssuerThumbprint = defaults.certificateIssuerThumbprint;
        }

        @CustomType.Setter
        public Builder certificateCommonName(String certificateCommonName) {
            this.certificateCommonName = Objects.requireNonNull(certificateCommonName);
            return this;
        }
        @CustomType.Setter
        public Builder certificateIssuerThumbprint(@Nullable String certificateIssuerThumbprint) {
            this.certificateIssuerThumbprint = certificateIssuerThumbprint;
            return this;
        }
        public ClusterReverseProxyCertificateCommonNamesCommonName build() {
            final var o = new ClusterReverseProxyCertificateCommonNamesCommonName();
            o.certificateCommonName = certificateCommonName;
            o.certificateIssuerThumbprint = certificateIssuerThumbprint;
            return o;
        }
    }
}
