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