Class SourceConfig.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.alpha.SourceConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SourceConfig>
- Enclosing interface:
SourceConfig
@Stability(Experimental)
public static final class SourceConfig.Builder
extends Object
implements software.amazon.jsii.Builder<SourceConfig>
A builder for
SourceConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.codeRepository(CodeRepositoryProps codeRepository) Sets the value ofSourceConfig.getCodeRepository()ecrRepository(IRepository ecrRepository) Sets the value ofSourceConfig.getEcrRepository()imageRepository(ImageRepository imageRepository) Sets the value ofSourceConfig.getImageRepository()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
codeRepository
@Stability(Experimental) public SourceConfig.Builder codeRepository(CodeRepositoryProps codeRepository) Sets the value ofSourceConfig.getCodeRepository()- Parameters:
codeRepository- The code repository configuration (mutually exclusive withimageRepository).- Returns:
this
-
ecrRepository
Sets the value ofSourceConfig.getEcrRepository()- Parameters:
ecrRepository- The ECR repository (required to grant the pull privileges for the iam role).- Returns:
this
-
imageRepository
@Stability(Experimental) public SourceConfig.Builder imageRepository(ImageRepository imageRepository) Sets the value ofSourceConfig.getImageRepository()- Parameters:
imageRepository- The image repository configuration (mutually exclusive withcodeRepository).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SourceConfig>- Returns:
- a new instance of
SourceConfig - Throws:
NullPointerException- if any required attribute was not provided
-