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

com.pulumi.aws.amplify.outputs.AppAutoBranchCreationConfig 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.aws.amplify.outputs;

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

@CustomType
public final class AppAutoBranchCreationConfig {
    /**
     * @return Basic authorization credentials for the autocreated branch.
     * 
     */
    private @Nullable String basicAuthCredentials;
    /**
     * @return Build specification (build spec) for the autocreated branch.
     * 
     */
    private @Nullable String buildSpec;
    /**
     * @return Enables auto building for the autocreated branch.
     * 
     */
    private @Nullable Boolean enableAutoBuild;
    /**
     * @return Enables basic authorization for the autocreated branch.
     * 
     */
    private @Nullable Boolean enableBasicAuth;
    /**
     * @return Enables performance mode for the branch.
     * 
     */
    private @Nullable Boolean enablePerformanceMode;
    /**
     * @return Enables pull request previews for the autocreated branch.
     * 
     */
    private @Nullable Boolean enablePullRequestPreview;
    /**
     * @return Environment variables for the autocreated branch.
     * 
     */
    private @Nullable Map environmentVariables;
    /**
     * @return Framework for the autocreated branch.
     * 
     */
    private @Nullable String framework;
    /**
     * @return Amplify environment name for the pull request.
     * 
     */
    private @Nullable String pullRequestEnvironmentName;
    /**
     * @return Describes the current stage for the autocreated branch. Valid values: `PRODUCTION`, `BETA`, `DEVELOPMENT`, `EXPERIMENTAL`, `PULL_REQUEST`.
     * 
     */
    private @Nullable String stage;

    private AppAutoBranchCreationConfig() {}
    /**
     * @return Basic authorization credentials for the autocreated branch.
     * 
     */
    public Optional basicAuthCredentials() {
        return Optional.ofNullable(this.basicAuthCredentials);
    }
    /**
     * @return Build specification (build spec) for the autocreated branch.
     * 
     */
    public Optional buildSpec() {
        return Optional.ofNullable(this.buildSpec);
    }
    /**
     * @return Enables auto building for the autocreated branch.
     * 
     */
    public Optional enableAutoBuild() {
        return Optional.ofNullable(this.enableAutoBuild);
    }
    /**
     * @return Enables basic authorization for the autocreated branch.
     * 
     */
    public Optional enableBasicAuth() {
        return Optional.ofNullable(this.enableBasicAuth);
    }
    /**
     * @return Enables performance mode for the branch.
     * 
     */
    public Optional enablePerformanceMode() {
        return Optional.ofNullable(this.enablePerformanceMode);
    }
    /**
     * @return Enables pull request previews for the autocreated branch.
     * 
     */
    public Optional enablePullRequestPreview() {
        return Optional.ofNullable(this.enablePullRequestPreview);
    }
    /**
     * @return Environment variables for the autocreated branch.
     * 
     */
    public Map environmentVariables() {
        return this.environmentVariables == null ? Map.of() : this.environmentVariables;
    }
    /**
     * @return Framework for the autocreated branch.
     * 
     */
    public Optional framework() {
        return Optional.ofNullable(this.framework);
    }
    /**
     * @return Amplify environment name for the pull request.
     * 
     */
    public Optional pullRequestEnvironmentName() {
        return Optional.ofNullable(this.pullRequestEnvironmentName);
    }
    /**
     * @return Describes the current stage for the autocreated branch. Valid values: `PRODUCTION`, `BETA`, `DEVELOPMENT`, `EXPERIMENTAL`, `PULL_REQUEST`.
     * 
     */
    public Optional stage() {
        return Optional.ofNullable(this.stage);
    }

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

    public static Builder builder(AppAutoBranchCreationConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String basicAuthCredentials;
        private @Nullable String buildSpec;
        private @Nullable Boolean enableAutoBuild;
        private @Nullable Boolean enableBasicAuth;
        private @Nullable Boolean enablePerformanceMode;
        private @Nullable Boolean enablePullRequestPreview;
        private @Nullable Map environmentVariables;
        private @Nullable String framework;
        private @Nullable String pullRequestEnvironmentName;
        private @Nullable String stage;
        public Builder() {}
        public Builder(AppAutoBranchCreationConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.basicAuthCredentials = defaults.basicAuthCredentials;
    	      this.buildSpec = defaults.buildSpec;
    	      this.enableAutoBuild = defaults.enableAutoBuild;
    	      this.enableBasicAuth = defaults.enableBasicAuth;
    	      this.enablePerformanceMode = defaults.enablePerformanceMode;
    	      this.enablePullRequestPreview = defaults.enablePullRequestPreview;
    	      this.environmentVariables = defaults.environmentVariables;
    	      this.framework = defaults.framework;
    	      this.pullRequestEnvironmentName = defaults.pullRequestEnvironmentName;
    	      this.stage = defaults.stage;
        }

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

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

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

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

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

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

            this.enablePullRequestPreview = enablePullRequestPreview;
            return this;
        }
        @CustomType.Setter
        public Builder environmentVariables(@Nullable Map environmentVariables) {

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

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

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

            this.stage = stage;
            return this;
        }
        public AppAutoBranchCreationConfig build() {
            final var _resultValue = new AppAutoBranchCreationConfig();
            _resultValue.basicAuthCredentials = basicAuthCredentials;
            _resultValue.buildSpec = buildSpec;
            _resultValue.enableAutoBuild = enableAutoBuild;
            _resultValue.enableBasicAuth = enableBasicAuth;
            _resultValue.enablePerformanceMode = enablePerformanceMode;
            _resultValue.enablePullRequestPreview = enablePullRequestPreview;
            _resultValue.environmentVariables = environmentVariables;
            _resultValue.framework = framework;
            _resultValue.pullRequestEnvironmentName = pullRequestEnvironmentName;
            _resultValue.stage = stage;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy