Class GithubRepositoryProps.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.alpha.GithubRepositoryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GithubRepositoryProps>
- Enclosing interface:
GithubRepositoryProps
@Stability(Experimental)
public static final class GithubRepositoryProps.Builder
extends Object
implements software.amazon.jsii.Builder<GithubRepositoryProps>
A builder for
GithubRepositoryProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofGithubRepositoryProps.getBranch()build()Builds the configured instance.codeConfigurationValues(CodeConfigurationValues codeConfigurationValues) Sets the value ofGithubRepositoryProps.getCodeConfigurationValues()configurationSource(ConfigurationSourceType configurationSource) Sets the value ofGithubRepositoryProps.getConfigurationSource()connection(GitHubConnection connection) Sets the value ofGithubRepositoryProps.getConnection()repositoryUrl(String repositoryUrl) Sets the value ofGithubRepositoryProps.getRepositoryUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
configurationSource
@Stability(Experimental) public GithubRepositoryProps.Builder configurationSource(ConfigurationSourceType configurationSource) Sets the value ofGithubRepositoryProps.getConfigurationSource()- Parameters:
configurationSource- The source of the App Runner configuration. This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public GithubRepositoryProps.Builder connection(GitHubConnection connection) Sets the value ofGithubRepositoryProps.getConnection()- Parameters:
connection- ARN of the connection to Github. This parameter is required. Only required for Github source.- Returns:
this
-
repositoryUrl
Sets the value ofGithubRepositoryProps.getRepositoryUrl()- Parameters:
repositoryUrl- The location of the repository that contains the source code. This parameter is required.- Returns:
this
-
branch
Sets the value ofGithubRepositoryProps.getBranch()- Parameters:
branch- The branch name that represents a specific version for the repository.- Returns:
this
-
codeConfigurationValues
@Stability(Experimental) public GithubRepositoryProps.Builder codeConfigurationValues(CodeConfigurationValues codeConfigurationValues) Sets the value ofGithubRepositoryProps.getCodeConfigurationValues()- Parameters:
codeConfigurationValues- The code configuration values. Will be ignored if configurationSource isREPOSITORY.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<GithubRepositoryProps>- Returns:
- a new instance of
GithubRepositoryProps - Throws:
NullPointerException- if any required attribute was not provided
-