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

com.pulumi.azurenative.web.WebAppSourceControlSlotArgs 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.web;

import com.pulumi.azurenative.web.inputs.GitHubActionConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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;


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

    public static final WebAppSourceControlSlotArgs Empty = new WebAppSourceControlSlotArgs();

    /**
     * Name of branch to use for deployment.
     * 
     */
    @Import(name="branch")
    private @Nullable Output branch;

    /**
     * @return Name of branch to use for deployment.
     * 
     */
    public Optional> branch() {
        return Optional.ofNullable(this.branch);
    }

    /**
     * <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.
     * 
     */
    @Import(name="deploymentRollbackEnabled")
    private @Nullable Output deploymentRollbackEnabled;

    /**
     * @return <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.
     * 
     */
    public Optional> deploymentRollbackEnabled() {
        return Optional.ofNullable(this.deploymentRollbackEnabled);
    }

    /**
     * If GitHub Action is selected, than the associated configuration.
     * 
     */
    @Import(name="gitHubActionConfiguration")
    private @Nullable Output gitHubActionConfiguration;

    /**
     * @return If GitHub Action is selected, than the associated configuration.
     * 
     */
    public Optional> gitHubActionConfiguration() {
        return Optional.ofNullable(this.gitHubActionConfiguration);
    }

    /**
     * <code>true</code> if this is deployed via GitHub action.
     * 
     */
    @Import(name="isGitHubAction")
    private @Nullable Output isGitHubAction;

    /**
     * @return <code>true</code> if this is deployed via GitHub action.
     * 
     */
    public Optional> isGitHubAction() {
        return Optional.ofNullable(this.isGitHubAction);
    }

    /**
     * <code>true</code> to limit to manual integration; <code>false</code> to enable continuous integration (which configures webhooks into online repos like GitHub).
     * 
     */
    @Import(name="isManualIntegration")
    private @Nullable Output isManualIntegration;

    /**
     * @return <code>true</code> to limit to manual integration; <code>false</code> to enable continuous integration (which configures webhooks into online repos like GitHub).
     * 
     */
    public Optional> isManualIntegration() {
        return Optional.ofNullable(this.isManualIntegration);
    }

    /**
     * <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.
     * 
     */
    @Import(name="isMercurial")
    private @Nullable Output isMercurial;

    /**
     * @return <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.
     * 
     */
    public Optional> isMercurial() {
        return Optional.ofNullable(this.isMercurial);
    }

    /**
     * Kind of resource.
     * 
     */
    @Import(name="kind")
    private @Nullable Output kind;

    /**
     * @return Kind of resource.
     * 
     */
    public Optional> kind() {
        return Optional.ofNullable(this.kind);
    }

    /**
     * Name of the app.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Name of the app.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Repository or source control URL.
     * 
     */
    @Import(name="repoUrl")
    private @Nullable Output repoUrl;

    /**
     * @return Repository or source control URL.
     * 
     */
    public Optional> repoUrl() {
        return Optional.ofNullable(this.repoUrl);
    }

    /**
     * Name of the resource group to which the resource belongs.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the resource group to which the resource belongs.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Name of the deployment slot. If a slot is not specified, the API will update the source control configuration for the production slot.
     * 
     */
    @Import(name="slot", required=true)
    private Output slot;

    /**
     * @return Name of the deployment slot. If a slot is not specified, the API will update the source control configuration for the production slot.
     * 
     */
    public Output slot() {
        return this.slot;
    }

    private WebAppSourceControlSlotArgs() {}

    private WebAppSourceControlSlotArgs(WebAppSourceControlSlotArgs $) {
        this.branch = $.branch;
        this.deploymentRollbackEnabled = $.deploymentRollbackEnabled;
        this.gitHubActionConfiguration = $.gitHubActionConfiguration;
        this.isGitHubAction = $.isGitHubAction;
        this.isManualIntegration = $.isManualIntegration;
        this.isMercurial = $.isMercurial;
        this.kind = $.kind;
        this.name = $.name;
        this.repoUrl = $.repoUrl;
        this.resourceGroupName = $.resourceGroupName;
        this.slot = $.slot;
    }

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

    public static final class Builder {
        private WebAppSourceControlSlotArgs $;

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

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

        /**
         * @param branch Name of branch to use for deployment.
         * 
         * @return builder
         * 
         */
        public Builder branch(@Nullable Output branch) {
            $.branch = branch;
            return this;
        }

        /**
         * @param branch Name of branch to use for deployment.
         * 
         * @return builder
         * 
         */
        public Builder branch(String branch) {
            return branch(Output.of(branch));
        }

        /**
         * @param deploymentRollbackEnabled <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.
         * 
         * @return builder
         * 
         */
        public Builder deploymentRollbackEnabled(@Nullable Output deploymentRollbackEnabled) {
            $.deploymentRollbackEnabled = deploymentRollbackEnabled;
            return this;
        }

        /**
         * @param deploymentRollbackEnabled <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.
         * 
         * @return builder
         * 
         */
        public Builder deploymentRollbackEnabled(Boolean deploymentRollbackEnabled) {
            return deploymentRollbackEnabled(Output.of(deploymentRollbackEnabled));
        }

        /**
         * @param gitHubActionConfiguration If GitHub Action is selected, than the associated configuration.
         * 
         * @return builder
         * 
         */
        public Builder gitHubActionConfiguration(@Nullable Output gitHubActionConfiguration) {
            $.gitHubActionConfiguration = gitHubActionConfiguration;
            return this;
        }

        /**
         * @param gitHubActionConfiguration If GitHub Action is selected, than the associated configuration.
         * 
         * @return builder
         * 
         */
        public Builder gitHubActionConfiguration(GitHubActionConfigurationArgs gitHubActionConfiguration) {
            return gitHubActionConfiguration(Output.of(gitHubActionConfiguration));
        }

        /**
         * @param isGitHubAction <code>true</code> if this is deployed via GitHub action.
         * 
         * @return builder
         * 
         */
        public Builder isGitHubAction(@Nullable Output isGitHubAction) {
            $.isGitHubAction = isGitHubAction;
            return this;
        }

        /**
         * @param isGitHubAction <code>true</code> if this is deployed via GitHub action.
         * 
         * @return builder
         * 
         */
        public Builder isGitHubAction(Boolean isGitHubAction) {
            return isGitHubAction(Output.of(isGitHubAction));
        }

        /**
         * @param isManualIntegration <code>true</code> to limit to manual integration; <code>false</code> to enable continuous integration (which configures webhooks into online repos like GitHub).
         * 
         * @return builder
         * 
         */
        public Builder isManualIntegration(@Nullable Output isManualIntegration) {
            $.isManualIntegration = isManualIntegration;
            return this;
        }

        /**
         * @param isManualIntegration <code>true</code> to limit to manual integration; <code>false</code> to enable continuous integration (which configures webhooks into online repos like GitHub).
         * 
         * @return builder
         * 
         */
        public Builder isManualIntegration(Boolean isManualIntegration) {
            return isManualIntegration(Output.of(isManualIntegration));
        }

        /**
         * @param isMercurial <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.
         * 
         * @return builder
         * 
         */
        public Builder isMercurial(@Nullable Output isMercurial) {
            $.isMercurial = isMercurial;
            return this;
        }

        /**
         * @param isMercurial <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.
         * 
         * @return builder
         * 
         */
        public Builder isMercurial(Boolean isMercurial) {
            return isMercurial(Output.of(isMercurial));
        }

        /**
         * @param kind Kind of resource.
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Kind of resource.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param name Name of the app.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the app.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param repoUrl Repository or source control URL.
         * 
         * @return builder
         * 
         */
        public Builder repoUrl(@Nullable Output repoUrl) {
            $.repoUrl = repoUrl;
            return this;
        }

        /**
         * @param repoUrl Repository or source control URL.
         * 
         * @return builder
         * 
         */
        public Builder repoUrl(String repoUrl) {
            return repoUrl(Output.of(repoUrl));
        }

        /**
         * @param resourceGroupName Name of the resource group to which the resource belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the resource group to which the resource belongs.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param slot Name of the deployment slot. If a slot is not specified, the API will update the source control configuration for the production slot.
         * 
         * @return builder
         * 
         */
        public Builder slot(Output slot) {
            $.slot = slot;
            return this;
        }

        /**
         * @param slot Name of the deployment slot. If a slot is not specified, the API will update the source control configuration for the production slot.
         * 
         * @return builder
         * 
         */
        public Builder slot(String slot) {
            return slot(Output.of(slot));
        }

        public WebAppSourceControlSlotArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("WebAppSourceControlSlotArgs", "name");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("WebAppSourceControlSlotArgs", "resourceGroupName");
            }
            if ($.slot == null) {
                throw new MissingRequiredPropertyException("WebAppSourceControlSlotArgs", "slot");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy