Class CfnService.ImageRepositoryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.apprunner.CfnService.ImageRepositoryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnService.ImageRepositoryProperty>
- Enclosing interface:
CfnService.ImageRepositoryProperty
@Stability(Stable)
public static final class CfnService.ImageRepositoryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnService.ImageRepositoryProperty>
A builder for
CfnService.ImageRepositoryProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.imageConfiguration
(IResolvable imageConfiguration) Sets the value ofCfnService.ImageRepositoryProperty.getImageConfiguration()
imageConfiguration
(CfnService.ImageConfigurationProperty imageConfiguration) Sets the value ofCfnService.ImageRepositoryProperty.getImageConfiguration()
imageIdentifier
(String imageIdentifier) Sets the value ofCfnService.ImageRepositoryProperty.getImageIdentifier()
imageRepositoryType
(String imageRepositoryType) Sets the value ofCfnService.ImageRepositoryProperty.getImageRepositoryType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
imageIdentifier
@Stability(Stable) public CfnService.ImageRepositoryProperty.Builder imageIdentifier(String imageIdentifier) Sets the value ofCfnService.ImageRepositoryProperty.getImageIdentifier()
- Parameters:
imageIdentifier
- The identifier of an image. This parameter is required. For an image in Amazon Elastic Container Registry (Amazon ECR), this is an image name. For the image name format, see Pulling an image in the Amazon ECR User Guide .- Returns:
this
-
imageRepositoryType
@Stability(Stable) public CfnService.ImageRepositoryProperty.Builder imageRepositoryType(String imageRepositoryType) Sets the value ofCfnService.ImageRepositoryProperty.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(Stable) public CfnService.ImageRepositoryProperty.Builder imageConfiguration(IResolvable imageConfiguration) Sets the value ofCfnService.ImageRepositoryProperty.getImageConfiguration()
- Parameters:
imageConfiguration
- Configuration for running the identified image.- Returns:
this
-
imageConfiguration
@Stability(Stable) public CfnService.ImageRepositoryProperty.Builder imageConfiguration(CfnService.ImageConfigurationProperty imageConfiguration) Sets the value ofCfnService.ImageRepositoryProperty.getImageConfiguration()
- Parameters:
imageConfiguration
- Configuration for running the identified image.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnService.ImageRepositoryProperty>
- Returns:
- a new instance of
CfnService.ImageRepositoryProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-