Class ImageRepository.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.alpha.ImageRepository.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ImageRepository>
- Enclosing interface:
ImageRepository
@Stability(Experimental)
public static final class ImageRepository.Builder
extends Object
implements software.amazon.jsii.Builder<ImageRepository>
A builder for
ImageRepository-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.imageConfiguration(ImageConfiguration imageConfiguration) Sets the value ofImageRepository.getImageConfiguration()imageIdentifier(String imageIdentifier) Sets the value ofImageRepository.getImageIdentifier()imageRepositoryType(ImageRepositoryType imageRepositoryType) Sets the value ofImageRepository.getImageRepositoryType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
imageIdentifier
Sets the value ofImageRepository.getImageIdentifier()- Parameters:
imageIdentifier- The identifier of the image. This parameter is required. ForECR_PUBLICimageRepositoryType, the identifier domain should always bepublic.ecr.aws. ForECR, the pattern should be([0-9]{12}.dkr.ecr.[a-z\-]+-[0-9]{1}.amazonaws.com\/.*).- Returns:
this
-
imageRepositoryType
@Stability(Experimental) public ImageRepository.Builder imageRepositoryType(ImageRepositoryType imageRepositoryType) Sets the value ofImageRepository.getImageRepositoryType()- Parameters:
imageRepositoryType- The type of the image repository. This parameter is required. This reflects the repository provider and whether the repository is private or public.- Returns:
this
-
imageConfiguration
@Stability(Experimental) public ImageRepository.Builder imageConfiguration(ImageConfiguration imageConfiguration) Sets the value ofImageRepository.getImageConfiguration()- Parameters:
imageConfiguration- Configuration for running the identified image.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ImageRepository>- Returns:
- a new instance of
ImageRepository - Throws:
NullPointerException- if any required attribute was not provided
-