Class CfnImage.EcrConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.imagebuilder.CfnImage.EcrConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImage.EcrConfigurationProperty>
- Enclosing interface:
CfnImage.EcrConfigurationProperty
@Stability(Stable)
public static final class CfnImage.EcrConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImage.EcrConfigurationProperty>
A builder for
CfnImage.EcrConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.containerTags
(List<String> containerTags) Sets the value ofCfnImage.EcrConfigurationProperty.getContainerTags()
repositoryName
(String repositoryName) Sets the value ofCfnImage.EcrConfigurationProperty.getRepositoryName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerTags
@Stability(Stable) public CfnImage.EcrConfigurationProperty.Builder containerTags(List<String> containerTags) Sets the value ofCfnImage.EcrConfigurationProperty.getContainerTags()
- Parameters:
containerTags
- Tags for Image Builder to apply to the output container image that Amazon Inspector scans. Tags can help you identify and manage your scanned images.- Returns:
this
-
repositoryName
@Stability(Stable) public CfnImage.EcrConfigurationProperty.Builder repositoryName(String repositoryName) Sets the value ofCfnImage.EcrConfigurationProperty.getRepositoryName()
- Parameters:
repositoryName
- The name of the container repository that Amazon Inspector scans to identify findings for your container images. The name includes the path for the repository location. If you don’t provide this information, Image Builder creates a repository in your account namedimage-builder-image-scanning-repository
for vulnerability scans of your output container images.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnImage.EcrConfigurationProperty>
- Returns:
- a new instance of
CfnImage.EcrConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-