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

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


/**
 * Model representing an environment variable.
 * 
 */
public final class EnvironmentVariableArgs extends com.pulumi.resources.ResourceArgs {

    public static final EnvironmentVariableArgs Empty = new EnvironmentVariableArgs();

    /**
     * Environment variable name.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Environment variable name.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Environment variable value.
     * 
     */
    @Import(name="value", required=true)
    private Output value;

    /**
     * @return Environment variable value.
     * 
     */
    public Output value() {
        return this.value;
    }

    private EnvironmentVariableArgs() {}

    private EnvironmentVariableArgs(EnvironmentVariableArgs $) {
        this.name = $.name;
        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 Environment variable name.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

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

        /**
         * @param value Environment variable value.
         * 
         * @return builder
         * 
         */
        public Builder value(Output value) {
            $.value = value;
            return this;
        }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy