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.Builder
setNetworkId
in class NetworkInfo.Builder
public Network.Builder setDescription(String description)
NetworkInfo.Builder
setDescription
in class NetworkInfo.Builder
public Network.Builder setConfiguration(NetworkConfiguration configuration)
NetworkInfo.Builder
StandardNetworkConfiguration
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.Builder
public Network build()
NetworkInfo.Builder
NetworkInfo
object.build
in class NetworkInfo.Builder
Copyright © 2019 Google LLC. All rights reserved.