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

com.pulumi.azurenative.resources.inputs.KeyVaultParameterReferenceArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.resources.inputs;

import com.pulumi.azurenative.resources.inputs.KeyVaultReferenceArgs;
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;


/**
 * Azure Key Vault parameter reference.
 * 
 */
public final class KeyVaultParameterReferenceArgs extends com.pulumi.resources.ResourceArgs {

    public static final KeyVaultParameterReferenceArgs Empty = new KeyVaultParameterReferenceArgs();

    /**
     * Azure Key Vault reference.
     * 
     */
    @Import(name="keyVault", required=true)
    private Output keyVault;

    /**
     * @return Azure Key Vault reference.
     * 
     */
    public Output keyVault() {
        return this.keyVault;
    }

    /**
     * Azure Key Vault secret name.
     * 
     */
    @Import(name="secretName", required=true)
    private Output secretName;

    /**
     * @return Azure Key Vault secret name.
     * 
     */
    public Output secretName() {
        return this.secretName;
    }

    /**
     * Azure Key Vault secret version.
     * 
     */
    @Import(name="secretVersion")
    private @Nullable Output secretVersion;

    /**
     * @return Azure Key Vault secret version.
     * 
     */
    public Optional> secretVersion() {
        return Optional.ofNullable(this.secretVersion);
    }

    private KeyVaultParameterReferenceArgs() {}

    private KeyVaultParameterReferenceArgs(KeyVaultParameterReferenceArgs $) {
        this.keyVault = $.keyVault;
        this.secretName = $.secretName;
        this.secretVersion = $.secretVersion;
    }

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

    public static final class Builder {
        private KeyVaultParameterReferenceArgs $;

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

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

        /**
         * @param keyVault Azure Key Vault reference.
         * 
         * @return builder
         * 
         */
        public Builder keyVault(Output keyVault) {
            $.keyVault = keyVault;
            return this;
        }

        /**
         * @param keyVault Azure Key Vault reference.
         * 
         * @return builder
         * 
         */
        public Builder keyVault(KeyVaultReferenceArgs keyVault) {
            return keyVault(Output.of(keyVault));
        }

        /**
         * @param secretName Azure Key Vault secret name.
         * 
         * @return builder
         * 
         */
        public Builder secretName(Output secretName) {
            $.secretName = secretName;
            return this;
        }

        /**
         * @param secretName Azure Key Vault secret name.
         * 
         * @return builder
         * 
         */
        public Builder secretName(String secretName) {
            return secretName(Output.of(secretName));
        }

        /**
         * @param secretVersion Azure Key Vault secret version.
         * 
         * @return builder
         * 
         */
        public Builder secretVersion(@Nullable Output secretVersion) {
            $.secretVersion = secretVersion;
            return this;
        }

        /**
         * @param secretVersion Azure Key Vault secret version.
         * 
         * @return builder
         * 
         */
        public Builder secretVersion(String secretVersion) {
            return secretVersion(Output.of(secretVersion));
        }

        public KeyVaultParameterReferenceArgs build() {
            if ($.keyVault == null) {
                throw new MissingRequiredPropertyException("KeyVaultParameterReferenceArgs", "keyVault");
            }
            if ($.secretName == null) {
                throw new MissingRequiredPropertyException("KeyVaultParameterReferenceArgs", "secretName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy