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

com.pulumi.azure.compute.inputs.WindowsVirtualMachineScaleSetSecretArgs 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.compute.inputs;

import com.pulumi.azure.compute.inputs.WindowsVirtualMachineScaleSetSecretCertificateArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;


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

    public static final WindowsVirtualMachineScaleSetSecretArgs Empty = new WindowsVirtualMachineScaleSetSecretArgs();

    /**
     * One or more `certificate` blocks as defined above.
     * 
     */
    @Import(name="certificates", required=true)
    private Output> certificates;

    /**
     * @return One or more `certificate` blocks as defined above.
     * 
     */
    public Output> certificates() {
        return this.certificates;
    }

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

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

    private WindowsVirtualMachineScaleSetSecretArgs() {}

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

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

    public static final class Builder {
        private WindowsVirtualMachineScaleSetSecretArgs $;

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

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

        /**
         * @param certificates One or more `certificate` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder certificates(Output> certificates) {
            $.certificates = certificates;
            return this;
        }

        /**
         * @param certificates One or more `certificate` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder certificates(List certificates) {
            return certificates(Output.of(certificates));
        }

        /**
         * @param certificates One or more `certificate` blocks as defined above.
         * 
         * @return builder
         * 
         */
        public Builder certificates(WindowsVirtualMachineScaleSetSecretCertificateArgs... 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 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 WindowsVirtualMachineScaleSetSecretArgs build() {
            if ($.certificates == null) {
                throw new MissingRequiredPropertyException("WindowsVirtualMachineScaleSetSecretArgs", "certificates");
            }
            if ($.keyVaultId == null) {
                throw new MissingRequiredPropertyException("WindowsVirtualMachineScaleSetSecretArgs", "keyVaultId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy