// *** 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.compute.inputs;

import com.pulumi.azure.compute.inputs.ScaleSetOsProfileSecretVaultCertificateArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ScaleSetOsProfileSecretArgs Empty = new ScaleSetOsProfileSecretArgs();

    /**
     * Specifies the key vault to use.
     * 
     */
    @Import(name="sourceVaultId", required=true)
    private Output<String> sourceVaultId;

    /**
     * @return Specifies the key vault to use.
     * 
     */
    public Output<String> sourceVaultId() {
        return this.sourceVaultId;
    }

    /**
     * (Required, on Windows machines) One or more `vault_certificates` blocks as defined below.
     * 
     */
    @Import(name="vaultCertificates")
    private @Nullable Output<List<ScaleSetOsProfileSecretVaultCertificateArgs>> vaultCertificates;

    /**
     * @return (Required, on Windows machines) One or more `vault_certificates` blocks as defined below.
     * 
     */
    public Optional<Output<List<ScaleSetOsProfileSecretVaultCertificateArgs>>> vaultCertificates() {
        return Optional.ofNullable(this.vaultCertificates);
    }

    private ScaleSetOsProfileSecretArgs() {}

    private ScaleSetOsProfileSecretArgs(ScaleSetOsProfileSecretArgs $) {
        this.sourceVaultId = $.sourceVaultId;
        this.vaultCertificates = $.vaultCertificates;
    }

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

    public static final class Builder {
        private ScaleSetOsProfileSecretArgs $;

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

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

        /**
         * @param sourceVaultId Specifies the key vault to use.
         * 
         * @return builder
         * 
         */
        public Builder sourceVaultId(Output<String> sourceVaultId) {
            $.sourceVaultId = sourceVaultId;
            return this;
        }

        /**
         * @param sourceVaultId Specifies the key vault to use.
         * 
         * @return builder
         * 
         */
        public Builder sourceVaultId(String sourceVaultId) {
            return sourceVaultId(Output.of(sourceVaultId));
        }

        /**
         * @param vaultCertificates (Required, on Windows machines) One or more `vault_certificates` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder vaultCertificates(@Nullable Output<List<ScaleSetOsProfileSecretVaultCertificateArgs>> vaultCertificates) {
            $.vaultCertificates = vaultCertificates;
            return this;
        }

        /**
         * @param vaultCertificates (Required, on Windows machines) One or more `vault_certificates` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder vaultCertificates(List<ScaleSetOsProfileSecretVaultCertificateArgs> vaultCertificates) {
            return vaultCertificates(Output.of(vaultCertificates));
        }

        /**
         * @param vaultCertificates (Required, on Windows machines) One or more `vault_certificates` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder vaultCertificates(ScaleSetOsProfileSecretVaultCertificateArgs... vaultCertificates) {
            return vaultCertificates(List.of(vaultCertificates));
        }

        public ScaleSetOsProfileSecretArgs build() {
            $.sourceVaultId = Objects.requireNonNull($.sourceVaultId, "expected parameter 'sourceVaultId' to be non-null");
            return $;
        }
    }

}
