// *** 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.dataform.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.dataform.inputs.RepositoryGitRemoteSettingsArgs;
import com.pulumi.gcp.dataform.inputs.RepositoryWorkspaceCompilationOverridesArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class RepositoryState extends com.pulumi.resources.ResourceArgs {

    public static final RepositoryState Empty = new RepositoryState();

    /**
     * Optional. If set, configures this repository to be linked to a Git remote.
     * Structure is documented below.
     * 
     */
    @Import(name="gitRemoteSettings")
    private @Nullable Output<RepositoryGitRemoteSettingsArgs> gitRemoteSettings;

    /**
     * @return Optional. If set, configures this repository to be linked to a Git remote.
     * Structure is documented below.
     * 
     */
    public Optional<Output<RepositoryGitRemoteSettingsArgs>> gitRemoteSettings() {
        return Optional.ofNullable(this.gitRemoteSettings);
    }

    /**
     * The repository&#39;s name.
     * 
     * ***
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return The repository&#39;s name.
     * 
     * ***
     * 
     */
    public Optional<Output<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 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);
    }

    /**
     * A reference to the region
     * 
     */
    @Import(name="region")
    private @Nullable Output<String> region;

    /**
     * @return A reference to the region
     * 
     */
    public Optional<Output<String>> region() {
        return Optional.ofNullable(this.region);
    }

    /**
     * Optional. If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results.
     * Structure is documented below.
     * 
     */
    @Import(name="workspaceCompilationOverrides")
    private @Nullable Output<RepositoryWorkspaceCompilationOverridesArgs> workspaceCompilationOverrides;

    /**
     * @return Optional. If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results.
     * Structure is documented below.
     * 
     */
    public Optional<Output<RepositoryWorkspaceCompilationOverridesArgs>> workspaceCompilationOverrides() {
        return Optional.ofNullable(this.workspaceCompilationOverrides);
    }

    private RepositoryState() {}

    private RepositoryState(RepositoryState $) {
        this.gitRemoteSettings = $.gitRemoteSettings;
        this.name = $.name;
        this.project = $.project;
        this.region = $.region;
        this.workspaceCompilationOverrides = $.workspaceCompilationOverrides;
    }

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

    public static final class Builder {
        private RepositoryState $;

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

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

        /**
         * @param gitRemoteSettings Optional. If set, configures this repository to be linked to a Git remote.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder gitRemoteSettings(@Nullable Output<RepositoryGitRemoteSettingsArgs> gitRemoteSettings) {
            $.gitRemoteSettings = gitRemoteSettings;
            return this;
        }

        /**
         * @param gitRemoteSettings Optional. If set, configures this repository to be linked to a Git remote.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder gitRemoteSettings(RepositoryGitRemoteSettingsArgs gitRemoteSettings) {
            return gitRemoteSettings(Output.of(gitRemoteSettings));
        }

        /**
         * @param name The repository&#39;s name.
         * 
         * ***
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The repository&#39;s name.
         * 
         * ***
         * 
         * @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 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));
        }

        /**
         * @param region A reference to the region
         * 
         * @return builder
         * 
         */
        public Builder region(@Nullable Output<String> region) {
            $.region = region;
            return this;
        }

        /**
         * @param region A reference to the region
         * 
         * @return builder
         * 
         */
        public Builder region(String region) {
            return region(Output.of(region));
        }

        /**
         * @param workspaceCompilationOverrides Optional. If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder workspaceCompilationOverrides(@Nullable Output<RepositoryWorkspaceCompilationOverridesArgs> workspaceCompilationOverrides) {
            $.workspaceCompilationOverrides = workspaceCompilationOverrides;
            return this;
        }

        /**
         * @param workspaceCompilationOverrides Optional. If set, fields of workspaceCompilationOverrides override the default compilation settings that are specified in dataform.json when creating workspace-scoped compilation results.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder workspaceCompilationOverrides(RepositoryWorkspaceCompilationOverridesArgs workspaceCompilationOverrides) {
            return workspaceCompilationOverrides(Output.of(workspaceCompilationOverrides));
        }

        public RepositoryState build() {
            return $;
        }
    }

}
