Class CfnService.CodeRepositoryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CfnService.CodeRepositoryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.CodeRepositoryProperty>
- Enclosing interface:
- CfnService.CodeRepositoryProperty
@Stability(Stable)
public static final class CfnService.CodeRepositoryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.CodeRepositoryProperty>
A builder for
CfnService.CodeRepositoryProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.codeConfiguration(IResolvable codeConfiguration) Sets the value ofCfnService.CodeRepositoryProperty.getCodeConfiguration()codeConfiguration(CfnService.CodeConfigurationProperty codeConfiguration) Sets the value ofCfnService.CodeRepositoryProperty.getCodeConfiguration()repositoryUrl(String repositoryUrl) Sets the value ofCfnService.CodeRepositoryProperty.getRepositoryUrl()sourceCodeVersion(IResolvable sourceCodeVersion) Sets the value ofCfnService.CodeRepositoryProperty.getSourceCodeVersion()sourceCodeVersion(CfnService.SourceCodeVersionProperty sourceCodeVersion) Sets the value ofCfnService.CodeRepositoryProperty.getSourceCodeVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
repositoryUrl
@Stability(Stable) public CfnService.CodeRepositoryProperty.Builder repositoryUrl(String repositoryUrl) Sets the value ofCfnService.CodeRepositoryProperty.getRepositoryUrl()- Parameters:
repositoryUrl- The location of the repository that contains the source code. This parameter is required.- Returns:
this
-
sourceCodeVersion
@Stability(Stable) public CfnService.CodeRepositoryProperty.Builder sourceCodeVersion(IResolvable sourceCodeVersion) Sets the value ofCfnService.CodeRepositoryProperty.getSourceCodeVersion()- Parameters:
sourceCodeVersion- The version that should be used within the source code repository. This parameter is required.- Returns:
this
-
sourceCodeVersion
@Stability(Stable) public CfnService.CodeRepositoryProperty.Builder sourceCodeVersion(CfnService.SourceCodeVersionProperty sourceCodeVersion) Sets the value ofCfnService.CodeRepositoryProperty.getSourceCodeVersion()- Parameters:
sourceCodeVersion- The version that should be used within the source code repository. This parameter is required.- Returns:
this
-
codeConfiguration
@Stability(Stable) public CfnService.CodeRepositoryProperty.Builder codeConfiguration(IResolvable codeConfiguration) Sets the value ofCfnService.CodeRepositoryProperty.getCodeConfiguration()- Parameters:
codeConfiguration- Configuration for building and running the service from a source code repository.CodeConfigurationis required only forCreateServicerequest.- Returns:
this
-
codeConfiguration
@Stability(Stable) public CfnService.CodeRepositoryProperty.Builder codeConfiguration(CfnService.CodeConfigurationProperty codeConfiguration) Sets the value ofCfnService.CodeRepositoryProperty.getCodeConfiguration()- Parameters:
codeConfiguration- Configuration for building and running the service from a source code repository.CodeConfigurationis required only forCreateServicerequest.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnService.CodeRepositoryProperty>- Returns:
- a new instance of
CfnService.CodeRepositoryProperty - Throws:
NullPointerException- if any required attribute was not provided
-