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

com.pulumi.azure.batch.CertificateArgs 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.azure.batch;

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


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

    public static final CertificateArgs Empty = new CertificateArgs();

    /**
     * Specifies the name of the Batch account. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return Specifies the name of the Batch account. Changing this forces a new resource to be created.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * The base64-encoded contents of the certificate.
     * 
     */
    @Import(name="certificate", required=true)
    private Output certificate;

    /**
     * @return The base64-encoded contents of the certificate.
     * 
     */
    public Output certificate() {
        return this.certificate;
    }

    /**
     * The format of the certificate. Possible values are `Cer` or `Pfx`.
     * 
     */
    @Import(name="format", required=true)
    private Output format;

    /**
     * @return The format of the certificate. Possible values are `Cer` or `Pfx`.
     * 
     */
    public Output format() {
        return this.format;
    }

    /**
     * The password to access the certificate's private key. This can only be specified when `format` is `Pfx`.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return The password to access the certificate's private key. This can only be specified when `format` is `Pfx`.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The thumbprint of the certificate. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="thumbprint", required=true)
    private Output thumbprint;

    /**
     * @return The thumbprint of the certificate. Changing this forces a new resource to be created.
     * 
     */
    public Output thumbprint() {
        return this.thumbprint;
    }

    /**
     * The algorithm of the certificate thumbprint. At this time the only supported value is `SHA1`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="thumbprintAlgorithm", required=true)
    private Output thumbprintAlgorithm;

    /**
     * @return The algorithm of the certificate thumbprint. At this time the only supported value is `SHA1`. Changing this forces a new resource to be created.
     * 
     */
    public Output thumbprintAlgorithm() {
        return this.thumbprintAlgorithm;
    }

    private CertificateArgs() {}

    private CertificateArgs(CertificateArgs $) {
        this.accountName = $.accountName;
        this.certificate = $.certificate;
        this.format = $.format;
        this.password = $.password;
        this.resourceGroupName = $.resourceGroupName;
        this.thumbprint = $.thumbprint;
        this.thumbprintAlgorithm = $.thumbprintAlgorithm;
    }

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

    public static final class Builder {
        private CertificateArgs $;

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

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

        /**
         * @param accountName Specifies the name of the Batch account. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param accountName Specifies the name of the Batch account. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

        /**
         * @param certificate The base64-encoded contents of the certificate.
         * 
         * @return builder
         * 
         */
        public Builder certificate(Output certificate) {
            $.certificate = certificate;
            return this;
        }

        /**
         * @param certificate The base64-encoded contents of the certificate.
         * 
         * @return builder
         * 
         */
        public Builder certificate(String certificate) {
            return certificate(Output.of(certificate));
        }

        /**
         * @param format The format of the certificate. Possible values are `Cer` or `Pfx`.
         * 
         * @return builder
         * 
         */
        public Builder format(Output format) {
            $.format = format;
            return this;
        }

        /**
         * @param format The format of the certificate. Possible values are `Cer` or `Pfx`.
         * 
         * @return builder
         * 
         */
        public Builder format(String format) {
            return format(Output.of(format));
        }

        /**
         * @param password The password to access the certificate's private key. This can only be specified when `format` is `Pfx`.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password The password to access the certificate's private key. This can only be specified when `format` is `Pfx`.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param resourceGroupName The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group in which to create the Batch account. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param thumbprint The thumbprint of the certificate. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder thumbprint(Output thumbprint) {
            $.thumbprint = thumbprint;
            return this;
        }

        /**
         * @param thumbprint The thumbprint of the certificate. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder thumbprint(String thumbprint) {
            return thumbprint(Output.of(thumbprint));
        }

        /**
         * @param thumbprintAlgorithm The algorithm of the certificate thumbprint. At this time the only supported value is `SHA1`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder thumbprintAlgorithm(Output thumbprintAlgorithm) {
            $.thumbprintAlgorithm = thumbprintAlgorithm;
            return this;
        }

        /**
         * @param thumbprintAlgorithm The algorithm of the certificate thumbprint. At this time the only supported value is `SHA1`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder thumbprintAlgorithm(String thumbprintAlgorithm) {
            return thumbprintAlgorithm(Output.of(thumbprintAlgorithm));
        }

        public CertificateArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("CertificateArgs", "accountName");
            }
            if ($.certificate == null) {
                throw new MissingRequiredPropertyException("CertificateArgs", "certificate");
            }
            if ($.format == null) {
                throw new MissingRequiredPropertyException("CertificateArgs", "format");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("CertificateArgs", "resourceGroupName");
            }
            if ($.thumbprint == null) {
                throw new MissingRequiredPropertyException("CertificateArgs", "thumbprint");
            }
            if ($.thumbprintAlgorithm == null) {
                throw new MissingRequiredPropertyException("CertificateArgs", "thumbprintAlgorithm");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy