Class CfnRuleGroup.TCPFlagFieldProperty.Builder
java.lang.Object
software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.TCPFlagFieldProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.TCPFlagFieldProperty>
- Enclosing interface:
CfnRuleGroup.TCPFlagFieldProperty
@Stability(Stable)
public static final class CfnRuleGroup.TCPFlagFieldProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.TCPFlagFieldProperty>
A builder for
CfnRuleGroup.TCPFlagFieldProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnRuleGroup.TCPFlagFieldProperty.getFlags()
Sets the value ofCfnRuleGroup.TCPFlagFieldProperty.getMasks()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
flags
Sets the value ofCfnRuleGroup.TCPFlagFieldProperty.getFlags()
- Parameters:
flags
- Used in conjunction with theMasks
setting to define the flags that must be set and flags that must not be set in order for the packet to match. This parameter is required. This setting can only specify values that are also specified in theMasks
setting.For the flags that are specified in the masks setting, the following must be true for the packet to match:
- The ones that are set in this flags setting must be set in the packet.
- The ones that are not set in this flags setting must also not be set in the packet.
- Returns:
this
-
masks
Sets the value ofCfnRuleGroup.TCPFlagFieldProperty.getMasks()
- Parameters:
masks
- The set of flags to consider in the inspection. To inspect all flags in the valid values list, leave this with no setting.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRuleGroup.TCPFlagFieldProperty>
- Returns:
- a new instance of
CfnRuleGroup.TCPFlagFieldProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-