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

com.pulumi.azurenative.datafactory.inputs.EnvironmentVariableSetupArgs Maven / Gradle / Ivy

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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


/**
 * The custom setup of setting environment variable.
 * 
 */
public final class EnvironmentVariableSetupArgs extends com.pulumi.resources.ResourceArgs {

    public static final EnvironmentVariableSetupArgs Empty = new EnvironmentVariableSetupArgs();

    /**
     * The type of custom setup.
     * Expected value is 'EnvironmentVariableSetup'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The type of custom setup.
     * Expected value is 'EnvironmentVariableSetup'.
     * 
     */
    public Output type() {
        return this.type;
    }

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

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

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

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

    private EnvironmentVariableSetupArgs() {}

    private EnvironmentVariableSetupArgs(EnvironmentVariableSetupArgs $) {
        this.type = $.type;
        this.variableName = $.variableName;
        this.variableValue = $.variableValue;
    }

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

    public static final class Builder {
        private EnvironmentVariableSetupArgs $;

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

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

        /**
         * @param type The type of custom setup.
         * Expected value is 'EnvironmentVariableSetup'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of custom setup.
         * Expected value is 'EnvironmentVariableSetup'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

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

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

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

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

        public EnvironmentVariableSetupArgs build() {
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            if ($.variableName == null) {
                throw new MissingRequiredPropertyException("EnvironmentVariableSetupArgs", "variableName");
            }
            if ($.variableValue == null) {
                throw new MissingRequiredPropertyException("EnvironmentVariableSetupArgs", "variableValue");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy