Class DNSFirewallBlock.DNSFirewallBlockProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.route53resolver.events.DNSFirewallBlock.DNSFirewallBlockProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DNSFirewallBlock.DNSFirewallBlockProps>
- Enclosing interface:
DNSFirewallBlock.DNSFirewallBlockProps
@Stability(Experimental)
public static final class DNSFirewallBlock.DNSFirewallBlockProps.Builder
extends Object
implements software.amazon.jsii.Builder<DNSFirewallBlock.DNSFirewallBlockProps>
A builder for
DNSFirewallBlock.DNSFirewallBlockProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofDNSFirewallBlock.DNSFirewallBlockProps.getAccountId()build()Builds the configured instance.eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.getEventMetadata()firewallDomainListId(List<String> firewallDomainListId) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.getFirewallDomainListId()firewallRuleAction(List<String> firewallRuleAction) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.getFirewallRuleAction()firewallRuleGroupId(List<String> firewallRuleGroupId) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.getFirewallRuleGroupId()lastObservedAt(List<String> lastObservedAt) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.getLastObservedAt()queryClass(List<String> queryClass) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.getQueryClass()Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.getQueryName()Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.getQueryType()resources(List<? extends DNSFirewallBlock.DnsFirewallBlockItem> resources) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.getResources()Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.getSrcAddr()Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.getSrcPort()Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.getTransport()Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountId
@Stability(Experimental) public DNSFirewallBlock.DNSFirewallBlockProps.Builder accountId(List<String> accountId) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.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 DNSFirewallBlock.DNSFirewallBlockProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
firewallDomainListId
@Stability(Experimental) public DNSFirewallBlock.DNSFirewallBlockProps.Builder firewallDomainListId(List<String> firewallDomainListId) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.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 DNSFirewallBlock.DNSFirewallBlockProps.Builder firewallRuleAction(List<String> firewallRuleAction) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.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 DNSFirewallBlock.DNSFirewallBlockProps.Builder firewallRuleGroupId(List<String> firewallRuleGroupId) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.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 DNSFirewallBlock.DNSFirewallBlockProps.Builder lastObservedAt(List<String> lastObservedAt) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.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 DNSFirewallBlock.DNSFirewallBlockProps.Builder queryClass(List<String> queryClass) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.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 DNSFirewallBlock.DNSFirewallBlockProps.Builder queryName(List<String> queryName) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.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 DNSFirewallBlock.DNSFirewallBlockProps.Builder queryType(List<String> queryType) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.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 DNSFirewallBlock.DNSFirewallBlockProps.Builder resources(List<? extends DNSFirewallBlock.DnsFirewallBlockItem> resources) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.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 DNSFirewallBlock.DNSFirewallBlockProps.Builder srcAddr(List<String> srcAddr) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.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 DNSFirewallBlock.DNSFirewallBlockProps.Builder srcPort(List<String> srcPort) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.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 DNSFirewallBlock.DNSFirewallBlockProps.Builder transport(List<String> transport) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.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 DNSFirewallBlock.DNSFirewallBlockProps.Builder vpcId(List<String> vpcId) Sets the value ofDNSFirewallBlock.DNSFirewallBlockProps.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<DNSFirewallBlock.DNSFirewallBlockProps>- Returns:
- a new instance of
DNSFirewallBlock.DNSFirewallBlockProps - Throws:
NullPointerException- if any required attribute was not provided
-