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

com.pulumi.digitalocean.inputs.AppSpecJobEnvArgs Maven / Gradle / Ivy

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


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

    public static final AppSpecJobEnvArgs Empty = new AppSpecJobEnvArgs();

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

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

    /**
     * The visibility scope of the environment variable. One of `RUN_TIME`, `BUILD_TIME`, or `RUN_AND_BUILD_TIME` (default).
     * 
     */
    @Import(name="scope")
    private @Nullable Output scope;

    /**
     * @return The visibility scope of the environment variable. One of `RUN_TIME`, `BUILD_TIME`, or `RUN_AND_BUILD_TIME` (default).
     * 
     */
    public Optional> scope() {
        return Optional.ofNullable(this.scope);
    }

    /**
     * The type of the environment variable, `GENERAL` or `SECRET`.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return The type of the environment variable, `GENERAL` or `SECRET`.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    /**
     * 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 AppSpecJobEnvArgs() {}

    private AppSpecJobEnvArgs(AppSpecJobEnvArgs $) {
        this.key = $.key;
        this.scope = $.scope;
        this.type = $.type;
        this.value = $.value;
    }

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

    public static final class Builder {
        private AppSpecJobEnvArgs $;

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

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

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

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

        /**
         * @param scope The visibility scope of the environment variable. One of `RUN_TIME`, `BUILD_TIME`, or `RUN_AND_BUILD_TIME` (default).
         * 
         * @return builder
         * 
         */
        public Builder scope(@Nullable Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope The visibility scope of the environment variable. One of `RUN_TIME`, `BUILD_TIME`, or `RUN_AND_BUILD_TIME` (default).
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        /**
         * @param type The type of the environment variable, `GENERAL` or `SECRET`.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of the environment variable, `GENERAL` or `SECRET`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @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 AppSpecJobEnvArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy