public final class NetworkInterface extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json
Upgrade warning: starting with version 1.12 getResponseHeaders()
is removed, instead use
JsonHttpRequest.getLastResponseHeaders()
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
NetworkInterface() |
Modifier and Type | Method and Description |
---|---|
List<AccessConfig> |
getAccessConfigs()
Array of configurations for this interface.
|
String |
getName()
Name of the network interface, determined by the server; for network devices, these are e.g.
|
String |
getNetwork()
URL of the network resource attached to this interface.
|
String |
getNetworkIP()
An optional IPV4 internal network address assigned to the instance for this network interface
(output only).
|
NetworkInterface |
setAccessConfigs(List<AccessConfig> accessConfigs)
Array of configurations for this interface.
|
NetworkInterface |
setName(String name)
Name of the network interface, determined by the server; for network devices, these are e.g.
|
NetworkInterface |
setNetwork(String network)
URL of the network resource attached to this interface.
|
NetworkInterface |
setNetworkIP(String networkIP)
An optional IPV4 internal network address assigned to the instance for this network interface
(output only).
|
clone, getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public List<AccessConfig> getAccessConfigs()
null
.public NetworkInterface setAccessConfigs(List<AccessConfig> accessConfigs)
null
.public String getName()
null
.public NetworkInterface setName(String name)
null
.public String getNetwork()
null
.public NetworkInterface setNetwork(String network)
null
.public String getNetworkIP()
null
.public NetworkInterface setNetworkIP(String networkIP)
null
.