Class CodeRepositoryProps.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CodeRepositoryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeRepositoryProps>
- Enclosing interface:
CodeRepositoryProps
@Stability(Experimental)
public static final class CodeRepositoryProps.Builder
extends Object
implements software.amazon.jsii.Builder<CodeRepositoryProps>
A builder for
CodeRepositoryProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.codeConfiguration
(CodeConfiguration codeConfiguration) Sets the value ofCodeRepositoryProps.getCodeConfiguration()
connection
(GitHubConnection connection) Sets the value ofCodeRepositoryProps.getConnection()
repositoryUrl
(String repositoryUrl) Sets the value ofCodeRepositoryProps.getRepositoryUrl()
sourceCodeVersion
(SourceCodeVersion sourceCodeVersion) Sets the value ofCodeRepositoryProps.getSourceCodeVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
codeConfiguration
@Stability(Experimental) public CodeRepositoryProps.Builder codeConfiguration(CodeConfiguration codeConfiguration) Sets the value ofCodeRepositoryProps.getCodeConfiguration()
- Parameters:
codeConfiguration
- Configuration for building and running the service from a source code repository. This parameter is required.- Returns:
this
-
connection
Sets the value ofCodeRepositoryProps.getConnection()
- Parameters:
connection
- The App Runner connection for GitHub. This parameter is required.- Returns:
this
-
repositoryUrl
Sets the value ofCodeRepositoryProps.getRepositoryUrl()
- Parameters:
repositoryUrl
- The location of the repository that contains the source code. This parameter is required.- Returns:
this
-
sourceCodeVersion
@Stability(Experimental) public CodeRepositoryProps.Builder sourceCodeVersion(SourceCodeVersion sourceCodeVersion) Sets the value ofCodeRepositoryProps.getSourceCodeVersion()
- Parameters:
sourceCodeVersion
- The version that should be used within the source code repository. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CodeRepositoryProps>
- Returns:
- a new instance of
CodeRepositoryProps
- Throws:
NullPointerException
- if any required attribute was not provided
-