Class RepositoryEvents.ECRImageScan.ECRImageScanProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ecr.events.RepositoryEvents.ECRImageScan.ECRImageScanProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RepositoryEvents.ECRImageScan.ECRImageScanProps>
- Enclosing interface:
RepositoryEvents.ECRImageScan.ECRImageScanProps
@Stability(Experimental)
public static final class RepositoryEvents.ECRImageScan.ECRImageScanProps.Builder
extends Object
implements software.amazon.jsii.Builder<RepositoryEvents.ECRImageScan.ECRImageScanProps>
A builder for
RepositoryEvents.ECRImageScan.ECRImageScanProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofRepositoryEvents.ECRImageScan.ECRImageScanProps.getEventMetadata()findingSeverityCounts(RepositoryEvents.ECRImageScan.FindingSeverityCounts findingSeverityCounts) imageDigest(List<String> imageDigest) Sets the value ofRepositoryEvents.ECRImageScan.ECRImageScanProps.getImageDigest()Sets the value ofRepositoryEvents.ECRImageScan.ECRImageScanProps.getImageTags()repositoryName(List<String> repositoryName) Sets the value ofRepositoryEvents.ECRImageScan.ECRImageScanProps.getRepositoryName()scanStatus(List<String> scanStatus) Sets the value ofRepositoryEvents.ECRImageScan.ECRImageScanProps.getScanStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventMetadata
@Stability(Experimental) public RepositoryEvents.ECRImageScan.ECRImageScanProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofRepositoryEvents.ECRImageScan.ECRImageScanProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
findingSeverityCounts
@Stability(Experimental) public RepositoryEvents.ECRImageScan.ECRImageScanProps.Builder findingSeverityCounts(RepositoryEvents.ECRImageScan.FindingSeverityCounts findingSeverityCounts) - Parameters:
findingSeverityCounts- finding-severity-counts property. Specify an array of string values to match this event if the actual value of finding-severity-counts is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
imageDigest
@Stability(Experimental) public RepositoryEvents.ECRImageScan.ECRImageScanProps.Builder imageDigest(List<String> imageDigest) Sets the value ofRepositoryEvents.ECRImageScan.ECRImageScanProps.getImageDigest()- Parameters:
imageDigest- image-digest property. Specify an array of string values to match this event if the actual value of image-digest is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
imageTags
@Stability(Experimental) public RepositoryEvents.ECRImageScan.ECRImageScanProps.Builder imageTags(List<String> imageTags) Sets the value ofRepositoryEvents.ECRImageScan.ECRImageScanProps.getImageTags()- Parameters:
imageTags- image-tags property. Specify an array of string values to match this event if the actual value of image-tags is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
repositoryName
@Stability(Experimental) public RepositoryEvents.ECRImageScan.ECRImageScanProps.Builder repositoryName(List<String> repositoryName) Sets the value ofRepositoryEvents.ECRImageScan.ECRImageScanProps.getRepositoryName()- Parameters:
repositoryName- repository-name property. Specify an array of string values to match this event if the actual value of repository-name is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
scanStatus
@Stability(Experimental) public RepositoryEvents.ECRImageScan.ECRImageScanProps.Builder scanStatus(List<String> scanStatus) Sets the value ofRepositoryEvents.ECRImageScan.ECRImageScanProps.getScanStatus()- Parameters:
scanStatus- scan-status property. Specify an array of string values to match this event if the actual value of scan-status is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<RepositoryEvents.ECRImageScan.ECRImageScanProps>- Returns:
- a new instance of
RepositoryEvents.ECRImageScan.ECRImageScanProps - Throws:
NullPointerException- if any required attribute was not provided
-