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 |
---|---|
boolean |
equals(Object obj) |
List<NetworkInterface.AccessConfig> |
getAccessConfigurations()
Returns a list of access configurations for the network interface.
|
String |
getName()
Returns the name of the network interface, generated by the service.
|
NetworkId |
getNetwork()
Returns the identity of the network this interface applies to.
|
String |
getNetworkIp()
An optional IPv4 internal network address assigned by the service to the instance for this
network interface.
|
SubnetworkId |
getSubnetwork()
Returns the identity of the subnetwork this interface applies to.
|
int |
hashCode() |
static NetworkInterface.Builder |
newBuilder(NetworkId networkId)
Returns a builder for a
NetworkInterface object given the network's identity. |
static NetworkInterface.Builder |
newBuilder(String network)
Returns a builder for a
NetworkInterface object given the network's name. |
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. |
NetworkInterface.Builder |
toBuilder()
Returns a builder for the current network interface.
|
String |
toString() |
public String getName()
eth0
, eth1
, etc.public NetworkId getNetwork()
public String getNetworkIp()
public SubnetworkId getSubnetwork()
public List<NetworkInterface.AccessConfig> getAccessConfigurations()
public NetworkInterface.Builder toBuilder()
public static NetworkInterface.Builder newBuilder(NetworkId networkId)
NetworkInterface
object given the network's identity.public static NetworkInterface.Builder newBuilder(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 © 2019 Google LLC. All rights reserved.