// *** 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.SourceControlGithubActionConfigurationCodeConfigurationArgs;
import com.pulumi.azure.appservice.inputs.SourceControlGithubActionConfigurationContainerConfigurationArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SourceControlGithubActionConfigurationArgs Empty = new SourceControlGithubActionConfigurationArgs();

    /**
     * A `code_configuration` block as defined above. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="codeConfiguration")
    private @Nullable Output<SourceControlGithubActionConfigurationCodeConfigurationArgs> codeConfiguration;

    /**
     * @return A `code_configuration` block as defined above. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<SourceControlGithubActionConfigurationCodeConfigurationArgs>> codeConfiguration() {
        return Optional.ofNullable(this.codeConfiguration);
    }

    /**
     * A `container_configuration` block as defined above.
     * 
     */
    @Import(name="containerConfiguration")
    private @Nullable Output<SourceControlGithubActionConfigurationContainerConfigurationArgs> containerConfiguration;

    /**
     * @return A `container_configuration` block as defined above.
     * 
     */
    public Optional<Output<SourceControlGithubActionConfigurationContainerConfigurationArgs>> containerConfiguration() {
        return Optional.ofNullable(this.containerConfiguration);
    }

    /**
     * Whether to generate the GitHub work flow file. Defaults to `true`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="generateWorkflowFile")
    private @Nullable Output<Boolean> generateWorkflowFile;

    /**
     * @return Whether to generate the GitHub work flow file. Defaults to `true`. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<Boolean>> generateWorkflowFile() {
        return Optional.ofNullable(this.generateWorkflowFile);
    }

    @Import(name="linuxAction")
    private @Nullable Output<Boolean> linuxAction;

    public Optional<Output<Boolean>> linuxAction() {
        return Optional.ofNullable(this.linuxAction);
    }

    private SourceControlGithubActionConfigurationArgs() {}

    private SourceControlGithubActionConfigurationArgs(SourceControlGithubActionConfigurationArgs $) {
        this.codeConfiguration = $.codeConfiguration;
        this.containerConfiguration = $.containerConfiguration;
        this.generateWorkflowFile = $.generateWorkflowFile;
        this.linuxAction = $.linuxAction;
    }

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

    public static final class Builder {
        private SourceControlGithubActionConfigurationArgs $;

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

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

        /**
         * @param codeConfiguration A `code_configuration` block as defined above. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder codeConfiguration(@Nullable Output<SourceControlGithubActionConfigurationCodeConfigurationArgs> codeConfiguration) {
            $.codeConfiguration = codeConfiguration;
            return this;
        }

        /**
         * @param codeConfiguration A `code_configuration` block as defined above. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder codeConfiguration(SourceControlGithubActionConfigurationCodeConfigurationArgs codeConfiguration) {
            return codeConfiguration(Output.of(codeConfiguration));
        }

        /**
         * @param containerConfiguration A `container_configuration` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder containerConfiguration(@Nullable Output<SourceControlGithubActionConfigurationContainerConfigurationArgs> containerConfiguration) {
            $.containerConfiguration = containerConfiguration;
            return this;
        }

        /**
         * @param containerConfiguration A `container_configuration` block as defined above.
         * 
         * @return builder
         * 
         */
        public Builder containerConfiguration(SourceControlGithubActionConfigurationContainerConfigurationArgs containerConfiguration) {
            return containerConfiguration(Output.of(containerConfiguration));
        }

        /**
         * @param generateWorkflowFile Whether to generate the GitHub work flow file. Defaults to `true`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder generateWorkflowFile(@Nullable Output<Boolean> generateWorkflowFile) {
            $.generateWorkflowFile = generateWorkflowFile;
            return this;
        }

        /**
         * @param generateWorkflowFile Whether to generate the GitHub work flow file. Defaults to `true`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder generateWorkflowFile(Boolean generateWorkflowFile) {
            return generateWorkflowFile(Output.of(generateWorkflowFile));
        }

        public Builder linuxAction(@Nullable Output<Boolean> linuxAction) {
            $.linuxAction = linuxAction;
            return this;
        }

        public Builder linuxAction(Boolean linuxAction) {
            return linuxAction(Output.of(linuxAction));
        }

        public SourceControlGithubActionConfigurationArgs build() {
            return $;
        }
    }

}
