Class CfnNetworkAclEntry.PortRangeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnNetworkAclEntry.PortRangeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkAclEntry.PortRangeProperty>
- Enclosing interface:
CfnNetworkAclEntry.PortRangeProperty
@Stability(Stable)
public static final class CfnNetworkAclEntry.PortRangeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkAclEntry.PortRangeProperty>
A builder for
CfnNetworkAclEntry.PortRangeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnNetworkAclEntry.PortRangeProperty.getFrom()
Sets the value ofCfnNetworkAclEntry.PortRangeProperty.getTo()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
Sets the value ofCfnNetworkAclEntry.PortRangeProperty.getFrom()
- Parameters:
from
- The first port in the range. Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.- Returns:
this
-
to
Sets the value ofCfnNetworkAclEntry.PortRangeProperty.getTo()
- Parameters:
to
- The last port in the range. Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnNetworkAclEntry.PortRangeProperty>
- Returns:
- a new instance of
CfnNetworkAclEntry.PortRangeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-