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