Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
PortProps |
build()
Builds the configured instance.
|
PortProps.Builder |
fromPort(java.lang.Number fromPort)
Sets the value of
PortProps.getFromPort() |
PortProps.Builder |
protocol(Protocol protocol)
Sets the value of
PortProps.getProtocol() |
PortProps.Builder |
stringRepresentation(java.lang.String stringRepresentation)
Sets the value of
PortProps.getStringRepresentation() |
PortProps.Builder |
toPort(java.lang.Number toPort)
Sets the value of
PortProps.getToPort() |
public PortProps.Builder protocol(Protocol protocol)
PortProps.getProtocol()
protocol
- The protocol for the range. This parameter is required.this
public PortProps.Builder stringRepresentation(java.lang.String stringRepresentation)
PortProps.getStringRepresentation()
stringRepresentation
- String representation for this object. This parameter is required.this
public PortProps.Builder fromPort(java.lang.Number fromPort)
PortProps.getFromPort()
fromPort
- The starting port for the range.this
public PortProps.Builder toPort(java.lang.Number toPort)
PortProps.getToPort()
toPort
- The ending port for the range.this