public static final class NetworkAddress.Builder
extends java.lang.Object
NetworkAddress
.Constructor and Description |
---|
Builder(java.lang.String hostname)
Constructor with parameters for the required properties of
NetworkAddress . |
Modifier and Type | Method and Description |
---|---|
NetworkAddress |
build() |
NetworkAddress.Builder |
setPort(java.lang.Long port)
The port of the service.
|
public Builder(java.lang.String hostname)
NetworkAddress
.public NetworkAddress.Builder setPort(java.lang.Long port)
null
, port 443 will be used.port
- New value for the property.public NetworkAddress build()