// *** 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.outputs;

import com.pulumi.azure.appservice.outputs.SourceControlGithubActionConfigurationCodeConfiguration;
import com.pulumi.azure.appservice.outputs.SourceControlGithubActionConfigurationContainerConfiguration;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class SourceControlGithubActionConfiguration {
    /**
     * @return A `code_configuration` block as defined above. Changing this forces a new resource to be created.
     * 
     */
    private @Nullable SourceControlGithubActionConfigurationCodeConfiguration codeConfiguration;
    /**
     * @return A `container_configuration` block as defined above.
     * 
     */
    private @Nullable SourceControlGithubActionConfigurationContainerConfiguration containerConfiguration;
    /**
     * @return Whether to generate the GitHub work flow file. Defaults to `true`. Changing this forces a new resource to be created.
     * 
     */
    private @Nullable Boolean generateWorkflowFile;
    private @Nullable Boolean linuxAction;

    private SourceControlGithubActionConfiguration() {}
    /**
     * @return A `code_configuration` block as defined above. Changing this forces a new resource to be created.
     * 
     */
    public Optional<SourceControlGithubActionConfigurationCodeConfiguration> codeConfiguration() {
        return Optional.ofNullable(this.codeConfiguration);
    }
    /**
     * @return A `container_configuration` block as defined above.
     * 
     */
    public Optional<SourceControlGithubActionConfigurationContainerConfiguration> containerConfiguration() {
        return Optional.ofNullable(this.containerConfiguration);
    }
    /**
     * @return Whether to generate the GitHub work flow file. Defaults to `true`. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Boolean> generateWorkflowFile() {
        return Optional.ofNullable(this.generateWorkflowFile);
    }
    public Optional<Boolean> linuxAction() {
        return Optional.ofNullable(this.linuxAction);
    }

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

    public static Builder builder(SourceControlGithubActionConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable SourceControlGithubActionConfigurationCodeConfiguration codeConfiguration;
        private @Nullable SourceControlGithubActionConfigurationContainerConfiguration containerConfiguration;
        private @Nullable Boolean generateWorkflowFile;
        private @Nullable Boolean linuxAction;
        public Builder() {}
        public Builder(SourceControlGithubActionConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.codeConfiguration = defaults.codeConfiguration;
    	      this.containerConfiguration = defaults.containerConfiguration;
    	      this.generateWorkflowFile = defaults.generateWorkflowFile;
    	      this.linuxAction = defaults.linuxAction;
        }

        @CustomType.Setter
        public Builder codeConfiguration(@Nullable SourceControlGithubActionConfigurationCodeConfiguration codeConfiguration) {
            this.codeConfiguration = codeConfiguration;
            return this;
        }
        @CustomType.Setter
        public Builder containerConfiguration(@Nullable SourceControlGithubActionConfigurationContainerConfiguration containerConfiguration) {
            this.containerConfiguration = containerConfiguration;
            return this;
        }
        @CustomType.Setter
        public Builder generateWorkflowFile(@Nullable Boolean generateWorkflowFile) {
            this.generateWorkflowFile = generateWorkflowFile;
            return this;
        }
        @CustomType.Setter
        public Builder linuxAction(@Nullable Boolean linuxAction) {
            this.linuxAction = linuxAction;
            return this;
        }
        public SourceControlGithubActionConfiguration build() {
            final var o = new SourceControlGithubActionConfiguration();
            o.codeConfiguration = codeConfiguration;
            o.containerConfiguration = containerConfiguration;
            o.generateWorkflowFile = generateWorkflowFile;
            o.linuxAction = linuxAction;
            return o;
        }
    }
}
