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

com.pulumi.azure.containerapp.inputs.AppTemplateContainerEnvArgs Maven / Gradle / Ivy

// *** 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.containerapp.inputs;

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;


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

    public static final AppTemplateContainerEnvArgs Empty = new AppTemplateContainerEnvArgs();

    /**
     * The name of the environment variable for the container.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the environment variable for the container.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The name of the secret that contains the value for this environment variable.
     * 
     */
    @Import(name="secretName")
    private @Nullable Output secretName;

    /**
     * @return The name of the secret that contains the value for this environment variable.
     * 
     */
    public Optional> secretName() {
        return Optional.ofNullable(this.secretName);
    }

    /**
     * The value for this environment variable.
     * 
     * > **NOTE:** This value is ignored if `secret_name` is used
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return The value for this environment variable.
     * 
     * > **NOTE:** This value is ignored if `secret_name` is used
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    private AppTemplateContainerEnvArgs() {}

    private AppTemplateContainerEnvArgs(AppTemplateContainerEnvArgs $) {
        this.name = $.name;
        this.secretName = $.secretName;
        this.value = $.value;
    }

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

    public static final class Builder {
        private AppTemplateContainerEnvArgs $;

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

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

        /**
         * @param name The name of the environment variable for the container.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the environment variable for the container.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param secretName The name of the secret that contains the value for this environment variable.
         * 
         * @return builder
         * 
         */
        public Builder secretName(@Nullable Output secretName) {
            $.secretName = secretName;
            return this;
        }

        /**
         * @param secretName The name of the secret that contains the value for this environment variable.
         * 
         * @return builder
         * 
         */
        public Builder secretName(String secretName) {
            return secretName(Output.of(secretName));
        }

        /**
         * @param value The value for this environment variable.
         * 
         * > **NOTE:** This value is ignored if `secret_name` is used
         * 
         * @return builder
         * 
         */
        public Builder value(@Nullable Output value) {
            $.value = value;
            return this;
        }

        /**
         * @param value The value for this environment variable.
         * 
         * > **NOTE:** This value is ignored if `secret_name` is used
         * 
         * @return builder
         * 
         */
        public Builder value(String value) {
            return value(Output.of(value));
        }

        public AppTemplateContainerEnvArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("AppTemplateContainerEnvArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy