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

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


/**
 * The environment variable to pass to the script in the container instance.
 * 
 */
public final class EnvironmentVariableArgs extends com.pulumi.resources.ResourceArgs {

    public static final EnvironmentVariableArgs Empty = new EnvironmentVariableArgs();

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

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

    /**
     * The value of the secure environment variable.
     * 
     */
    @Import(name="secureValue")
    private @Nullable Output secureValue;

    /**
     * @return The value of the secure environment variable.
     * 
     */
    public Optional> secureValue() {
        return Optional.ofNullable(this.secureValue);
    }

    /**
     * The value of the environment variable.
     * 
     */
    @Import(name="value")
    private @Nullable Output value;

    /**
     * @return The value of the environment variable.
     * 
     */
    public Optional> value() {
        return Optional.ofNullable(this.value);
    }

    private EnvironmentVariableArgs() {}

    private EnvironmentVariableArgs(EnvironmentVariableArgs $) {
        this.name = $.name;
        this.secureValue = $.secureValue;
        this.value = $.value;
    }

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

    public static final class Builder {
        private EnvironmentVariableArgs $;

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

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

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

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

        /**
         * @param secureValue The value of the secure environment variable.
         * 
         * @return builder
         * 
         */
        public Builder secureValue(@Nullable Output secureValue) {
            $.secureValue = secureValue;
            return this;
        }

        /**
         * @param secureValue The value of the secure environment variable.
         * 
         * @return builder
         * 
         */
        public Builder secureValue(String secureValue) {
            return secureValue(Output.of(secureValue));
        }

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy