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

com.pulumi.azurenative.app.inputs.SecretVolumeItemArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.app.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;


/**
 * Secret to be added to volume.
 * 
 */
public final class SecretVolumeItemArgs extends com.pulumi.resources.ResourceArgs {

    public static final SecretVolumeItemArgs Empty = new SecretVolumeItemArgs();

    /**
     * Path to project secret to. If no path is provided, path defaults to name of secret listed in secretRef.
     * 
     */
    @Import(name="path")
    private @Nullable Output path;

    /**
     * @return Path to project secret to. If no path is provided, path defaults to name of secret listed in secretRef.
     * 
     */
    public Optional> path() {
        return Optional.ofNullable(this.path);
    }

    /**
     * Name of the Container App secret from which to pull the secret value.
     * 
     */
    @Import(name="secretRef")
    private @Nullable Output secretRef;

    /**
     * @return Name of the Container App secret from which to pull the secret value.
     * 
     */
    public Optional> secretRef() {
        return Optional.ofNullable(this.secretRef);
    }

    private SecretVolumeItemArgs() {}

    private SecretVolumeItemArgs(SecretVolumeItemArgs $) {
        this.path = $.path;
        this.secretRef = $.secretRef;
    }

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

    public static final class Builder {
        private SecretVolumeItemArgs $;

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

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

        /**
         * @param path Path to project secret to. If no path is provided, path defaults to name of secret listed in secretRef.
         * 
         * @return builder
         * 
         */
        public Builder path(@Nullable Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path Path to project secret to. If no path is provided, path defaults to name of secret listed in secretRef.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param secretRef Name of the Container App secret from which to pull the secret value.
         * 
         * @return builder
         * 
         */
        public Builder secretRef(@Nullable Output secretRef) {
            $.secretRef = secretRef;
            return this;
        }

        /**
         * @param secretRef Name of the Container App secret from which to pull the secret value.
         * 
         * @return builder
         * 
         */
        public Builder secretRef(String secretRef) {
            return secretRef(Output.of(secretRef));
        }

        public SecretVolumeItemArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy