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

com.pulumi.azurenative.web.outputs.GetWebAppSourceControlResult Maven / Gradle / Ivy

There is a newer version: 2.82.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.outputs;

import com.pulumi.azurenative.web.outputs.GitHubActionConfigurationResponse;
import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class GetWebAppSourceControlResult {
    /**
     * @return Name of branch to use for deployment.
     * 
     */
    private @Nullable String branch;
    /**
     * @return <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.
     * 
     */
    private @Nullable Boolean deploymentRollbackEnabled;
    /**
     * @return If GitHub Action is selected, than the associated configuration.
     * 
     */
    private @Nullable GitHubActionConfigurationResponse gitHubActionConfiguration;
    /**
     * @return Resource Id.
     * 
     */
    private String id;
    /**
     * @return <code>true</code> if this is deployed via GitHub action.
     * 
     */
    private @Nullable Boolean isGitHubAction;
    /**
     * @return <code>true</code> to limit to manual integration; <code>false</code> to enable continuous integration (which configures webhooks into online repos like GitHub).
     * 
     */
    private @Nullable Boolean isManualIntegration;
    /**
     * @return <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.
     * 
     */
    private @Nullable Boolean isMercurial;
    /**
     * @return Kind of resource.
     * 
     */
    private @Nullable String kind;
    /**
     * @return Resource Name.
     * 
     */
    private String name;
    /**
     * @return Repository or source control URL.
     * 
     */
    private @Nullable String repoUrl;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetWebAppSourceControlResult() {}
    /**
     * @return Name of branch to use for deployment.
     * 
     */
    public Optional branch() {
        return Optional.ofNullable(this.branch);
    }
    /**
     * @return <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.
     * 
     */
    public Optional deploymentRollbackEnabled() {
        return Optional.ofNullable(this.deploymentRollbackEnabled);
    }
    /**
     * @return If GitHub Action is selected, than the associated configuration.
     * 
     */
    public Optional gitHubActionConfiguration() {
        return Optional.ofNullable(this.gitHubActionConfiguration);
    }
    /**
     * @return Resource Id.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return <code>true</code> if this is deployed via GitHub action.
     * 
     */
    public Optional isGitHubAction() {
        return Optional.ofNullable(this.isGitHubAction);
    }
    /**
     * @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);
    }
    /**
     * @return <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.
     * 
     */
    public Optional isMercurial() {
        return Optional.ofNullable(this.isMercurial);
    }
    /**
     * @return Kind of resource.
     * 
     */
    public Optional kind() {
        return Optional.ofNullable(this.kind);
    }
    /**
     * @return Resource Name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Repository or source control URL.
     * 
     */
    public Optional repoUrl() {
        return Optional.ofNullable(this.repoUrl);
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetWebAppSourceControlResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String branch;
        private @Nullable Boolean deploymentRollbackEnabled;
        private @Nullable GitHubActionConfigurationResponse gitHubActionConfiguration;
        private String id;
        private @Nullable Boolean isGitHubAction;
        private @Nullable Boolean isManualIntegration;
        private @Nullable Boolean isMercurial;
        private @Nullable String kind;
        private String name;
        private @Nullable String repoUrl;
        private String type;
        public Builder() {}
        public Builder(GetWebAppSourceControlResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.branch = defaults.branch;
    	      this.deploymentRollbackEnabled = defaults.deploymentRollbackEnabled;
    	      this.gitHubActionConfiguration = defaults.gitHubActionConfiguration;
    	      this.id = defaults.id;
    	      this.isGitHubAction = defaults.isGitHubAction;
    	      this.isManualIntegration = defaults.isManualIntegration;
    	      this.isMercurial = defaults.isMercurial;
    	      this.kind = defaults.kind;
    	      this.name = defaults.name;
    	      this.repoUrl = defaults.repoUrl;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder branch(@Nullable String branch) {

            this.branch = branch;
            return this;
        }
        @CustomType.Setter
        public Builder deploymentRollbackEnabled(@Nullable Boolean deploymentRollbackEnabled) {

            this.deploymentRollbackEnabled = deploymentRollbackEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder gitHubActionConfiguration(@Nullable GitHubActionConfigurationResponse gitHubActionConfiguration) {

            this.gitHubActionConfiguration = gitHubActionConfiguration;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetWebAppSourceControlResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder isGitHubAction(@Nullable Boolean isGitHubAction) {

            this.isGitHubAction = isGitHubAction;
            return this;
        }
        @CustomType.Setter
        public Builder isManualIntegration(@Nullable Boolean isManualIntegration) {

            this.isManualIntegration = isManualIntegration;
            return this;
        }
        @CustomType.Setter
        public Builder isMercurial(@Nullable Boolean isMercurial) {

            this.isMercurial = isMercurial;
            return this;
        }
        @CustomType.Setter
        public Builder kind(@Nullable String kind) {

            this.kind = kind;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetWebAppSourceControlResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder repoUrl(@Nullable String repoUrl) {

            this.repoUrl = repoUrl;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetWebAppSourceControlResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetWebAppSourceControlResult build() {
            final var _resultValue = new GetWebAppSourceControlResult();
            _resultValue.branch = branch;
            _resultValue.deploymentRollbackEnabled = deploymentRollbackEnabled;
            _resultValue.gitHubActionConfiguration = gitHubActionConfiguration;
            _resultValue.id = id;
            _resultValue.isGitHubAction = isGitHubAction;
            _resultValue.isManualIntegration = isManualIntegration;
            _resultValue.isMercurial = isMercurial;
            _resultValue.kind = kind;
            _resultValue.name = name;
            _resultValue.repoUrl = repoUrl;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy