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

com.pulumi.azure.appservice.inputs.SourceControlGithubActionConfigurationArgs Maven / Gradle / Ivy

// *** 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 codeConfiguration;

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

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

    /**
     * @return A `container_configuration` block as defined above.
     * 
     */
    public Optional> 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 generateWorkflowFile;

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

    /**
     * Denotes this action uses a Linux base image.
     * 
     */
    @Import(name="linuxAction")
    private @Nullable Output linuxAction;

    /**
     * @return Denotes this action uses a Linux base image.
     * 
     */
    public Optional> 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 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 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 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));
        }

        /**
         * @param linuxAction Denotes this action uses a Linux base image.
         * 
         * @return builder
         * 
         */
        public Builder linuxAction(@Nullable Output linuxAction) {
            $.linuxAction = linuxAction;
            return this;
        }

        /**
         * @param linuxAction Denotes this action uses a Linux base image.
         * 
         * @return builder
         * 
         */
        public Builder linuxAction(Boolean linuxAction) {
            return linuxAction(Output.of(linuxAction));
        }

        public SourceControlGithubActionConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy