Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PortRange |
build() |
PortRange.Builder |
copy(PortRange model) |
PortRange.Builder |
max(Integer max)
The maximum port number, which must not be less than the minimum port number.
|
PortRange.Builder |
min(Integer min)
The minimum port number, which must not be greater than the maximum port number.
|
public PortRange.Builder max(Integer max)
The maximum port number, which must not be less than the minimum port number. To specify a single port number, set both the min and max to the same value.
max
- the value to setpublic PortRange.Builder min(Integer min)
The minimum port number, which must not be greater than the maximum port number.
min
- the value to setpublic PortRange build()
public PortRange.Builder copy(PortRange model)
Copyright © 2016–2024. All rights reserved.