Class GuardDutyFinding.AdditionalInfo.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.GuardDutyFinding.AdditionalInfo.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GuardDutyFinding.AdditionalInfo>
- Enclosing interface:
GuardDutyFinding.AdditionalInfo
@Stability(Experimental)
public static final class GuardDutyFinding.AdditionalInfo.Builder
extends Object
implements software.amazon.jsii.Builder<GuardDutyFinding.AdditionalInfo>
A builder for
GuardDutyFinding.AdditionalInfo-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalScannedPorts(List<? extends Object> additionalScannedPorts) Sets the value ofGuardDutyFinding.AdditionalInfo.getAdditionalScannedPorts()anomalies(GuardDutyFinding.Anomalies anomalies) Sets the value ofGuardDutyFinding.AdditionalInfo.getAnomalies()apiCalls(List<? extends GuardDutyFinding.AdditionalInfoItem> apiCalls) Sets the value ofGuardDutyFinding.AdditionalInfo.getApiCalls()build()Builds the configured instance.Sets the value ofGuardDutyFinding.AdditionalInfo.getDomain()Sets the value ofGuardDutyFinding.AdditionalInfo.getInBytes()Sets the value ofGuardDutyFinding.AdditionalInfo.getLocalPort()newPolicy(GuardDutyFinding.NewPolicy newPolicy) Sets the value ofGuardDutyFinding.AdditionalInfo.getNewPolicy()oldPolicy(GuardDutyFinding.OldPolicy oldPolicy) Sets the value ofGuardDutyFinding.AdditionalInfo.getOldPolicy()Sets the value ofGuardDutyFinding.AdditionalInfo.getOutBytes()portsScannedSample(List<? extends Number> portsScannedSample) Sets the value ofGuardDutyFinding.AdditionalInfo.getPortsScannedSample()profiledBehavior(GuardDutyFinding.ProfiledBehavior profiledBehavior) Sets the value ofGuardDutyFinding.AdditionalInfo.getProfiledBehavior()recentCredentials(List<? extends GuardDutyFinding.AdditionalInfoItem1> recentCredentials) Sets the value ofGuardDutyFinding.AdditionalInfo.getRecentCredentials()Sets the value ofGuardDutyFinding.AdditionalInfo.getSample()scannedPort(List<String> scannedPort) Sets the value ofGuardDutyFinding.AdditionalInfo.getScannedPort()threatListName(List<String> threatListName) Sets the value ofGuardDutyFinding.AdditionalInfo.getThreatListName()threatName(List<String> threatName) Sets the value ofGuardDutyFinding.AdditionalInfo.getThreatName()Sets the value ofGuardDutyFinding.AdditionalInfo.getType()Sets the value ofGuardDutyFinding.AdditionalInfo.getUnusual()unusualBehavior(GuardDutyFinding.UnusualBehavior unusualBehavior) Sets the value ofGuardDutyFinding.AdditionalInfo.getUnusualBehavior()unusualProtocol(List<String> unusualProtocol) Sets the value ofGuardDutyFinding.AdditionalInfo.getUnusualProtocol()userAgent(GuardDutyFinding.UserAgent userAgent) Sets the value ofGuardDutyFinding.AdditionalInfo.getUserAgent()Sets the value ofGuardDutyFinding.AdditionalInfo.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
additionalScannedPorts
@Stability(Experimental) public GuardDutyFinding.AdditionalInfo.Builder additionalScannedPorts(List<? extends Object> additionalScannedPorts) Sets the value ofGuardDutyFinding.AdditionalInfo.getAdditionalScannedPorts()- Parameters:
additionalScannedPorts- additionalScannedPorts property. Specify an array of string values to match this event if the actual value of additionalScannedPorts is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
anomalies
@Stability(Experimental) public GuardDutyFinding.AdditionalInfo.Builder anomalies(GuardDutyFinding.Anomalies anomalies) Sets the value ofGuardDutyFinding.AdditionalInfo.getAnomalies()- Parameters:
anomalies- anomalies property. Specify an array of string values to match this event if the actual value of anomalies is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
apiCalls
@Stability(Experimental) public GuardDutyFinding.AdditionalInfo.Builder apiCalls(List<? extends GuardDutyFinding.AdditionalInfoItem> apiCalls) Sets the value ofGuardDutyFinding.AdditionalInfo.getApiCalls()- Parameters:
apiCalls- apiCalls property. Specify an array of string values to match this event if the actual value of apiCalls is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
domain
Sets the value ofGuardDutyFinding.AdditionalInfo.getDomain()- Parameters:
domain- domain property. Specify an array of string values to match this event if the actual value of domain is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
inBytes
@Stability(Experimental) public GuardDutyFinding.AdditionalInfo.Builder inBytes(List<String> inBytes) Sets the value ofGuardDutyFinding.AdditionalInfo.getInBytes()- Parameters:
inBytes- inBytes property. Specify an array of string values to match this event if the actual value of inBytes is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
localPort
@Stability(Experimental) public GuardDutyFinding.AdditionalInfo.Builder localPort(List<String> localPort) Sets the value ofGuardDutyFinding.AdditionalInfo.getLocalPort()- Parameters:
localPort- localPort property. Specify an array of string values to match this event if the actual value of localPort is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
newPolicy
@Stability(Experimental) public GuardDutyFinding.AdditionalInfo.Builder newPolicy(GuardDutyFinding.NewPolicy newPolicy) Sets the value ofGuardDutyFinding.AdditionalInfo.getNewPolicy()- Parameters:
newPolicy- newPolicy property. Specify an array of string values to match this event if the actual value of newPolicy is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
oldPolicy
@Stability(Experimental) public GuardDutyFinding.AdditionalInfo.Builder oldPolicy(GuardDutyFinding.OldPolicy oldPolicy) Sets the value ofGuardDutyFinding.AdditionalInfo.getOldPolicy()- Parameters:
oldPolicy- oldPolicy property. Specify an array of string values to match this event if the actual value of oldPolicy is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
outBytes
@Stability(Experimental) public GuardDutyFinding.AdditionalInfo.Builder outBytes(List<String> outBytes) Sets the value ofGuardDutyFinding.AdditionalInfo.getOutBytes()- Parameters:
outBytes- outBytes property. Specify an array of string values to match this event if the actual value of outBytes is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
portsScannedSample
@Stability(Experimental) public GuardDutyFinding.AdditionalInfo.Builder portsScannedSample(List<? extends Number> portsScannedSample) Sets the value ofGuardDutyFinding.AdditionalInfo.getPortsScannedSample()- Parameters:
portsScannedSample- portsScannedSample property. Specify an array of string values to match this event if the actual value of portsScannedSample is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
profiledBehavior
@Stability(Experimental) public GuardDutyFinding.AdditionalInfo.Builder profiledBehavior(GuardDutyFinding.ProfiledBehavior profiledBehavior) Sets the value ofGuardDutyFinding.AdditionalInfo.getProfiledBehavior()- Parameters:
profiledBehavior- profiledBehavior property. Specify an array of string values to match this event if the actual value of profiledBehavior is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
recentCredentials
@Stability(Experimental) public GuardDutyFinding.AdditionalInfo.Builder recentCredentials(List<? extends GuardDutyFinding.AdditionalInfoItem1> recentCredentials) Sets the value ofGuardDutyFinding.AdditionalInfo.getRecentCredentials()- Parameters:
recentCredentials- recentCredentials property. Specify an array of string values to match this event if the actual value of recentCredentials is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
sample
Sets the value ofGuardDutyFinding.AdditionalInfo.getSample()- Parameters:
sample- sample property. Specify an array of string values to match this event if the actual value of sample is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
scannedPort
@Stability(Experimental) public GuardDutyFinding.AdditionalInfo.Builder scannedPort(List<String> scannedPort) Sets the value ofGuardDutyFinding.AdditionalInfo.getScannedPort()- Parameters:
scannedPort- scannedPort property. Specify an array of string values to match this event if the actual value of scannedPort is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
threatListName
@Stability(Experimental) public GuardDutyFinding.AdditionalInfo.Builder threatListName(List<String> threatListName) Sets the value ofGuardDutyFinding.AdditionalInfo.getThreatListName()- Parameters:
threatListName- threatListName property. Specify an array of string values to match this event if the actual value of threatListName is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
threatName
@Stability(Experimental) public GuardDutyFinding.AdditionalInfo.Builder threatName(List<String> threatName) Sets the value ofGuardDutyFinding.AdditionalInfo.getThreatName()- Parameters:
threatName- threatName property. Specify an array of string values to match this event if the actual value of threatName is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
type
Sets the value ofGuardDutyFinding.AdditionalInfo.getType()- Parameters:
type- type property. Specify an array of string values to match this event if the actual value of type is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
unusual
Sets the value ofGuardDutyFinding.AdditionalInfo.getUnusual()- Parameters:
unusual- unusual property. Specify an array of string values to match this event if the actual value of unusual is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
unusualBehavior
@Stability(Experimental) public GuardDutyFinding.AdditionalInfo.Builder unusualBehavior(GuardDutyFinding.UnusualBehavior unusualBehavior) Sets the value ofGuardDutyFinding.AdditionalInfo.getUnusualBehavior()- Parameters:
unusualBehavior- unusualBehavior property. Specify an array of string values to match this event if the actual value of unusualBehavior is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
unusualProtocol
@Stability(Experimental) public GuardDutyFinding.AdditionalInfo.Builder unusualProtocol(List<String> unusualProtocol) Sets the value ofGuardDutyFinding.AdditionalInfo.getUnusualProtocol()- Parameters:
unusualProtocol- unusualProtocol property. Specify an array of string values to match this event if the actual value of unusualProtocol is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
userAgent
@Stability(Experimental) public GuardDutyFinding.AdditionalInfo.Builder userAgent(GuardDutyFinding.UserAgent userAgent) Sets the value ofGuardDutyFinding.AdditionalInfo.getUserAgent()- Parameters:
userAgent- userAgent property. Specify an array of string values to match this event if the actual value of userAgent is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
value
Sets the value ofGuardDutyFinding.AdditionalInfo.getValue()- Parameters:
value- value property. Specify an array of string values to match this event if the actual value of value 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.AdditionalInfo>- Returns:
- a new instance of
GuardDutyFinding.AdditionalInfo - Throws:
NullPointerException- if any required attribute was not provided
-