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
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
NetworkInterface() |
Modifier and Type | Method and Description |
---|---|
NetworkInterface |
clone() |
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 |
set(String fieldName,
Object value) |
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).
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public List<AccessConfig> getAccessConfigs()
null
for nonepublic NetworkInterface setAccessConfigs(List<AccessConfig> accessConfigs)
accessConfigs
- accessConfigs or null
for nonepublic String getName()
null
for nonepublic NetworkInterface setName(String name)
name
- name or null
for nonepublic String getNetwork()
null
for nonepublic NetworkInterface setNetwork(String network)
network
- network or null
for nonepublic String getNetworkIP()
null
for nonepublic NetworkInterface setNetworkIP(String networkIP)
networkIP
- networkIP or null
for nonepublic NetworkInterface set(String fieldName, Object value)
set
in class GenericJson
public NetworkInterface clone()
clone
in class GenericJson