All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.synapse.inputs.WorkspaceGithubRepoArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** 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.azure.synapse.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final WorkspaceGithubRepoArgs Empty = new WorkspaceGithubRepoArgs();

    /**
     * Specifies the GitHub account name.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return Specifies the GitHub account name.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * Specifies the collaboration branch of the repository to get code from.
     * 
     */
    @Import(name="branchName", required=true)
    private Output branchName;

    /**
     * @return Specifies the collaboration branch of the repository to get code from.
     * 
     */
    public Output branchName() {
        return this.branchName;
    }

    /**
     * Specifies the GitHub Enterprise host name. For example: <https://github.mydomain.com>.
     * 
     * > **Note:** You must log in to the Synapse UI to complete the authentication to the GitHub repository.
     * 
     */
    @Import(name="gitUrl")
    private @Nullable Output gitUrl;

    /**
     * @return Specifies the GitHub Enterprise host name. For example: <https://github.mydomain.com>.
     * 
     * > **Note:** You must log in to the Synapse UI to complete the authentication to the GitHub repository.
     * 
     */
    public Optional> gitUrl() {
        return Optional.ofNullable(this.gitUrl);
    }

    /**
     * The last commit ID.
     * 
     */
    @Import(name="lastCommitId")
    private @Nullable Output lastCommitId;

    /**
     * @return The last commit ID.
     * 
     */
    public Optional> lastCommitId() {
        return Optional.ofNullable(this.lastCommitId);
    }

    /**
     * Specifies the name of the git repository.
     * 
     */
    @Import(name="repositoryName", required=true)
    private Output repositoryName;

    /**
     * @return Specifies the name of the git repository.
     * 
     */
    public Output repositoryName() {
        return this.repositoryName;
    }

    /**
     * Specifies the root folder within the repository. Set to `/` for the top level.
     * 
     */
    @Import(name="rootFolder", required=true)
    private Output rootFolder;

    /**
     * @return Specifies the root folder within the repository. Set to `/` for the top level.
     * 
     */
    public Output rootFolder() {
        return this.rootFolder;
    }

    private WorkspaceGithubRepoArgs() {}

    private WorkspaceGithubRepoArgs(WorkspaceGithubRepoArgs $) {
        this.accountName = $.accountName;
        this.branchName = $.branchName;
        this.gitUrl = $.gitUrl;
        this.lastCommitId = $.lastCommitId;
        this.repositoryName = $.repositoryName;
        this.rootFolder = $.rootFolder;
    }

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

    public static final class Builder {
        private WorkspaceGithubRepoArgs $;

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

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

        /**
         * @param accountName Specifies the GitHub account name.
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param accountName Specifies the GitHub account name.
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

        /**
         * @param branchName Specifies the collaboration branch of the repository to get code from.
         * 
         * @return builder
         * 
         */
        public Builder branchName(Output branchName) {
            $.branchName = branchName;
            return this;
        }

        /**
         * @param branchName Specifies the collaboration branch of the repository to get code from.
         * 
         * @return builder
         * 
         */
        public Builder branchName(String branchName) {
            return branchName(Output.of(branchName));
        }

        /**
         * @param gitUrl Specifies the GitHub Enterprise host name. For example: <https://github.mydomain.com>.
         * 
         * > **Note:** You must log in to the Synapse UI to complete the authentication to the GitHub repository.
         * 
         * @return builder
         * 
         */
        public Builder gitUrl(@Nullable Output gitUrl) {
            $.gitUrl = gitUrl;
            return this;
        }

        /**
         * @param gitUrl Specifies the GitHub Enterprise host name. For example: <https://github.mydomain.com>.
         * 
         * > **Note:** You must log in to the Synapse UI to complete the authentication to the GitHub repository.
         * 
         * @return builder
         * 
         */
        public Builder gitUrl(String gitUrl) {
            return gitUrl(Output.of(gitUrl));
        }

        /**
         * @param lastCommitId The last commit ID.
         * 
         * @return builder
         * 
         */
        public Builder lastCommitId(@Nullable Output lastCommitId) {
            $.lastCommitId = lastCommitId;
            return this;
        }

        /**
         * @param lastCommitId The last commit ID.
         * 
         * @return builder
         * 
         */
        public Builder lastCommitId(String lastCommitId) {
            return lastCommitId(Output.of(lastCommitId));
        }

        /**
         * @param repositoryName Specifies the name of the git repository.
         * 
         * @return builder
         * 
         */
        public Builder repositoryName(Output repositoryName) {
            $.repositoryName = repositoryName;
            return this;
        }

        /**
         * @param repositoryName Specifies the name of the git repository.
         * 
         * @return builder
         * 
         */
        public Builder repositoryName(String repositoryName) {
            return repositoryName(Output.of(repositoryName));
        }

        /**
         * @param rootFolder Specifies the root folder within the repository. Set to `/` for the top level.
         * 
         * @return builder
         * 
         */
        public Builder rootFolder(Output rootFolder) {
            $.rootFolder = rootFolder;
            return this;
        }

        /**
         * @param rootFolder Specifies the root folder within the repository. Set to `/` for the top level.
         * 
         * @return builder
         * 
         */
        public Builder rootFolder(String rootFolder) {
            return rootFolder(Output.of(rootFolder));
        }

        public WorkspaceGithubRepoArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("WorkspaceGithubRepoArgs", "accountName");
            }
            if ($.branchName == null) {
                throw new MissingRequiredPropertyException("WorkspaceGithubRepoArgs", "branchName");
            }
            if ($.repositoryName == null) {
                throw new MissingRequiredPropertyException("WorkspaceGithubRepoArgs", "repositoryName");
            }
            if ($.rootFolder == null) {
                throw new MissingRequiredPropertyException("WorkspaceGithubRepoArgs", "rootFolder");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy