Class EcrProps.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.alpha.EcrProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EcrProps>
- Enclosing interface:
EcrProps
@Stability(Experimental)
public static final class EcrProps.Builder
extends Object
implements software.amazon.jsii.Builder<EcrProps>
A builder for
EcrProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.imageConfiguration(ImageConfiguration imageConfiguration) Sets the value ofEcrProps.getImageConfiguration()repository(IRepository repository) Sets the value ofEcrProps.getRepository()Deprecated.use `tagOrDigest`tagOrDigest(String tagOrDigest) Sets the value ofEcrProps.getTagOrDigest()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
repository
Sets the value ofEcrProps.getRepository()- Parameters:
repository- Represents the ECR repository. This parameter is required.- Returns:
this
-
imageConfiguration
@Stability(Experimental) public EcrProps.Builder imageConfiguration(ImageConfiguration imageConfiguration) Sets the value ofEcrProps.getImageConfiguration()- Parameters:
imageConfiguration- The image configuration for the image from ECR.- Returns:
this
-
tag
Deprecated.use `tagOrDigest`Sets the value ofEcrProps.getTag()- Parameters:
tag- Image tag.- Returns:
this
-
tagOrDigest
Sets the value ofEcrProps.getTagOrDigest()- Parameters:
tagOrDigest- Image tag or digest (digests must start withsha256:).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EcrProps>- Returns:
- a new instance of
EcrProps - Throws:
NullPointerException- if any required attribute was not provided
-