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

com.pulumi.azurenative.servicelinker.inputs.SecretStoreArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.servicelinker.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * An option to store secret value in secure place
 * 
 */
public final class SecretStoreArgs extends com.pulumi.resources.ResourceArgs {

    public static final SecretStoreArgs Empty = new SecretStoreArgs();

    /**
     * The key vault id to store secret
     * 
     */
    @Import(name="keyVaultId")
    private @Nullable Output keyVaultId;

    /**
     * @return The key vault id to store secret
     * 
     */
    public Optional> keyVaultId() {
        return Optional.ofNullable(this.keyVaultId);
    }

    /**
     * The key vault secret name to store secret, only valid when storing one secret
     * 
     */
    @Import(name="keyVaultSecretName")
    private @Nullable Output keyVaultSecretName;

    /**
     * @return The key vault secret name to store secret, only valid when storing one secret
     * 
     */
    public Optional> keyVaultSecretName() {
        return Optional.ofNullable(this.keyVaultSecretName);
    }

    private SecretStoreArgs() {}

    private SecretStoreArgs(SecretStoreArgs $) {
        this.keyVaultId = $.keyVaultId;
        this.keyVaultSecretName = $.keyVaultSecretName;
    }

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

    public static final class Builder {
        private SecretStoreArgs $;

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

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

        /**
         * @param keyVaultId The key vault id to store secret
         * 
         * @return builder
         * 
         */
        public Builder keyVaultId(@Nullable Output keyVaultId) {
            $.keyVaultId = keyVaultId;
            return this;
        }

        /**
         * @param keyVaultId The key vault id to store secret
         * 
         * @return builder
         * 
         */
        public Builder keyVaultId(String keyVaultId) {
            return keyVaultId(Output.of(keyVaultId));
        }

        /**
         * @param keyVaultSecretName The key vault secret name to store secret, only valid when storing one secret
         * 
         * @return builder
         * 
         */
        public Builder keyVaultSecretName(@Nullable Output keyVaultSecretName) {
            $.keyVaultSecretName = keyVaultSecretName;
            return this;
        }

        /**
         * @param keyVaultSecretName The key vault secret name to store secret, only valid when storing one secret
         * 
         * @return builder
         * 
         */
        public Builder keyVaultSecretName(String keyVaultSecretName) {
            return keyVaultSecretName(Output.of(keyVaultSecretName));
        }

        public SecretStoreArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy