// *** 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.OrchestratedVirtualMachineScaleSetOsProfileLinuxConfigurationSecretCertificateArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;


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

    public static final OrchestratedVirtualMachineScaleSetOsProfileLinuxConfigurationSecretArgs Empty = new OrchestratedVirtualMachineScaleSetOsProfileLinuxConfigurationSecretArgs();

    /**
     * One or more `certificate` blocks as defined below.
     * 
     * &gt; **NOTE:** The schema of the `certificate` block is slightly different depending on if you are provisioning a `windows_configuration` or a `linux_configuration`.
     * 
     */
    @Import(name="certificates", required=true)
    private Output<List<OrchestratedVirtualMachineScaleSetOsProfileLinuxConfigurationSecretCertificateArgs>> certificates;

    /**
     * @return One or more `certificate` blocks as defined below.
     * 
     * &gt; **NOTE:** The schema of the `certificate` block is slightly different depending on if you are provisioning a `windows_configuration` or a `linux_configuration`.
     * 
     */
    public Output<List<OrchestratedVirtualMachineScaleSetOsProfileLinuxConfigurationSecretCertificateArgs>> certificates() {
        return this.certificates;
    }

    /**
     * The ID of the Key Vault from which all Secrets should be sourced.
     * 
     */
    @Import(name="keyVaultId", required=true)
    private Output<String> keyVaultId;

    /**
     * @return The ID of the Key Vault from which all Secrets should be sourced.
     * 
     */
    public Output<String> keyVaultId() {
        return this.keyVaultId;
    }

    private OrchestratedVirtualMachineScaleSetOsProfileLinuxConfigurationSecretArgs() {}

    private OrchestratedVirtualMachineScaleSetOsProfileLinuxConfigurationSecretArgs(OrchestratedVirtualMachineScaleSetOsProfileLinuxConfigurationSecretArgs $) {
        this.certificates = $.certificates;
        this.keyVaultId = $.keyVaultId;
    }

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

    public static final class Builder {
        private OrchestratedVirtualMachineScaleSetOsProfileLinuxConfigurationSecretArgs $;

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

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

        /**
         * @param certificates One or more `certificate` blocks as defined below.
         * 
         * &gt; **NOTE:** The schema of the `certificate` block is slightly different depending on if you are provisioning a `windows_configuration` or a `linux_configuration`.
         * 
         * @return builder
         * 
         */
        public Builder certificates(Output<List<OrchestratedVirtualMachineScaleSetOsProfileLinuxConfigurationSecretCertificateArgs>> certificates) {
            $.certificates = certificates;
            return this;
        }

        /**
         * @param certificates One or more `certificate` blocks as defined below.
         * 
         * &gt; **NOTE:** The schema of the `certificate` block is slightly different depending on if you are provisioning a `windows_configuration` or a `linux_configuration`.
         * 
         * @return builder
         * 
         */
        public Builder certificates(List<OrchestratedVirtualMachineScaleSetOsProfileLinuxConfigurationSecretCertificateArgs> certificates) {
            return certificates(Output.of(certificates));
        }

        /**
         * @param certificates One or more `certificate` blocks as defined below.
         * 
         * &gt; **NOTE:** The schema of the `certificate` block is slightly different depending on if you are provisioning a `windows_configuration` or a `linux_configuration`.
         * 
         * @return builder
         * 
         */
        public Builder certificates(OrchestratedVirtualMachineScaleSetOsProfileLinuxConfigurationSecretCertificateArgs... certificates) {
            return certificates(List.of(certificates));
        }

        /**
         * @param keyVaultId The ID of the Key Vault from which all Secrets should be sourced.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultId(Output<String> keyVaultId) {
            $.keyVaultId = keyVaultId;
            return this;
        }

        /**
         * @param keyVaultId The ID of the Key Vault from which all Secrets should be sourced.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultId(String keyVaultId) {
            return keyVaultId(Output.of(keyVaultId));
        }

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

}
