Class DNSFirewallAlert.DNSFirewallAlertProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.route53resolver.events.DNSFirewallAlert.DNSFirewallAlertProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DNSFirewallAlert.DNSFirewallAlertProps>
- Enclosing interface:
DNSFirewallAlert.DNSFirewallAlertProps
@Stability(Experimental)
public static final class DNSFirewallAlert.DNSFirewallAlertProps.Builder
extends Object
implements software.amazon.jsii.Builder<DNSFirewallAlert.DNSFirewallAlertProps>
A builder for
DNSFirewallAlert.DNSFirewallAlertProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getAccountId()build()Builds the configured instance.eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getEventMetadata()firewallDomainListId(List<String> firewallDomainListId) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getFirewallDomainListId()firewallRuleAction(List<String> firewallRuleAction) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getFirewallRuleAction()firewallRuleGroupId(List<String> firewallRuleGroupId) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getFirewallRuleGroupId()lastObservedAt(List<String> lastObservedAt) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getLastObservedAt()queryClass(List<String> queryClass) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getQueryClass()Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getQueryName()Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getQueryType()resources(List<? extends DNSFirewallAlert.DnsFirewallAlertItem> resources) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getResources()Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getSrcAddr()Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getSrcPort()Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getTransport()Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountId
@Stability(Experimental) public DNSFirewallAlert.DNSFirewallAlertProps.Builder accountId(List<String> accountId) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getAccountId()- Parameters:
accountId- account-id property. Specify an array of string values to match this event if the actual value of account-id is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
eventMetadata
@Stability(Experimental) public DNSFirewallAlert.DNSFirewallAlertProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
firewallDomainListId
@Stability(Experimental) public DNSFirewallAlert.DNSFirewallAlertProps.Builder firewallDomainListId(List<String> firewallDomainListId) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getFirewallDomainListId()- Parameters:
firewallDomainListId- firewall-domain-list-id property. Specify an array of string values to match this event if the actual value of firewall-domain-list-id is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
firewallRuleAction
@Stability(Experimental) public DNSFirewallAlert.DNSFirewallAlertProps.Builder firewallRuleAction(List<String> firewallRuleAction) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getFirewallRuleAction()- Parameters:
firewallRuleAction- firewall-rule-action property. Specify an array of string values to match this event if the actual value of firewall-rule-action is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
firewallRuleGroupId
@Stability(Experimental) public DNSFirewallAlert.DNSFirewallAlertProps.Builder firewallRuleGroupId(List<String> firewallRuleGroupId) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getFirewallRuleGroupId()- Parameters:
firewallRuleGroupId- firewall-rule-group-id property. Specify an array of string values to match this event if the actual value of firewall-rule-group-id is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
lastObservedAt
@Stability(Experimental) public DNSFirewallAlert.DNSFirewallAlertProps.Builder lastObservedAt(List<String> lastObservedAt) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getLastObservedAt()- Parameters:
lastObservedAt- last-observed-at property. Specify an array of string values to match this event if the actual value of last-observed-at is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
queryClass
@Stability(Experimental) public DNSFirewallAlert.DNSFirewallAlertProps.Builder queryClass(List<String> queryClass) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getQueryClass()- Parameters:
queryClass- query-class property. Specify an array of string values to match this event if the actual value of query-class is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
queryName
@Stability(Experimental) public DNSFirewallAlert.DNSFirewallAlertProps.Builder queryName(List<String> queryName) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getQueryName()- Parameters:
queryName- query-name property. Specify an array of string values to match this event if the actual value of query-name is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
queryType
@Stability(Experimental) public DNSFirewallAlert.DNSFirewallAlertProps.Builder queryType(List<String> queryType) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getQueryType()- Parameters:
queryType- query-type property. Specify an array of string values to match this event if the actual value of query-type is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
resources
@Stability(Experimental) public DNSFirewallAlert.DNSFirewallAlertProps.Builder resources(List<? extends DNSFirewallAlert.DnsFirewallAlertItem> resources) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getResources()- Parameters:
resources- resources property. Specify an array of string values to match this event if the actual value of resources is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
srcAddr
@Stability(Experimental) public DNSFirewallAlert.DNSFirewallAlertProps.Builder srcAddr(List<String> srcAddr) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getSrcAddr()- Parameters:
srcAddr- src-addr property. Specify an array of string values to match this event if the actual value of src-addr is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
srcPort
@Stability(Experimental) public DNSFirewallAlert.DNSFirewallAlertProps.Builder srcPort(List<String> srcPort) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getSrcPort()- Parameters:
srcPort- src-port property. Specify an array of string values to match this event if the actual value of src-port is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
transport
@Stability(Experimental) public DNSFirewallAlert.DNSFirewallAlertProps.Builder transport(List<String> transport) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getTransport()- Parameters:
transport- transport property. Specify an array of string values to match this event if the actual value of transport is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
vpcId
@Stability(Experimental) public DNSFirewallAlert.DNSFirewallAlertProps.Builder vpcId(List<String> vpcId) Sets the value ofDNSFirewallAlert.DNSFirewallAlertProps.getVpcId()- Parameters:
vpcId- vpc-id property. Specify an array of string values to match this event if the actual value of vpc-id 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<DNSFirewallAlert.DNSFirewallAlertProps>- Returns:
- a new instance of
DNSFirewallAlert.DNSFirewallAlertProps - Throws:
NullPointerException- if any required attribute was not provided
-