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

com.pulumi.azure.servicefabric.inputs.ClusterClientCertificateCommonNameArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** 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.inputs;

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


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

    public static final ClusterClientCertificateCommonNameArgs Empty = new ClusterClientCertificateCommonNameArgs();

    /**
     * The common or subject name of the certificate.
     * 
     */
    @Import(name="commonName", required=true)
    private Output commonName;

    /**
     * @return The common or subject name of the certificate.
     * 
     */
    public Output commonName() {
        return this.commonName;
    }

    /**
     * Does the Client Certificate have Admin Access to the cluster? Non-admin clients can only perform read only operations on the cluster.
     * 
     */
    @Import(name="isAdmin", required=true)
    private Output isAdmin;

    /**
     * @return Does the Client Certificate have Admin Access to the cluster? Non-admin clients can only perform read only operations on the cluster.
     * 
     */
    public Output isAdmin() {
        return this.isAdmin;
    }

    /**
     * The Issuer Thumbprint of the Certificate.
     * 
     * > **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`.
     * 
     */
    @Import(name="issuerThumbprint")
    private @Nullable Output issuerThumbprint;

    /**
     * @return The Issuer Thumbprint of the Certificate.
     * 
     * > **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> issuerThumbprint() {
        return Optional.ofNullable(this.issuerThumbprint);
    }

    private ClusterClientCertificateCommonNameArgs() {}

    private ClusterClientCertificateCommonNameArgs(ClusterClientCertificateCommonNameArgs $) {
        this.commonName = $.commonName;
        this.isAdmin = $.isAdmin;
        this.issuerThumbprint = $.issuerThumbprint;
    }

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

    public static final class Builder {
        private ClusterClientCertificateCommonNameArgs $;

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

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

        /**
         * @param commonName The common or subject name of the certificate.
         * 
         * @return builder
         * 
         */
        public Builder commonName(Output commonName) {
            $.commonName = commonName;
            return this;
        }

        /**
         * @param commonName The common or subject name of the certificate.
         * 
         * @return builder
         * 
         */
        public Builder commonName(String commonName) {
            return commonName(Output.of(commonName));
        }

        /**
         * @param isAdmin Does the Client Certificate have Admin Access to the cluster? Non-admin clients can only perform read only operations on the cluster.
         * 
         * @return builder
         * 
         */
        public Builder isAdmin(Output isAdmin) {
            $.isAdmin = isAdmin;
            return this;
        }

        /**
         * @param isAdmin Does the Client Certificate have Admin Access to the cluster? Non-admin clients can only perform read only operations on the cluster.
         * 
         * @return builder
         * 
         */
        public Builder isAdmin(Boolean isAdmin) {
            return isAdmin(Output.of(isAdmin));
        }

        /**
         * @param issuerThumbprint The Issuer Thumbprint of the Certificate.
         * 
         * > **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`.
         * 
         * @return builder
         * 
         */
        public Builder issuerThumbprint(@Nullable Output issuerThumbprint) {
            $.issuerThumbprint = issuerThumbprint;
            return this;
        }

        /**
         * @param issuerThumbprint The Issuer Thumbprint of the Certificate.
         * 
         * > **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`.
         * 
         * @return builder
         * 
         */
        public Builder issuerThumbprint(String issuerThumbprint) {
            return issuerThumbprint(Output.of(issuerThumbprint));
        }

        public ClusterClientCertificateCommonNameArgs build() {
            if ($.commonName == null) {
                throw new MissingRequiredPropertyException("ClusterClientCertificateCommonNameArgs", "commonName");
            }
            if ($.isAdmin == null) {
                throw new MissingRequiredPropertyException("ClusterClientCertificateCommonNameArgs", "isAdmin");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy