Class ECRImageScan.FindingSeverityCounts.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ecr.events.ECRImageScan.FindingSeverityCounts.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ECRImageScan.FindingSeverityCounts>
- Enclosing interface:
ECRImageScan.FindingSeverityCounts
@Stability(Experimental)
public static final class ECRImageScan.FindingSeverityCounts.Builder
extends Object
implements software.amazon.jsii.Builder<ECRImageScan.FindingSeverityCounts>
A builder for
ECRImageScan.FindingSeverityCounts-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofECRImageScan.FindingSeverityCounts.getCritical()Sets the value ofECRImageScan.FindingSeverityCounts.getHigh()informational(List<String> informational) Sets the value ofECRImageScan.FindingSeverityCounts.getInformational()Sets the value ofECRImageScan.FindingSeverityCounts.getLow()Sets the value ofECRImageScan.FindingSeverityCounts.getMedium()Sets the value ofECRImageScan.FindingSeverityCounts.getUndefined()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
critical
@Stability(Experimental) public ECRImageScan.FindingSeverityCounts.Builder critical(List<String> critical) Sets the value ofECRImageScan.FindingSeverityCounts.getCritical()- Parameters:
critical- CRITICAL property. Specify an array of string values to match this event if the actual value of CRITICAL is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
high
Sets the value ofECRImageScan.FindingSeverityCounts.getHigh()- Parameters:
high- HIGH property. Specify an array of string values to match this event if the actual value of HIGH is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
informational
@Stability(Experimental) public ECRImageScan.FindingSeverityCounts.Builder informational(List<String> informational) Sets the value ofECRImageScan.FindingSeverityCounts.getInformational()- Parameters:
informational- INFORMATIONAL property. Specify an array of string values to match this event if the actual value of INFORMATIONAL is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
low
Sets the value ofECRImageScan.FindingSeverityCounts.getLow()- Parameters:
low- LOW property. Specify an array of string values to match this event if the actual value of LOW is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
medium
@Stability(Experimental) public ECRImageScan.FindingSeverityCounts.Builder medium(List<String> medium) Sets the value ofECRImageScan.FindingSeverityCounts.getMedium()- Parameters:
medium- MEDIUM property. Specify an array of string values to match this event if the actual value of MEDIUM is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
undefined
@Stability(Experimental) public ECRImageScan.FindingSeverityCounts.Builder undefined(List<String> undefined) Sets the value ofECRImageScan.FindingSeverityCounts.getUndefined()- Parameters:
undefined- UNDEFINED property. Specify an array of string values to match this event if the actual value of UNDEFINED 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<ECRImageScan.FindingSeverityCounts>- Returns:
- a new instance of
ECRImageScan.FindingSeverityCounts - Throws:
NullPointerException- if any required attribute was not provided
-