Class AutoBranchCreation.Builder
java.lang.Object
software.amazon.awscdk.services.amplify.AutoBranchCreation.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AutoBranchCreation>
- Enclosing interface:
AutoBranchCreation
@Stability(Experimental)
public static final class AutoBranchCreation.Builder
extends Object
implements software.amazon.jsii.Builder<AutoBranchCreation>
A builder for
AutoBranchCreation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofAutoBranchCreation.getAutoBuild()
Sets the value ofAutoBranchCreation.getBasicAuth()
build()
Builds the configured instance.Sets the value ofAutoBranchCreation.getBuildSpec()
environmentVariables
(Map<String, String> environmentVariables) Sets the value ofAutoBranchCreation.getEnvironmentVariables()
Sets the value ofAutoBranchCreation.getPatterns()
pullRequestEnvironmentName
(String pullRequestEnvironmentName) Sets the value ofAutoBranchCreation.getPullRequestEnvironmentName()
pullRequestPreview
(Boolean pullRequestPreview) Sets the value ofAutoBranchCreation.getPullRequestPreview()
Sets the value ofAutoBranchCreation.getStage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
autoBuild
Sets the value ofAutoBranchCreation.getAutoBuild()
- Parameters:
autoBuild
- Whether to enable auto building for the auto created branch.- Returns:
this
-
basicAuth
Sets the value ofAutoBranchCreation.getBasicAuth()
- Parameters:
basicAuth
- The Basic Auth configuration. Use this to set password protection for the auto created branch.- Returns:
this
-
buildSpec
Sets the value ofAutoBranchCreation.getBuildSpec()
- Parameters:
buildSpec
- Build spec for the auto created branch.- Returns:
this
-
environmentVariables
@Stability(Experimental) public AutoBranchCreation.Builder environmentVariables(Map<String, String> environmentVariables) Sets the value ofAutoBranchCreation.getEnvironmentVariables()
- Parameters:
environmentVariables
- Environment variables for the auto created branch. All environment variables that you add are encrypted to prevent rogue access so you can use them to store secret information.- Returns:
this
-
patterns
Sets the value ofAutoBranchCreation.getPatterns()
- Parameters:
patterns
- Automated branch creation glob patterns.- Returns:
this
-
pullRequestEnvironmentName
@Stability(Experimental) public AutoBranchCreation.Builder pullRequestEnvironmentName(String pullRequestEnvironmentName) Sets the value ofAutoBranchCreation.getPullRequestEnvironmentName()
- Parameters:
pullRequestEnvironmentName
- The dedicated backend environment for the pull request previews of the auto created branch.- Returns:
this
-
pullRequestPreview
@Stability(Experimental) public AutoBranchCreation.Builder pullRequestPreview(Boolean pullRequestPreview) Sets the value ofAutoBranchCreation.getPullRequestPreview()
- Parameters:
pullRequestPreview
- Whether to enable pull request preview for the auto created branch.- Returns:
this
-
stage
Sets the value ofAutoBranchCreation.getStage()
- Parameters:
stage
- Stage for the auto created branch.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AutoBranchCreation>
- Returns:
- a new instance of
AutoBranchCreation
- Throws:
NullPointerException
- if any required attribute was not provided
-