public class SubnetworkInfo extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
SubnetworkInfo.Builder
A builder for
SubnetworkInfo objects. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Long |
getCreationTimestamp()
Returns the creation timestamp in milliseconds since epoch.
|
String |
getDescription()
Returns a textual description of the subnetwork.
|
String |
getGatewayAddress()
Returns the gateway IPv4 address for this subnetwork, selected by the service.
|
String |
getGeneratedId()
Returns the service-generated unique identifier for the subnetwork.
|
String |
getIpRange()
Returns the range of internal IPv4 addresses that are owned by this subnetwork.
|
NetworkId |
getNetwork()
Returns the identity of the network to which this subnetwork belongs.
|
SubnetworkId |
getSubnetworkId()
Returns the subnetwork identity.
|
int |
hashCode() |
static SubnetworkInfo.Builder |
newBuilder(SubnetworkId subnetworkId,
NetworkId network,
String ipRange)
Returns a builder for a
SubnetworkInfo object given the identity of the subnetwork, the
identity of the network this subnetwork belongs to and the range of IPv4 addresses owned by
this subnetwork. |
static SubnetworkInfo |
of(SubnetworkId subnetworkId,
NetworkId network,
String ipRange)
Returns a
SubnetworkInfo object given the identity of the subnetwork, the identity of
the network this subnetwork belongs to and the range of IPv4 addresses owned by this
subnetwork. |
SubnetworkInfo.Builder |
toBuilder()
Returns a builder for the current subnetwork.
|
String |
toString() |
public String getGeneratedId()
public Long getCreationTimestamp()
public SubnetworkId getSubnetworkId()
public String getDescription()
public String getGatewayAddress()
public NetworkId getNetwork()
public String getIpRange()
192.168.0.0/16
. Ranges must be unique and
non-overlapping within a network.public SubnetworkInfo.Builder toBuilder()
public static SubnetworkInfo.Builder newBuilder(SubnetworkId subnetworkId, NetworkId network, String ipRange)
SubnetworkInfo
object given the identity of the subnetwork, the
identity of the network this subnetwork belongs to and the range of IPv4 addresses owned by
this subnetwork. ipRange
must be a CIDR specification, for example: 192.168.0.0/16
.public static SubnetworkInfo of(SubnetworkId subnetworkId, NetworkId network, String ipRange)
SubnetworkInfo
object given the identity of the subnetwork, the identity of
the network this subnetwork belongs to and the range of IPv4 addresses owned by this
subnetwork. ipRange
must be a CIDR specification, for example: 192.168.0.0/16
.Copyright © 2019 Google LLC. All rights reserved.