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