// *** 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.sql.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 GetDatabaseInstancePlainArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetDatabaseInstancePlainArgs Empty = new GetDatabaseInstancePlainArgs();

    /**
     * The name of the instance.
     * 
     */
    @Import(name="name", required=true)
    private String name;

    /**
     * @return The name of the instance.
     * 
     */
    public String name() {
        return this.name;
    }

    /**
     * The ID of the project in which the resource belongs.
     * 
     */
    @Import(name="project")
    private @Nullable String project;

    /**
     * @return The ID of the project in which the resource belongs.
     * 
     */
    public Optional<String> project() {
        return Optional.ofNullable(this.project);
    }

    private GetDatabaseInstancePlainArgs() {}

    private GetDatabaseInstancePlainArgs(GetDatabaseInstancePlainArgs $) {
        this.name = $.name;
        this.project = $.project;
    }

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

    public static final class Builder {
        private GetDatabaseInstancePlainArgs $;

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

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

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

        /**
         * @param project The ID of the project in which the resource belongs.
         * 
         * @return builder
         * 
         */
        public Builder project(@Nullable String project) {
            $.project = project;
            return this;
        }

        public GetDatabaseInstancePlainArgs build() {
            $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null");
            return $;
        }
    }

}
