Specifies the "port" component of the new URI, e.g. "8080". The port can be any non-negative integer. A negative value represents "no port". This field is optional. @param port the new "port" component, or -1 to clear this field @return this, for fluent building
(int port)
| 970 | * @return this, for fluent building |
| 971 | */ |
| 972 | @CanIgnoreReturnValue |
| 973 | public Builder setPort(int port) { |
| 974 | this.port = port < 0 ? null : Integer.toString(port); |
| 975 | return this; |
| 976 | } |
| 977 | |
| 978 | @CanIgnoreReturnValue |
| 979 | Builder setRawPort(String port) { |