// *** 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.gcp.compute.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 GetRegionInstanceGroupArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetRegionInstanceGroupArgs Empty = new GetRegionInstanceGroupArgs();

    /**
     * The name of the instance group.  One of `name` or `self_link` must be provided.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return The name of the instance group.  One of `name` or `self_link` must be provided.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The ID of the project in which the resource belongs.
     * If `self_link` is provided, this value is ignored.  If neither `self_link`
     * nor `project` are provided, the provider project is used.
     * 
     */
    @Import(name="project")
    private @Nullable Output<String> project;

    /**
     * @return The ID of the project in which the resource belongs.
     * If `self_link` is provided, this value is ignored.  If neither `self_link`
     * nor `project` are provided, the provider project is used.
     * 
     */
    public Optional<Output<String>> project() {
        return Optional.ofNullable(this.project);
    }

    /**
     * The region in which the resource belongs.  If `self_link`
     * is provided, this value is ignored.  If neither `self_link` nor `region` are
     * provided, the provider region is used.
     * 
     */
    @Import(name="region")
    private @Nullable Output<String> region;

    /**
     * @return The region in which the resource belongs.  If `self_link`
     * is provided, this value is ignored.  If neither `self_link` nor `region` are
     * provided, the provider region is used.
     * 
     */
    public Optional<Output<String>> region() {
        return Optional.ofNullable(this.region);
    }

    /**
     * The link to the instance group.  One of `name` or `self_link` must be provided.
     * 
     * ***
     * 
     */
    @Import(name="selfLink")
    private @Nullable Output<String> selfLink;

    /**
     * @return The link to the instance group.  One of `name` or `self_link` must be provided.
     * 
     * ***
     * 
     */
    public Optional<Output<String>> selfLink() {
        return Optional.ofNullable(this.selfLink);
    }

    private GetRegionInstanceGroupArgs() {}

    private GetRegionInstanceGroupArgs(GetRegionInstanceGroupArgs $) {
        this.name = $.name;
        this.project = $.project;
        this.region = $.region;
        this.selfLink = $.selfLink;
    }

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

    public static final class Builder {
        private GetRegionInstanceGroupArgs $;

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

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

        /**
         * @param name The name of the instance group.  One of `name` or `self_link` must be provided.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the instance group.  One of `name` or `self_link` must be provided.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param project The ID of the project in which the resource belongs.
         * If `self_link` is provided, this value is ignored.  If neither `self_link`
         * nor `project` are provided, the provider project is used.
         * 
         * @return builder
         * 
         */
        public Builder project(@Nullable Output<String> project) {
            $.project = project;
            return this;
        }

        /**
         * @param project The ID of the project in which the resource belongs.
         * If `self_link` is provided, this value is ignored.  If neither `self_link`
         * nor `project` are provided, the provider project is used.
         * 
         * @return builder
         * 
         */
        public Builder project(String project) {
            return project(Output.of(project));
        }

        /**
         * @param region The region in which the resource belongs.  If `self_link`
         * is provided, this value is ignored.  If neither `self_link` nor `region` are
         * provided, the provider region is used.
         * 
         * @return builder
         * 
         */
        public Builder region(@Nullable Output<String> region) {
            $.region = region;
            return this;
        }

        /**
         * @param region The region in which the resource belongs.  If `self_link`
         * is provided, this value is ignored.  If neither `self_link` nor `region` are
         * provided, the provider region is used.
         * 
         * @return builder
         * 
         */
        public Builder region(String region) {
            return region(Output.of(region));
        }

        /**
         * @param selfLink The link to the instance group.  One of `name` or `self_link` must be provided.
         * 
         * ***
         * 
         * @return builder
         * 
         */
        public Builder selfLink(@Nullable Output<String> selfLink) {
            $.selfLink = selfLink;
            return this;
        }

        /**
         * @param selfLink The link to the instance group.  One of `name` or `self_link` must be provided.
         * 
         * ***
         * 
         * @return builder
         * 
         */
        public Builder selfLink(String selfLink) {
            return selfLink(Output.of(selfLink));
        }

        public GetRegionInstanceGroupArgs build() {
            return $;
        }
    }

}
