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.Builder
setSubnetworkId
in class SubnetworkInfo.Builder
public Subnetwork.Builder setDescription(String description)
SubnetworkInfo.Builder
setDescription
in class SubnetworkInfo.Builder
public Subnetwork.Builder setNetwork(NetworkId network)
SubnetworkInfo.Builder
setNetwork
in class SubnetworkInfo.Builder
public Subnetwork.Builder setIpRange(String ipRange)
SubnetworkInfo.Builder
192.168.0.0/16
. Ranges must be unique and
non-overlapping within a network.setIpRange
in class SubnetworkInfo.Builder
public Subnetwork build()
SubnetworkInfo.Builder
SubnetworkInfo
object.build
in class SubnetworkInfo.Builder
Copyright © 2019 Google LLC. All rights reserved.