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

com.pulumi.azurenative.datafactory.inputs.AzureKeyVaultSecretReferenceArgs 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.datafactory.inputs;

import com.pulumi.azurenative.datafactory.inputs.LinkedServiceReferenceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AzureKeyVaultSecretReferenceArgs Empty = new AzureKeyVaultSecretReferenceArgs();

    /**
     * The name of the secret in Azure Key Vault. Type: string (or Expression with resultType string).
     * 
     */
    @Import(name="secretName", required=true)
    private Output secretName;

    /**
     * @return The name of the secret in Azure Key Vault. Type: string (or Expression with resultType string).
     * 
     */
    public Output secretName() {
        return this.secretName;
    }

    /**
     * The version of the secret in Azure Key Vault. The default value is the latest version of the secret. Type: string (or Expression with resultType string).
     * 
     */
    @Import(name="secretVersion")
    private @Nullable Output secretVersion;

    /**
     * @return The version of the secret in Azure Key Vault. The default value is the latest version of the secret. Type: string (or Expression with resultType string).
     * 
     */
    public Optional> secretVersion() {
        return Optional.ofNullable(this.secretVersion);
    }

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

    /**
     * @return The Azure Key Vault linked service reference.
     * 
     */
    public Output store() {
        return this.store;
    }

    /**
     * Type of the secret.
     * Expected value is 'AzureKeyVaultSecret'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Type of the secret.
     * Expected value is 'AzureKeyVaultSecret'.
     * 
     */
    public Output type() {
        return this.type;
    }

    private AzureKeyVaultSecretReferenceArgs() {}

    private AzureKeyVaultSecretReferenceArgs(AzureKeyVaultSecretReferenceArgs $) {
        this.secretName = $.secretName;
        this.secretVersion = $.secretVersion;
        this.store = $.store;
        this.type = $.type;
    }

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

    public static final class Builder {
        private AzureKeyVaultSecretReferenceArgs $;

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

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

        /**
         * @param secretName The name of the secret in Azure Key Vault. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder secretName(Output secretName) {
            $.secretName = secretName;
            return this;
        }

        /**
         * @param secretName The name of the secret in Azure Key Vault. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder secretName(Object secretName) {
            return secretName(Output.of(secretName));
        }

        /**
         * @param secretVersion The version of the secret in Azure Key Vault. The default value is the latest version of the secret. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder secretVersion(@Nullable Output secretVersion) {
            $.secretVersion = secretVersion;
            return this;
        }

        /**
         * @param secretVersion The version of the secret in Azure Key Vault. The default value is the latest version of the secret. Type: string (or Expression with resultType string).
         * 
         * @return builder
         * 
         */
        public Builder secretVersion(Object secretVersion) {
            return secretVersion(Output.of(secretVersion));
        }

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

        /**
         * @param store The Azure Key Vault linked service reference.
         * 
         * @return builder
         * 
         */
        public Builder store(LinkedServiceReferenceArgs store) {
            return store(Output.of(store));
        }

        /**
         * @param type Type of the secret.
         * Expected value is 'AzureKeyVaultSecret'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of the secret.
         * Expected value is 'AzureKeyVaultSecret'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public AzureKeyVaultSecretReferenceArgs build() {
            if ($.secretName == null) {
                throw new MissingRequiredPropertyException("AzureKeyVaultSecretReferenceArgs", "secretName");
            }
            if ($.store == null) {
                throw new MissingRequiredPropertyException("AzureKeyVaultSecretReferenceArgs", "store");
            }
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}