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

com.pulumi.gitlab.inputs.GetGroupVariableArgs Maven / Gradle / Ivy

The 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.gitlab.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 GetGroupVariableArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetGroupVariableArgs Empty = new GetGroupVariableArgs();

    /**
     * The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans.
     * 
     */
    @Import(name="environmentScope")
    private @Nullable Output environmentScope;

    /**
     * @return The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans.
     * 
     */
    public Optional> environmentScope() {
        return Optional.ofNullable(this.environmentScope);
    }

    /**
     * The name or id of the group.
     * 
     */
    @Import(name="group", required=true)
    private Output group;

    /**
     * @return The name or id of the group.
     * 
     */
    public Output group() {
        return this.group;
    }

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

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

    private GetGroupVariableArgs() {}

    private GetGroupVariableArgs(GetGroupVariableArgs $) {
        this.environmentScope = $.environmentScope;
        this.group = $.group;
        this.key = $.key;
    }

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

    public static final class Builder {
        private GetGroupVariableArgs $;

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

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

        /**
         * @param environmentScope The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans.
         * 
         * @return builder
         * 
         */
        public Builder environmentScope(@Nullable Output environmentScope) {
            $.environmentScope = environmentScope;
            return this;
        }

        /**
         * @param environmentScope The environment scope of the variable. Defaults to all environment (`*`). Note that in Community Editions of Gitlab, values other than `*` will cause inconsistent plans.
         * 
         * @return builder
         * 
         */
        public Builder environmentScope(String environmentScope) {
            return environmentScope(Output.of(environmentScope));
        }

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

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

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

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

        public GetGroupVariableArgs build() {
            if ($.group == null) {
                throw new MissingRequiredPropertyException("GetGroupVariableArgs", "group");
            }
            if ($.key == null) {
                throw new MissingRequiredPropertyException("GetGroupVariableArgs", "key");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy