Class PortRange.Builder
- java.lang.Object
-
- com.oracle.bmc.vnmonitoring.model.PortRange.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
max
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.
- Parameters:
max
- the value to set- Returns:
- this builder
-
min
public PortRange.Builder min(Integer min)
The minimum port number, which must not be greater than the maximum port number.- Parameters:
min
- the value to set- Returns:
- this builder
-
build
public PortRange build()
-
copy
public PortRange.Builder copy(PortRange model)
-
-