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