// *** 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.billing.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 ProjectInfoState extends com.pulumi.resources.ResourceArgs {

    public static final ProjectInfoState Empty = new ProjectInfoState();

    /**
     * The ID of the billing account associated with the project, if
     * any. Set to empty string to disable billing for the project.
     * For example, `&#34;012345-567890-ABCDEF&#34;` or `&#34;&#34;`.
     * 
     * ***
     * 
     */
    @Import(name="billingAccount")
    private @Nullable Output<String> billingAccount;

    /**
     * @return The ID of the billing account associated with the project, if
     * any. Set to empty string to disable billing for the project.
     * For example, `&#34;012345-567890-ABCDEF&#34;` or `&#34;&#34;`.
     * 
     * ***
     * 
     */
    public Optional<Output<String>> billingAccount() {
        return Optional.ofNullable(this.billingAccount);
    }

    /**
     * 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 Output<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<Output<String>> project() {
        return Optional.ofNullable(this.project);
    }

    private ProjectInfoState() {}

    private ProjectInfoState(ProjectInfoState $) {
        this.billingAccount = $.billingAccount;
        this.project = $.project;
    }

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

    public static final class Builder {
        private ProjectInfoState $;

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

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

        /**
         * @param billingAccount The ID of the billing account associated with the project, if
         * any. Set to empty string to disable billing for the project.
         * For example, `&#34;012345-567890-ABCDEF&#34;` or `&#34;&#34;`.
         * 
         * ***
         * 
         * @return builder
         * 
         */
        public Builder billingAccount(@Nullable Output<String> billingAccount) {
            $.billingAccount = billingAccount;
            return this;
        }

        /**
         * @param billingAccount The ID of the billing account associated with the project, if
         * any. Set to empty string to disable billing for the project.
         * For example, `&#34;012345-567890-ABCDEF&#34;` or `&#34;&#34;`.
         * 
         * ***
         * 
         * @return builder
         * 
         */
        public Builder billingAccount(String billingAccount) {
            return billingAccount(Output.of(billingAccount));
        }

        /**
         * @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 Output<String> project) {
            $.project = project;
            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(String project) {
            return project(Output.of(project));
        }

        public ProjectInfoState build() {
            return $;
        }
    }

}
