public static final class CfnNetworkAclEntry.PortRangeProperty.Builder
extends java.lang.Object
CfnNetworkAclEntry.PortRangeProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnNetworkAclEntry.PortRangeProperty |
build()
Builds the configured instance.
|
CfnNetworkAclEntry.PortRangeProperty.Builder |
from(java.lang.Number from)
Sets the value of
CfnNetworkAclEntry.PortRangeProperty.getFrom() |
CfnNetworkAclEntry.PortRangeProperty.Builder |
to(java.lang.Number to)
Sets the value of
CfnNetworkAclEntry.PortRangeProperty.getTo() |
public CfnNetworkAclEntry.PortRangeProperty.Builder from(java.lang.Number from)
CfnNetworkAclEntry.PortRangeProperty.getFrom()
from
- The first port in the range.
Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.this
public CfnNetworkAclEntry.PortRangeProperty.Builder to(java.lang.Number to)
CfnNetworkAclEntry.PortRangeProperty.getTo()
to
- The last port in the range.
Required if you specify 6 (TCP) or 17 (UDP) for the protocol parameter.this
public CfnNetworkAclEntry.PortRangeProperty build()
CfnNetworkAclEntry.PortRangeProperty
java.lang.NullPointerException
- if any required attribute was not provided