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

com.pulumi.azure.appservice.inputs.SourceControlState 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.appservice.inputs;

import com.pulumi.azure.appservice.inputs.SourceControlGithubActionConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SourceControlState Empty = new SourceControlState();

    /**
     * The ID of the Windows or Linux Web App. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** Function apps are not supported at this time.
     * 
     */
    @Import(name="appId")
    private @Nullable Output appId;

    /**
     * @return The ID of the Windows or Linux Web App. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** Function apps are not supported at this time.
     * 
     */
    public Optional> appId() {
        return Optional.ofNullable(this.appId);
    }

    /**
     * The branch name to use for deployments. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="branch")
    private @Nullable Output branch;

    /**
     * @return The branch name to use for deployments. Changing this forces a new resource to be created.
     * 
     */
    public Optional> branch() {
        return Optional.ofNullable(this.branch);
    }

    /**
     * A `github_action_configuration` block as defined below. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="githubActionConfiguration")
    private @Nullable Output githubActionConfiguration;

    /**
     * @return A `github_action_configuration` block as defined below. Changing this forces a new resource to be created.
     * 
     */
    public Optional> githubActionConfiguration() {
        return Optional.ofNullable(this.githubActionConfiguration);
    }

    /**
     * The URL for the repository. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="repoUrl")
    private @Nullable Output repoUrl;

    /**
     * @return The URL for the repository. Changing this forces a new resource to be created.
     * 
     */
    public Optional> repoUrl() {
        return Optional.ofNullable(this.repoUrl);
    }

    /**
     * Should the Deployment Rollback be enabled? Defaults to `false`. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** Azure can typically set this value automatically based on the `repo_url` value.
     * 
     */
    @Import(name="rollbackEnabled")
    private @Nullable Output rollbackEnabled;

    /**
     * @return Should the Deployment Rollback be enabled? Defaults to `false`. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** Azure can typically set this value automatically based on the `repo_url` value.
     * 
     */
    public Optional> rollbackEnabled() {
        return Optional.ofNullable(this.rollbackEnabled);
    }

    /**
     * The SCM Type in use. This value is decoded by the service from the repository information supplied.
     * 
     */
    @Import(name="scmType")
    private @Nullable Output scmType;

    /**
     * @return The SCM Type in use. This value is decoded by the service from the repository information supplied.
     * 
     */
    public Optional> scmType() {
        return Optional.ofNullable(this.scmType);
    }

    /**
     * Should the App use local Git configuration. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="useLocalGit")
    private @Nullable Output useLocalGit;

    /**
     * @return Should the App use local Git configuration. Changing this forces a new resource to be created.
     * 
     */
    public Optional> useLocalGit() {
        return Optional.ofNullable(this.useLocalGit);
    }

    /**
     * Should code be deployed manually. Set to `false` to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="useManualIntegration")
    private @Nullable Output useManualIntegration;

    /**
     * @return Should code be deployed manually. Set to `false` to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created.
     * 
     */
    public Optional> useManualIntegration() {
        return Optional.ofNullable(this.useManualIntegration);
    }

    /**
     * The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="useMercurial")
    private @Nullable Output useMercurial;

    /**
     * @return The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created.
     * 
     */
    public Optional> useMercurial() {
        return Optional.ofNullable(this.useMercurial);
    }

    /**
     * Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied.
     * 
     */
    @Import(name="usesGithubAction")
    private @Nullable Output usesGithubAction;

    /**
     * @return Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied.
     * 
     */
    public Optional> usesGithubAction() {
        return Optional.ofNullable(this.usesGithubAction);
    }

    private SourceControlState() {}

    private SourceControlState(SourceControlState $) {
        this.appId = $.appId;
        this.branch = $.branch;
        this.githubActionConfiguration = $.githubActionConfiguration;
        this.repoUrl = $.repoUrl;
        this.rollbackEnabled = $.rollbackEnabled;
        this.scmType = $.scmType;
        this.useLocalGit = $.useLocalGit;
        this.useManualIntegration = $.useManualIntegration;
        this.useMercurial = $.useMercurial;
        this.usesGithubAction = $.usesGithubAction;
    }

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

    public static final class Builder {
        private SourceControlState $;

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

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

        /**
         * @param appId The ID of the Windows or Linux Web App. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** Function apps are not supported at this time.
         * 
         * @return builder
         * 
         */
        public Builder appId(@Nullable Output appId) {
            $.appId = appId;
            return this;
        }

        /**
         * @param appId The ID of the Windows or Linux Web App. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** Function apps are not supported at this time.
         * 
         * @return builder
         * 
         */
        public Builder appId(String appId) {
            return appId(Output.of(appId));
        }

        /**
         * @param branch The branch name to use for deployments. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder branch(@Nullable Output branch) {
            $.branch = branch;
            return this;
        }

        /**
         * @param branch The branch name to use for deployments. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder branch(String branch) {
            return branch(Output.of(branch));
        }

        /**
         * @param githubActionConfiguration A `github_action_configuration` block as defined below. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder githubActionConfiguration(@Nullable Output githubActionConfiguration) {
            $.githubActionConfiguration = githubActionConfiguration;
            return this;
        }

        /**
         * @param githubActionConfiguration A `github_action_configuration` block as defined below. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder githubActionConfiguration(SourceControlGithubActionConfigurationArgs githubActionConfiguration) {
            return githubActionConfiguration(Output.of(githubActionConfiguration));
        }

        /**
         * @param repoUrl The URL for the repository. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder repoUrl(@Nullable Output repoUrl) {
            $.repoUrl = repoUrl;
            return this;
        }

        /**
         * @param repoUrl The URL for the repository. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder repoUrl(String repoUrl) {
            return repoUrl(Output.of(repoUrl));
        }

        /**
         * @param rollbackEnabled Should the Deployment Rollback be enabled? Defaults to `false`. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** Azure can typically set this value automatically based on the `repo_url` value.
         * 
         * @return builder
         * 
         */
        public Builder rollbackEnabled(@Nullable Output rollbackEnabled) {
            $.rollbackEnabled = rollbackEnabled;
            return this;
        }

        /**
         * @param rollbackEnabled Should the Deployment Rollback be enabled? Defaults to `false`. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** Azure can typically set this value automatically based on the `repo_url` value.
         * 
         * @return builder
         * 
         */
        public Builder rollbackEnabled(Boolean rollbackEnabled) {
            return rollbackEnabled(Output.of(rollbackEnabled));
        }

        /**
         * @param scmType The SCM Type in use. This value is decoded by the service from the repository information supplied.
         * 
         * @return builder
         * 
         */
        public Builder scmType(@Nullable Output scmType) {
            $.scmType = scmType;
            return this;
        }

        /**
         * @param scmType The SCM Type in use. This value is decoded by the service from the repository information supplied.
         * 
         * @return builder
         * 
         */
        public Builder scmType(String scmType) {
            return scmType(Output.of(scmType));
        }

        /**
         * @param useLocalGit Should the App use local Git configuration. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder useLocalGit(@Nullable Output useLocalGit) {
            $.useLocalGit = useLocalGit;
            return this;
        }

        /**
         * @param useLocalGit Should the App use local Git configuration. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder useLocalGit(Boolean useLocalGit) {
            return useLocalGit(Output.of(useLocalGit));
        }

        /**
         * @param useManualIntegration Should code be deployed manually. Set to `false` to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder useManualIntegration(@Nullable Output useManualIntegration) {
            $.useManualIntegration = useManualIntegration;
            return this;
        }

        /**
         * @param useManualIntegration Should code be deployed manually. Set to `false` to enable continuous integration, such as webhooks into online repos such as GitHub. Defaults to `false`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder useManualIntegration(Boolean useManualIntegration) {
            return useManualIntegration(Output.of(useManualIntegration));
        }

        /**
         * @param useMercurial The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder useMercurial(@Nullable Output useMercurial) {
            $.useMercurial = useMercurial;
            return this;
        }

        /**
         * @param useMercurial The repository specified is Mercurial. Defaults to `false`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder useMercurial(Boolean useMercurial) {
            return useMercurial(Output.of(useMercurial));
        }

        /**
         * @param usesGithubAction Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied.
         * 
         * @return builder
         * 
         */
        public Builder usesGithubAction(@Nullable Output usesGithubAction) {
            $.usesGithubAction = usesGithubAction;
            return this;
        }

        /**
         * @param usesGithubAction Indicates if the Slot uses a GitHub action for deployment. This value is decoded by the service from the repository information supplied.
         * 
         * @return builder
         * 
         */
        public Builder usesGithubAction(Boolean usesGithubAction) {
            return usesGithubAction(Output.of(usesGithubAction));
        }

        public SourceControlState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy