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

com.pulumi.azurenative.datafactory.inputs.FactoryGitHubConfigurationArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.datafactory.inputs;

import com.pulumi.azurenative.datafactory.inputs.GitHubClientSecretArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Factory's GitHub repo information.
 * 
 */
public final class FactoryGitHubConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final FactoryGitHubConfigurationArgs Empty = new FactoryGitHubConfigurationArgs();

    /**
     * Account name.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return Account name.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * GitHub bring your own app client id.
     * 
     */
    @Import(name="clientId")
    private @Nullable Output clientId;

    /**
     * @return GitHub bring your own app client id.
     * 
     */
    public Optional> clientId() {
        return Optional.ofNullable(this.clientId);
    }

    /**
     * GitHub bring your own app client secret information.
     * 
     */
    @Import(name="clientSecret")
    private @Nullable Output clientSecret;

    /**
     * @return GitHub bring your own app client secret information.
     * 
     */
    public Optional> clientSecret() {
        return Optional.ofNullable(this.clientSecret);
    }

    /**
     * Collaboration branch.
     * 
     */
    @Import(name="collaborationBranch", required=true)
    private Output collaborationBranch;

    /**
     * @return Collaboration branch.
     * 
     */
    public Output collaborationBranch() {
        return this.collaborationBranch;
    }

    /**
     * Disable manual publish operation in ADF studio to favor automated publish.
     * 
     */
    @Import(name="disablePublish")
    private @Nullable Output disablePublish;

    /**
     * @return Disable manual publish operation in ADF studio to favor automated publish.
     * 
     */
    public Optional> disablePublish() {
        return Optional.ofNullable(this.disablePublish);
    }

    /**
     * GitHub Enterprise host name. For example: `https://github.mydomain.com`
     * 
     */
    @Import(name="hostName")
    private @Nullable Output hostName;

    /**
     * @return GitHub Enterprise host name. For example: `https://github.mydomain.com`
     * 
     */
    public Optional> hostName() {
        return Optional.ofNullable(this.hostName);
    }

    /**
     * Last commit id.
     * 
     */
    @Import(name="lastCommitId")
    private @Nullable Output lastCommitId;

    /**
     * @return Last commit id.
     * 
     */
    public Optional> lastCommitId() {
        return Optional.ofNullable(this.lastCommitId);
    }

    /**
     * Repository name.
     * 
     */
    @Import(name="repositoryName", required=true)
    private Output repositoryName;

    /**
     * @return Repository name.
     * 
     */
    public Output repositoryName() {
        return this.repositoryName;
    }

    /**
     * Root folder.
     * 
     */
    @Import(name="rootFolder", required=true)
    private Output rootFolder;

    /**
     * @return Root folder.
     * 
     */
    public Output rootFolder() {
        return this.rootFolder;
    }

    /**
     * Type of repo configuration.
     * Expected value is 'FactoryGitHubConfiguration'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Type of repo configuration.
     * Expected value is 'FactoryGitHubConfiguration'.
     * 
     */
    public Output type() {
        return this.type;
    }

    private FactoryGitHubConfigurationArgs() {}

    private FactoryGitHubConfigurationArgs(FactoryGitHubConfigurationArgs $) {
        this.accountName = $.accountName;
        this.clientId = $.clientId;
        this.clientSecret = $.clientSecret;
        this.collaborationBranch = $.collaborationBranch;
        this.disablePublish = $.disablePublish;
        this.hostName = $.hostName;
        this.lastCommitId = $.lastCommitId;
        this.repositoryName = $.repositoryName;
        this.rootFolder = $.rootFolder;
        this.type = $.type;
    }

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

    public static final class Builder {
        private FactoryGitHubConfigurationArgs $;

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

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

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

        /**
         * @param accountName Account name.
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

        /**
         * @param clientId GitHub bring your own app client id.
         * 
         * @return builder
         * 
         */
        public Builder clientId(@Nullable Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId GitHub bring your own app client id.
         * 
         * @return builder
         * 
         */
        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param clientSecret GitHub bring your own app client secret information.
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(@Nullable Output clientSecret) {
            $.clientSecret = clientSecret;
            return this;
        }

        /**
         * @param clientSecret GitHub bring your own app client secret information.
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(GitHubClientSecretArgs clientSecret) {
            return clientSecret(Output.of(clientSecret));
        }

        /**
         * @param collaborationBranch Collaboration branch.
         * 
         * @return builder
         * 
         */
        public Builder collaborationBranch(Output collaborationBranch) {
            $.collaborationBranch = collaborationBranch;
            return this;
        }

        /**
         * @param collaborationBranch Collaboration branch.
         * 
         * @return builder
         * 
         */
        public Builder collaborationBranch(String collaborationBranch) {
            return collaborationBranch(Output.of(collaborationBranch));
        }

        /**
         * @param disablePublish Disable manual publish operation in ADF studio to favor automated publish.
         * 
         * @return builder
         * 
         */
        public Builder disablePublish(@Nullable Output disablePublish) {
            $.disablePublish = disablePublish;
            return this;
        }

        /**
         * @param disablePublish Disable manual publish operation in ADF studio to favor automated publish.
         * 
         * @return builder
         * 
         */
        public Builder disablePublish(Boolean disablePublish) {
            return disablePublish(Output.of(disablePublish));
        }

        /**
         * @param hostName GitHub Enterprise host name. For example: `https://github.mydomain.com`
         * 
         * @return builder
         * 
         */
        public Builder hostName(@Nullable Output hostName) {
            $.hostName = hostName;
            return this;
        }

        /**
         * @param hostName GitHub Enterprise host name. For example: `https://github.mydomain.com`
         * 
         * @return builder
         * 
         */
        public Builder hostName(String hostName) {
            return hostName(Output.of(hostName));
        }

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

        /**
         * @param lastCommitId Last commit id.
         * 
         * @return builder
         * 
         */
        public Builder lastCommitId(String lastCommitId) {
            return lastCommitId(Output.of(lastCommitId));
        }

        /**
         * @param repositoryName Repository name.
         * 
         * @return builder
         * 
         */
        public Builder repositoryName(Output repositoryName) {
            $.repositoryName = repositoryName;
            return this;
        }

        /**
         * @param repositoryName Repository name.
         * 
         * @return builder
         * 
         */
        public Builder repositoryName(String repositoryName) {
            return repositoryName(Output.of(repositoryName));
        }

        /**
         * @param rootFolder Root folder.
         * 
         * @return builder
         * 
         */
        public Builder rootFolder(Output rootFolder) {
            $.rootFolder = rootFolder;
            return this;
        }

        /**
         * @param rootFolder Root folder.
         * 
         * @return builder
         * 
         */
        public Builder rootFolder(String rootFolder) {
            return rootFolder(Output.of(rootFolder));
        }

        /**
         * @param type Type of repo configuration.
         * Expected value is 'FactoryGitHubConfiguration'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of repo configuration.
         * Expected value is 'FactoryGitHubConfiguration'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public FactoryGitHubConfigurationArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("FactoryGitHubConfigurationArgs", "accountName");
            }
            if ($.collaborationBranch == null) {
                throw new MissingRequiredPropertyException("FactoryGitHubConfigurationArgs", "collaborationBranch");
            }
            if ($.repositoryName == null) {
                throw new MissingRequiredPropertyException("FactoryGitHubConfigurationArgs", "repositoryName");
            }
            if ($.rootFolder == null) {
                throw new MissingRequiredPropertyException("FactoryGitHubConfigurationArgs", "rootFolder");
            }
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy