public class NetworkInfo extends Object implements Serializable
A network lives in a project and is isolated from other networks in the project. A project can have up to five different networks.
| Modifier and Type | Class and Description |
|---|---|
static class |
NetworkInfo.Builder
A builder for
NetworkInfo objects. |
| Modifier and Type | Method and Description |
|---|---|
static NetworkInfo.Builder |
builder(NetworkId networkId,
NetworkConfiguration configuration)
Returns a builder for a
NetworkInfo object given the network identity and its
configuration. |
<T extends NetworkConfiguration> |
configuration()
Returns the network configuration.
|
Long |
creationTimestamp()
Returns the creation timestamp in milliseconds since epoch.
|
String |
description()
Returns a textual description of the network.
|
boolean |
equals(Object obj) |
String |
generatedId()
Returns the service-generated unique identifier for the network.
|
int |
hashCode() |
NetworkId |
networkId()
Returns the network identity.
|
static NetworkInfo |
of(NetworkId networkId,
NetworkConfiguration configuration)
Returns a
NetworkInfo object given the network identity. |
NetworkInfo.Builder |
toBuilder()
Returns a builder for the current network.
|
String |
toString() |
public String generatedId()
public Long creationTimestamp()
public NetworkId networkId()
public String description()
public <T extends NetworkConfiguration> T configuration()
StandardNetworkConfiguration for standard
networks with associated IPv4 range. Returns SubnetNetworkConfiguration for networks
that could be divided into subnetworks, up to one per region, each with its own address range.public NetworkInfo.Builder toBuilder()
public static NetworkInfo.Builder builder(NetworkId networkId, NetworkConfiguration configuration)
NetworkInfo object given the network identity and its
configuration. Use StandardNetworkConfiguration to create a standard network with
associated address range. Use SubnetNetworkConfiguration to create a network that
supports subnetworks, up to one per region, each with its own address range.public static NetworkInfo of(NetworkId networkId, NetworkConfiguration configuration)
NetworkInfo object given the network identity. Use
StandardNetworkConfiguration to create a standard network with associated address
range. Use SubnetNetworkConfiguration to create a network that supports subnetworks, up
to one per region, each with its own address range.Copyright © 2016 Google. All rights reserved.