Class GuardDutyFinding.ThreatDetectedByName.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.GuardDutyFinding.ThreatDetectedByName.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GuardDutyFinding.ThreatDetectedByName>
- Enclosing interface:
GuardDutyFinding.ThreatDetectedByName
@Stability(Experimental)
public static final class GuardDutyFinding.ThreatDetectedByName.Builder
extends Object
implements software.amazon.jsii.Builder<GuardDutyFinding.ThreatDetectedByName>
A builder for
GuardDutyFinding.ThreatDetectedByName-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofGuardDutyFinding.ThreatDetectedByName.getItemCount()Sets the value ofGuardDutyFinding.ThreatDetectedByName.getShortened()threatNames(List<? extends GuardDutyFinding.ThreatDetectedByNameItem> threatNames) Sets the value ofGuardDutyFinding.ThreatDetectedByName.getThreatNames()uniqueThreatNameCount(List<String> uniqueThreatNameCount) Sets the value ofGuardDutyFinding.ThreatDetectedByName.getUniqueThreatNameCount()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
itemCount
@Stability(Experimental) public GuardDutyFinding.ThreatDetectedByName.Builder itemCount(List<String> itemCount) Sets the value ofGuardDutyFinding.ThreatDetectedByName.getItemCount()- Parameters:
itemCount- itemCount property. Specify an array of string values to match this event if the actual value of itemCount is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
shortened
@Stability(Experimental) public GuardDutyFinding.ThreatDetectedByName.Builder shortened(List<String> shortened) Sets the value ofGuardDutyFinding.ThreatDetectedByName.getShortened()- Parameters:
shortened- shortened property. Specify an array of string values to match this event if the actual value of shortened is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
threatNames
@Stability(Experimental) public GuardDutyFinding.ThreatDetectedByName.Builder threatNames(List<? extends GuardDutyFinding.ThreatDetectedByNameItem> threatNames) Sets the value ofGuardDutyFinding.ThreatDetectedByName.getThreatNames()- Parameters:
threatNames- threatNames property. Specify an array of string values to match this event if the actual value of threatNames is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
uniqueThreatNameCount
@Stability(Experimental) public GuardDutyFinding.ThreatDetectedByName.Builder uniqueThreatNameCount(List<String> uniqueThreatNameCount) Sets the value ofGuardDutyFinding.ThreatDetectedByName.getUniqueThreatNameCount()- Parameters:
uniqueThreatNameCount- uniqueThreatNameCount property. Specify an array of string values to match this event if the actual value of uniqueThreatNameCount 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<GuardDutyFinding.ThreatDetectedByName>- Returns:
- a new instance of
GuardDutyFinding.ThreatDetectedByName - Throws:
NullPointerException- if any required attribute was not provided
-