Class CfnNetworkAclEntryPropsMixin.PortRangeProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnNetworkAclEntryPropsMixin.PortRangeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkAclEntryPropsMixin.PortRangeProperty>
- Enclosing interface:
CfnNetworkAclEntryPropsMixin.PortRangeProperty
@Stability(Stable)
public static final class CfnNetworkAclEntryPropsMixin.PortRangeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkAclEntryPropsMixin.PortRangeProperty>
A builder for
CfnNetworkAclEntryPropsMixin.PortRangeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnNetworkAclEntryPropsMixin.PortRangeProperty.getFrom()Sets the value ofCfnNetworkAclEntryPropsMixin.PortRangeProperty.getTo()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
from
Sets the value ofCfnNetworkAclEntryPropsMixin.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 ofCfnNetworkAclEntryPropsMixin.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnNetworkAclEntryPropsMixin.PortRangeProperty>- Returns:
- a new instance of
CfnNetworkAclEntryPropsMixin.PortRangeProperty - Throws:
NullPointerException- if any required attribute was not provided
-