Modifier and Type | Method and Description |
---|---|
Port |
build() |
static Port.Builder |
create() |
Port.Builder |
fromPort(java.lang.Number fromPort)
The starting port for the range.
|
Port.Builder |
protocol(Protocol protocol)
The protocol for the range.
|
Port.Builder |
stringRepresentation(java.lang.String stringRepresentation)
String representation for this object.
|
Port.Builder |
toPort(java.lang.Number toPort)
The ending port for the range.
|
public static Port.Builder create()
Port.Builder
.public Port.Builder protocol(Protocol protocol)
protocol
- The protocol for the range. This parameter is required.this
public Port.Builder stringRepresentation(java.lang.String stringRepresentation)
stringRepresentation
- String representation for this object. This parameter is required.this
public Port.Builder fromPort(java.lang.Number fromPort)
Default: - Not included in the rule
fromPort
- The starting port for the range. This parameter is required.this
public Port.Builder toPort(java.lang.Number toPort)
Default: - Not included in the rule
toPort
- The ending port for the range. This parameter is required.this
public Port build()