public static class Network.Builder extends NetworkInfo.Builder
Network objects.| Modifier and Type | Method and Description |
|---|---|
Network |
build()
Creates a
NetworkInfo object. |
Network.Builder |
setConfiguration(NetworkConfiguration configuration)
Sets the network configuration.
|
Network.Builder |
setDescription(String description)
Sets an optional textual description of the network.
|
Network.Builder |
setNetworkId(NetworkId networkId)
Sets the identity of the network.
|
public Network.Builder setNetworkId(NetworkId networkId)
NetworkInfo.BuildersetNetworkId in class NetworkInfo.Builderpublic Network.Builder setDescription(String description)
NetworkInfo.BuildersetDescription in class NetworkInfo.Builderpublic Network.Builder setConfiguration(NetworkConfiguration configuration)
NetworkInfo.BuilderStandardNetworkConfiguration to create a standard
network with associated IPv4 range. Use SubnetNetworkConfiguration to create a
network that could be divided into subnetworks, up to one per region, each with its own
address range.setConfiguration in class NetworkInfo.Builderpublic Network build()
NetworkInfo.BuilderNetworkInfo object.build in class NetworkInfo.BuilderCopyright © 2019 Google LLC. All rights reserved.