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

import com.pulumi.azure.compute.outputs.ScaleSetOsProfileSecretVaultCertificate;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class ScaleSetOsProfileSecret {
    /**
     * @return Specifies the key vault to use.
     * 
     */
    private String sourceVaultId;
    /**
     * @return (Required, on Windows machines) One or more `vault_certificates` blocks as defined below.
     * 
     */
    private @Nullable List<ScaleSetOsProfileSecretVaultCertificate> vaultCertificates;

    private ScaleSetOsProfileSecret() {}
    /**
     * @return Specifies the key vault to use.
     * 
     */
    public String sourceVaultId() {
        return this.sourceVaultId;
    }
    /**
     * @return (Required, on Windows machines) One or more `vault_certificates` blocks as defined below.
     * 
     */
    public List<ScaleSetOsProfileSecretVaultCertificate> vaultCertificates() {
        return this.vaultCertificates == null ? List.of() : this.vaultCertificates;
    }

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

    public static Builder builder(ScaleSetOsProfileSecret defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String sourceVaultId;
        private @Nullable List<ScaleSetOsProfileSecretVaultCertificate> vaultCertificates;
        public Builder() {}
        public Builder(ScaleSetOsProfileSecret defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.sourceVaultId = defaults.sourceVaultId;
    	      this.vaultCertificates = defaults.vaultCertificates;
        }

        @CustomType.Setter
        public Builder sourceVaultId(String sourceVaultId) {
            this.sourceVaultId = Objects.requireNonNull(sourceVaultId);
            return this;
        }
        @CustomType.Setter
        public Builder vaultCertificates(@Nullable List<ScaleSetOsProfileSecretVaultCertificate> vaultCertificates) {
            this.vaultCertificates = vaultCertificates;
            return this;
        }
        public Builder vaultCertificates(ScaleSetOsProfileSecretVaultCertificate... vaultCertificates) {
            return vaultCertificates(List.of(vaultCertificates));
        }
        public ScaleSetOsProfileSecret build() {
            final var o = new ScaleSetOsProfileSecret();
            o.sourceVaultId = sourceVaultId;
            o.vaultCertificates = vaultCertificates;
            return o;
        }
    }
}
