public class NetworkInterface extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
NetworkInterface.AccessConfig
Access configuration for a Google Compute Engine instance's network interface.
|
static class |
NetworkInterface.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<NetworkInterface.AccessConfig> |
accessConfigurations()
Returns a list of access configurations for the network interface.
|
static NetworkInterface.Builder |
builder(NetworkId networkId)
Returns a builder for a
NetworkInterface object given the network's identity. |
static NetworkInterface.Builder |
builder(String network)
Returns a builder for a
NetworkInterface object given the network's name. |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
name()
Returns the name of the network interface, generated by the service.
|
NetworkId |
network()
Returns the identity of the network this interface applies to.
|
String |
networkIp()
An optional IPv4 internal network address assigned by the service to the instance for this
network interface.
|
static NetworkInterface |
of(NetworkId networkId)
Returns a
NetworkInterface object given the network's identity. |
static NetworkInterface |
of(String network)
Returns a
NetworkInterface object given the network's name. |
SubnetworkId |
subnetwork()
Returns the identity of the subnetwork this interface applies to.
|
NetworkInterface.Builder |
toBuilder()
Returns a builder for the current network interface.
|
String |
toString() |
public String name()
eth0, eth1, etc.public NetworkId network()
public String networkIp()
public SubnetworkId subnetwork()
public List<NetworkInterface.AccessConfig> accessConfigurations()
public NetworkInterface.Builder toBuilder()
public static NetworkInterface.Builder builder(NetworkId networkId)
NetworkInterface object given the network's identity.public static NetworkInterface.Builder builder(String network)
NetworkInterface object given the network's name.public static NetworkInterface of(NetworkId networkId)
NetworkInterface object given the network's identity.public static NetworkInterface of(String network)
NetworkInterface object given the network's name.Copyright © 2016 Google. All rights reserved.