Class GuardDutyFinding.DnsRequestAction.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.guardduty.events.GuardDutyFinding.DnsRequestAction.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<GuardDutyFinding.DnsRequestAction>
- Enclosing interface:
GuardDutyFinding.DnsRequestAction
@Stability(Experimental)
public static final class GuardDutyFinding.DnsRequestAction.Builder
extends Object
implements software.amazon.jsii.Builder<GuardDutyFinding.DnsRequestAction>
A builder for
GuardDutyFinding.DnsRequestAction-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofGuardDutyFinding.DnsRequestAction.getBlocked()build()Builds the configured instance.Sets the value ofGuardDutyFinding.DnsRequestAction.getDomain()Sets the value ofGuardDutyFinding.DnsRequestAction.getProtocol()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blocked
@Stability(Experimental) public GuardDutyFinding.DnsRequestAction.Builder blocked(List<String> blocked) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.DnsRequestAction.Builder domain(List<String> domain) Sets the value ofGuardDutyFinding.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 GuardDutyFinding.DnsRequestAction.Builder protocol(List<String> protocol) Sets the value ofGuardDutyFinding.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<GuardDutyFinding.DnsRequestAction>- Returns:
- a new instance of
GuardDutyFinding.DnsRequestAction - Throws:
NullPointerException- if any required attribute was not provided
-