Class CfnRuleGroup.PortRangeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.networkfirewall.CfnRuleGroup.PortRangeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleGroup.PortRangeProperty>
- Enclosing interface:
CfnRuleGroup.PortRangeProperty
@Stability(Stable)
public static final class CfnRuleGroup.PortRangeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleGroup.PortRangeProperty>
A builder for
CfnRuleGroup.PortRangeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRuleGroup.PortRangeProperty.getFromPort()Sets the value ofCfnRuleGroup.PortRangeProperty.getToPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fromPort
Sets the value ofCfnRuleGroup.PortRangeProperty.getFromPort()- Parameters:
fromPort- The lower limit of the port range. This parameter is required. This must be less than or equal to theToPortspecification.- Returns:
this
-
toPort
Sets the value ofCfnRuleGroup.PortRangeProperty.getToPort()- Parameters:
toPort- The upper limit of the port range. This parameter is required. This must be greater than or equal to theFromPortspecification.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuleGroup.PortRangeProperty>- Returns:
- a new instance of
CfnRuleGroup.PortRangeProperty - Throws:
NullPointerException- if any required attribute was not provided
-