Class CfnRuleGroup.MatchAttributesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.MatchAttributesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.MatchAttributesProperty>
- Enclosing interface:
CfnRuleGroup.MatchAttributesProperty
@Stability(Stable)
public static final class CfnRuleGroup.MatchAttributesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.MatchAttributesProperty>
A builder for
CfnRuleGroup.MatchAttributesProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationPorts(List<? extends Object> destinationPorts) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getDestinationPorts()destinationPorts(IResolvable destinationPorts) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getDestinationPorts()destinations(List<? extends Object> destinations) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getDestinations()destinations(IResolvable destinations) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getDestinations()Sets the value ofCfnRuleGroup.MatchAttributesProperty.getProtocols()protocols(IResolvable protocols) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getProtocols()sourcePorts(List<? extends Object> sourcePorts) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getSourcePorts()sourcePorts(IResolvable sourcePorts) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getSourcePorts()Sets the value ofCfnRuleGroup.MatchAttributesProperty.getSources()sources(IResolvable sources) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getSources()Sets the value ofCfnRuleGroup.MatchAttributesProperty.getTcpFlags()tcpFlags(IResolvable tcpFlags) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getTcpFlags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationPorts
@Stability(Stable) public CfnRuleGroup.MatchAttributesProperty.Builder destinationPorts(IResolvable destinationPorts) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getDestinationPorts()- Parameters:
destinationPorts- The destination port to inspect for. You can specify an individual port, for example1994and you can specify a port range, for example1990:1994. To match with any port, specifyANY.This setting is only used for protocols 6 (TCP) and 17 (UDP).
- Returns:
this
-
destinationPorts
@Stability(Stable) public CfnRuleGroup.MatchAttributesProperty.Builder destinationPorts(List<? extends Object> destinationPorts) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getDestinationPorts()- Parameters:
destinationPorts- The destination port to inspect for. You can specify an individual port, for example1994and you can specify a port range, for example1990:1994. To match with any port, specifyANY.This setting is only used for protocols 6 (TCP) and 17 (UDP).
- Returns:
this
-
destinations
@Stability(Stable) public CfnRuleGroup.MatchAttributesProperty.Builder destinations(IResolvable destinations) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getDestinations()- Parameters:
destinations- The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address.- Returns:
this
-
destinations
@Stability(Stable) public CfnRuleGroup.MatchAttributesProperty.Builder destinations(List<? extends Object> destinations) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getDestinations()- Parameters:
destinations- The destination IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any destination address.- Returns:
this
-
protocols
@Stability(Stable) public CfnRuleGroup.MatchAttributesProperty.Builder protocols(List<? extends Number> protocols) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getProtocols()- Parameters:
protocols- The protocols to inspect for, specified using the assigned internet protocol number (IANA) for each protocol. If not specified, this matches with any protocol.- Returns:
this
-
protocols
@Stability(Stable) public CfnRuleGroup.MatchAttributesProperty.Builder protocols(IResolvable protocols) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getProtocols()- Parameters:
protocols- The protocols to inspect for, specified using the assigned internet protocol number (IANA) for each protocol. If not specified, this matches with any protocol.- Returns:
this
-
sourcePorts
@Stability(Stable) public CfnRuleGroup.MatchAttributesProperty.Builder sourcePorts(IResolvable sourcePorts) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getSourcePorts()- Parameters:
sourcePorts- The source port to inspect for. You can specify an individual port, for example1994and you can specify a port range, for example1990:1994. To match with any port, specifyANY.If not specified, this matches with any source port.
This setting is only used for protocols 6 (TCP) and 17 (UDP).
- Returns:
this
-
sourcePorts
@Stability(Stable) public CfnRuleGroup.MatchAttributesProperty.Builder sourcePorts(List<? extends Object> sourcePorts) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getSourcePorts()- Parameters:
sourcePorts- The source port to inspect for. You can specify an individual port, for example1994and you can specify a port range, for example1990:1994. To match with any port, specifyANY.If not specified, this matches with any source port.
This setting is only used for protocols 6 (TCP) and 17 (UDP).
- Returns:
this
-
sources
Sets the value ofCfnRuleGroup.MatchAttributesProperty.getSources()- Parameters:
sources- The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address.- Returns:
this
-
sources
@Stability(Stable) public CfnRuleGroup.MatchAttributesProperty.Builder sources(List<? extends Object> sources) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getSources()- Parameters:
sources- The source IP addresses and address ranges to inspect for, in CIDR notation. If not specified, this matches with any source address.- Returns:
this
-
tcpFlags
@Stability(Stable) public CfnRuleGroup.MatchAttributesProperty.Builder tcpFlags(IResolvable tcpFlags) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getTcpFlags()- Parameters:
tcpFlags- The TCP flags and masks to inspect for. If not specified, this matches with any settings. This setting is only used for protocol 6 (TCP).- Returns:
this
-
tcpFlags
@Stability(Stable) public CfnRuleGroup.MatchAttributesProperty.Builder tcpFlags(List<? extends Object> tcpFlags) Sets the value ofCfnRuleGroup.MatchAttributesProperty.getTcpFlags()- Parameters:
tcpFlags- The TCP flags and masks to inspect for. If not specified, this matches with any settings. This setting is only used for protocol 6 (TCP).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleGroup.MatchAttributesProperty>- Returns:
- a new instance of
CfnRuleGroup.MatchAttributesProperty - Throws:
NullPointerException- if any required attribute was not provided
-