// *** 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.aws.amplify.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AppAutoBranchCreationConfigArgs Empty = new AppAutoBranchCreationConfigArgs();

    /**
     * Basic authorization credentials for the autocreated branch.
     * 
     */
    @Import(name="basicAuthCredentials")
    private @Nullable Output<String> basicAuthCredentials;

    /**
     * @return Basic authorization credentials for the autocreated branch.
     * 
     */
    public Optional<Output<String>> basicAuthCredentials() {
        return Optional.ofNullable(this.basicAuthCredentials);
    }

    /**
     * Build specification (build spec) for the autocreated branch.
     * 
     */
    @Import(name="buildSpec")
    private @Nullable Output<String> buildSpec;

    /**
     * @return Build specification (build spec) for the autocreated branch.
     * 
     */
    public Optional<Output<String>> buildSpec() {
        return Optional.ofNullable(this.buildSpec);
    }

    /**
     * Enables auto building for the autocreated branch.
     * 
     */
    @Import(name="enableAutoBuild")
    private @Nullable Output<Boolean> enableAutoBuild;

    /**
     * @return Enables auto building for the autocreated branch.
     * 
     */
    public Optional<Output<Boolean>> enableAutoBuild() {
        return Optional.ofNullable(this.enableAutoBuild);
    }

    /**
     * Enables basic authorization for the autocreated branch.
     * 
     */
    @Import(name="enableBasicAuth")
    private @Nullable Output<Boolean> enableBasicAuth;

    /**
     * @return Enables basic authorization for the autocreated branch.
     * 
     */
    public Optional<Output<Boolean>> enableBasicAuth() {
        return Optional.ofNullable(this.enableBasicAuth);
    }

    /**
     * Enables performance mode for the branch.
     * 
     */
    @Import(name="enablePerformanceMode")
    private @Nullable Output<Boolean> enablePerformanceMode;

    /**
     * @return Enables performance mode for the branch.
     * 
     */
    public Optional<Output<Boolean>> enablePerformanceMode() {
        return Optional.ofNullable(this.enablePerformanceMode);
    }

    /**
     * Enables pull request previews for the autocreated branch.
     * 
     */
    @Import(name="enablePullRequestPreview")
    private @Nullable Output<Boolean> enablePullRequestPreview;

    /**
     * @return Enables pull request previews for the autocreated branch.
     * 
     */
    public Optional<Output<Boolean>> enablePullRequestPreview() {
        return Optional.ofNullable(this.enablePullRequestPreview);
    }

    /**
     * Environment variables for the autocreated branch.
     * 
     */
    @Import(name="environmentVariables")
    private @Nullable Output<Map<String,String>> environmentVariables;

    /**
     * @return Environment variables for the autocreated branch.
     * 
     */
    public Optional<Output<Map<String,String>>> environmentVariables() {
        return Optional.ofNullable(this.environmentVariables);
    }

    /**
     * Framework for the autocreated branch.
     * 
     */
    @Import(name="framework")
    private @Nullable Output<String> framework;

    /**
     * @return Framework for the autocreated branch.
     * 
     */
    public Optional<Output<String>> framework() {
        return Optional.ofNullable(this.framework);
    }

    /**
     * Amplify environment name for the pull request.
     * 
     */
    @Import(name="pullRequestEnvironmentName")
    private @Nullable Output<String> pullRequestEnvironmentName;

    /**
     * @return Amplify environment name for the pull request.
     * 
     */
    public Optional<Output<String>> pullRequestEnvironmentName() {
        return Optional.ofNullable(this.pullRequestEnvironmentName);
    }

    /**
     * Describes the current stage for the autocreated branch. Valid values: `PRODUCTION`, `BETA`, `DEVELOPMENT`, `EXPERIMENTAL`, `PULL_REQUEST`.
     * 
     */
    @Import(name="stage")
    private @Nullable Output<String> stage;

    /**
     * @return Describes the current stage for the autocreated branch. Valid values: `PRODUCTION`, `BETA`, `DEVELOPMENT`, `EXPERIMENTAL`, `PULL_REQUEST`.
     * 
     */
    public Optional<Output<String>> stage() {
        return Optional.ofNullable(this.stage);
    }

    private AppAutoBranchCreationConfigArgs() {}

    private AppAutoBranchCreationConfigArgs(AppAutoBranchCreationConfigArgs $) {
        this.basicAuthCredentials = $.basicAuthCredentials;
        this.buildSpec = $.buildSpec;
        this.enableAutoBuild = $.enableAutoBuild;
        this.enableBasicAuth = $.enableBasicAuth;
        this.enablePerformanceMode = $.enablePerformanceMode;
        this.enablePullRequestPreview = $.enablePullRequestPreview;
        this.environmentVariables = $.environmentVariables;
        this.framework = $.framework;
        this.pullRequestEnvironmentName = $.pullRequestEnvironmentName;
        this.stage = $.stage;
    }

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

    public static final class Builder {
        private AppAutoBranchCreationConfigArgs $;

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

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

        /**
         * @param basicAuthCredentials Basic authorization credentials for the autocreated branch.
         * 
         * @return builder
         * 
         */
        public Builder basicAuthCredentials(@Nullable Output<String> basicAuthCredentials) {
            $.basicAuthCredentials = basicAuthCredentials;
            return this;
        }

        /**
         * @param basicAuthCredentials Basic authorization credentials for the autocreated branch.
         * 
         * @return builder
         * 
         */
        public Builder basicAuthCredentials(String basicAuthCredentials) {
            return basicAuthCredentials(Output.of(basicAuthCredentials));
        }

        /**
         * @param buildSpec Build specification (build spec) for the autocreated branch.
         * 
         * @return builder
         * 
         */
        public Builder buildSpec(@Nullable Output<String> buildSpec) {
            $.buildSpec = buildSpec;
            return this;
        }

        /**
         * @param buildSpec Build specification (build spec) for the autocreated branch.
         * 
         * @return builder
         * 
         */
        public Builder buildSpec(String buildSpec) {
            return buildSpec(Output.of(buildSpec));
        }

        /**
         * @param enableAutoBuild Enables auto building for the autocreated branch.
         * 
         * @return builder
         * 
         */
        public Builder enableAutoBuild(@Nullable Output<Boolean> enableAutoBuild) {
            $.enableAutoBuild = enableAutoBuild;
            return this;
        }

        /**
         * @param enableAutoBuild Enables auto building for the autocreated branch.
         * 
         * @return builder
         * 
         */
        public Builder enableAutoBuild(Boolean enableAutoBuild) {
            return enableAutoBuild(Output.of(enableAutoBuild));
        }

        /**
         * @param enableBasicAuth Enables basic authorization for the autocreated branch.
         * 
         * @return builder
         * 
         */
        public Builder enableBasicAuth(@Nullable Output<Boolean> enableBasicAuth) {
            $.enableBasicAuth = enableBasicAuth;
            return this;
        }

        /**
         * @param enableBasicAuth Enables basic authorization for the autocreated branch.
         * 
         * @return builder
         * 
         */
        public Builder enableBasicAuth(Boolean enableBasicAuth) {
            return enableBasicAuth(Output.of(enableBasicAuth));
        }

        /**
         * @param enablePerformanceMode Enables performance mode for the branch.
         * 
         * @return builder
         * 
         */
        public Builder enablePerformanceMode(@Nullable Output<Boolean> enablePerformanceMode) {
            $.enablePerformanceMode = enablePerformanceMode;
            return this;
        }

        /**
         * @param enablePerformanceMode Enables performance mode for the branch.
         * 
         * @return builder
         * 
         */
        public Builder enablePerformanceMode(Boolean enablePerformanceMode) {
            return enablePerformanceMode(Output.of(enablePerformanceMode));
        }

        /**
         * @param enablePullRequestPreview Enables pull request previews for the autocreated branch.
         * 
         * @return builder
         * 
         */
        public Builder enablePullRequestPreview(@Nullable Output<Boolean> enablePullRequestPreview) {
            $.enablePullRequestPreview = enablePullRequestPreview;
            return this;
        }

        /**
         * @param enablePullRequestPreview Enables pull request previews for the autocreated branch.
         * 
         * @return builder
         * 
         */
        public Builder enablePullRequestPreview(Boolean enablePullRequestPreview) {
            return enablePullRequestPreview(Output.of(enablePullRequestPreview));
        }

        /**
         * @param environmentVariables Environment variables for the autocreated branch.
         * 
         * @return builder
         * 
         */
        public Builder environmentVariables(@Nullable Output<Map<String,String>> environmentVariables) {
            $.environmentVariables = environmentVariables;
            return this;
        }

        /**
         * @param environmentVariables Environment variables for the autocreated branch.
         * 
         * @return builder
         * 
         */
        public Builder environmentVariables(Map<String,String> environmentVariables) {
            return environmentVariables(Output.of(environmentVariables));
        }

        /**
         * @param framework Framework for the autocreated branch.
         * 
         * @return builder
         * 
         */
        public Builder framework(@Nullable Output<String> framework) {
            $.framework = framework;
            return this;
        }

        /**
         * @param framework Framework for the autocreated branch.
         * 
         * @return builder
         * 
         */
        public Builder framework(String framework) {
            return framework(Output.of(framework));
        }

        /**
         * @param pullRequestEnvironmentName Amplify environment name for the pull request.
         * 
         * @return builder
         * 
         */
        public Builder pullRequestEnvironmentName(@Nullable Output<String> pullRequestEnvironmentName) {
            $.pullRequestEnvironmentName = pullRequestEnvironmentName;
            return this;
        }

        /**
         * @param pullRequestEnvironmentName Amplify environment name for the pull request.
         * 
         * @return builder
         * 
         */
        public Builder pullRequestEnvironmentName(String pullRequestEnvironmentName) {
            return pullRequestEnvironmentName(Output.of(pullRequestEnvironmentName));
        }

        /**
         * @param stage Describes the current stage for the autocreated branch. Valid values: `PRODUCTION`, `BETA`, `DEVELOPMENT`, `EXPERIMENTAL`, `PULL_REQUEST`.
         * 
         * @return builder
         * 
         */
        public Builder stage(@Nullable Output<String> stage) {
            $.stage = stage;
            return this;
        }

        /**
         * @param stage Describes the current stage for the autocreated branch. Valid values: `PRODUCTION`, `BETA`, `DEVELOPMENT`, `EXPERIMENTAL`, `PULL_REQUEST`.
         * 
         * @return builder
         * 
         */
        public Builder stage(String stage) {
            return stage(Output.of(stage));
        }

        public AppAutoBranchCreationConfigArgs build() {
            return $;
        }
    }

}
