public static class Subnetwork.Builder extends SubnetworkInfo.Builder
Subnetwork objects.| Modifier and Type | Method and Description |
|---|---|
Subnetwork |
build()
Creates a
SubnetworkInfo object. |
Subnetwork.Builder |
setDescription(String description)
Sets an optional textual description of the subnetwork.
|
Subnetwork.Builder |
setIpRange(String ipRange)
Sets the range of internal IPv4 addresses that are owned by this subnetwork.
|
Subnetwork.Builder |
setNetwork(NetworkId network)
Sets the identity of the network to which this subnetwork belongs.
|
Subnetwork.Builder |
setSubnetworkId(SubnetworkId subnetworkId)
Sets the identity of the subnework.
|
public Subnetwork.Builder setSubnetworkId(SubnetworkId subnetworkId)
SubnetworkInfo.BuildersetSubnetworkId in class SubnetworkInfo.Builderpublic Subnetwork.Builder setDescription(String description)
SubnetworkInfo.BuildersetDescription in class SubnetworkInfo.Builderpublic Subnetwork.Builder setNetwork(NetworkId network)
SubnetworkInfo.BuildersetNetwork in class SubnetworkInfo.Builderpublic Subnetwork.Builder setIpRange(String ipRange)
SubnetworkInfo.Builder192.168.0.0/16. Ranges must be unique and
non-overlapping within a network.setIpRange in class SubnetworkInfo.Builderpublic Subnetwork build()
SubnetworkInfo.BuilderSubnetworkInfo object.build in class SubnetworkInfo.BuilderCopyright © 2019 Google LLC. All rights reserved.