// *** 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.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetSubnetworkPlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetSubnetworkPlainArgs Empty = new GetSubnetworkPlainArgs();

    /**
     * The name of the subnetwork. One of `name` or `self_link`
     * must be specified.
     * 
     */
    @Import(name="name")
    private @Nullable String name;

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

    /**
     * The ID of the project in which the resource belongs. If it
     * is not provided, the provider project is used.
     * 
     */
    @Import(name="project")
    private @Nullable String project;

    /**
     * @return The ID of the project in which the resource belongs. If it
     * is not provided, the provider project is used.
     * 
     */
    public Optional<String> project() {
        return Optional.ofNullable(this.project);
    }

    /**
     * The region this subnetwork has been created in. If
     * unspecified, this defaults to the region configured in the provider.
     * 
     */
    @Import(name="region")
    private @Nullable String region;

    /**
     * @return The region this subnetwork has been created in. If
     * unspecified, this defaults to the region configured in the provider.
     * 
     */
    public Optional<String> region() {
        return Optional.ofNullable(this.region);
    }

    /**
     * The self link of the subnetwork. If `self_link` is
     * specified, `name`, `project`, and `region` are ignored.
     * 
     */
    @Import(name="selfLink")
    private @Nullable String selfLink;

    /**
     * @return The self link of the subnetwork. If `self_link` is
     * specified, `name`, `project`, and `region` are ignored.
     * 
     */
    public Optional<String> selfLink() {
        return Optional.ofNullable(this.selfLink);
    }

    private GetSubnetworkPlainArgs() {}

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

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

    public static final class Builder {
        private GetSubnetworkPlainArgs $;

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

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

        /**
         * @param name The name of the subnetwork. One of `name` or `self_link`
         * must be specified.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable String name) {
            $.name = name;
            return this;
        }

        /**
         * @param project The ID of the project in which the resource belongs. If it
         * is not provided, the provider project is used.
         * 
         * @return builder
         * 
         */
        public Builder project(@Nullable String project) {
            $.project = project;
            return this;
        }

        /**
         * @param region The region this subnetwork has been created in. If
         * unspecified, this defaults to the region configured in the provider.
         * 
         * @return builder
         * 
         */
        public Builder region(@Nullable String region) {
            $.region = region;
            return this;
        }

        /**
         * @param selfLink The self link of the subnetwork. If `self_link` is
         * specified, `name`, `project`, and `region` are ignored.
         * 
         * @return builder
         * 
         */
        public Builder selfLink(@Nullable String selfLink) {
            $.selfLink = selfLink;
            return this;
        }

        public GetSubnetworkPlainArgs build() {
            return $;
        }
    }

}
