Class CfnServicePropsMixin.CodeRepositoryProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.apprunner.CfnServicePropsMixin.CodeRepositoryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServicePropsMixin.CodeRepositoryProperty>
- Enclosing interface:
CfnServicePropsMixin.CodeRepositoryProperty
@Stability(Stable)
public static final class CfnServicePropsMixin.CodeRepositoryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServicePropsMixin.CodeRepositoryProperty>
A builder for
CfnServicePropsMixin.CodeRepositoryProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.codeConfiguration(CfnServicePropsMixin.CodeConfigurationProperty codeConfiguration) Sets the value ofCfnServicePropsMixin.CodeRepositoryProperty.getCodeConfiguration()codeConfiguration(IResolvable codeConfiguration) Sets the value ofCfnServicePropsMixin.CodeRepositoryProperty.getCodeConfiguration()repositoryUrl(String repositoryUrl) Sets the value ofCfnServicePropsMixin.CodeRepositoryProperty.getRepositoryUrl()sourceCodeVersion(CfnServicePropsMixin.SourceCodeVersionProperty sourceCodeVersion) Sets the value ofCfnServicePropsMixin.CodeRepositoryProperty.getSourceCodeVersion()sourceCodeVersion(IResolvable sourceCodeVersion) Sets the value ofCfnServicePropsMixin.CodeRepositoryProperty.getSourceCodeVersion()sourceDirectory(String sourceDirectory) Sets the value ofCfnServicePropsMixin.CodeRepositoryProperty.getSourceDirectory()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
codeConfiguration
@Stability(Stable) public CfnServicePropsMixin.CodeRepositoryProperty.Builder codeConfiguration(IResolvable codeConfiguration) Sets the value ofCfnServicePropsMixin.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 CfnServicePropsMixin.CodeRepositoryProperty.Builder codeConfiguration(CfnServicePropsMixin.CodeConfigurationProperty codeConfiguration) Sets the value ofCfnServicePropsMixin.CodeRepositoryProperty.getCodeConfiguration()- Parameters:
codeConfiguration- Configuration for building and running the service from a source code repository.CodeConfigurationis required only forCreateServicerequest.- Returns:
this
-
repositoryUrl
@Stability(Stable) public CfnServicePropsMixin.CodeRepositoryProperty.Builder repositoryUrl(String repositoryUrl) Sets the value ofCfnServicePropsMixin.CodeRepositoryProperty.getRepositoryUrl()- Parameters:
repositoryUrl- The location of the repository that contains the source code.- Returns:
this
-
sourceCodeVersion
@Stability(Stable) public CfnServicePropsMixin.CodeRepositoryProperty.Builder sourceCodeVersion(IResolvable sourceCodeVersion) Sets the value ofCfnServicePropsMixin.CodeRepositoryProperty.getSourceCodeVersion()- Parameters:
sourceCodeVersion- The version that should be used within the source code repository.- Returns:
this
-
sourceCodeVersion
@Stability(Stable) public CfnServicePropsMixin.CodeRepositoryProperty.Builder sourceCodeVersion(CfnServicePropsMixin.SourceCodeVersionProperty sourceCodeVersion) Sets the value ofCfnServicePropsMixin.CodeRepositoryProperty.getSourceCodeVersion()- Parameters:
sourceCodeVersion- The version that should be used within the source code repository.- Returns:
this
-
sourceDirectory
@Stability(Stable) public CfnServicePropsMixin.CodeRepositoryProperty.Builder sourceDirectory(String sourceDirectory) Sets the value ofCfnServicePropsMixin.CodeRepositoryProperty.getSourceDirectory()- Parameters:
sourceDirectory- The path of the directory that stores source code and configuration files. The build and start commands also execute from here. The path is absolute from root and, if not specified, defaults to the repository root.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServicePropsMixin.CodeRepositoryProperty>- Returns:
- a new instance of
CfnServicePropsMixin.CodeRepositoryProperty - Throws:
NullPointerException- if any required attribute was not provided
-