Compute Engine API v1beta13 (revision 19)



com.google.api.services.compute.model
Class NetworkInterface

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.compute.model.NetworkInterface
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class NetworkInterface
extends GenericJson

A network interface resource attached to an instance.

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()

Author:
Google, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
NetworkInterface()
           
 
Method Summary
 List<AccessConfig> getAccessConfigs()
          Array of configurations for this interface.
 String getKind()
          Type of the resource.
 String getName()
          Name of the resource, 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 to assign to this instance.
 NetworkInterface setAccessConfigs(List<AccessConfig> accessConfigs)
          Array of configurations for this interface.
 NetworkInterface setKind(String kind)
          Type of the resource.
 NetworkInterface setName(String name)
          Name of the resource, 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 to assign to this instance.
 
Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkInterface

public NetworkInterface()
Method Detail

getAccessConfigs

public List<AccessConfig> getAccessConfigs()
Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access. The value returned may be null.


setAccessConfigs

public NetworkInterface setAccessConfigs(List<AccessConfig> accessConfigs)
Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access. The value set may be null.


getKind

public String getKind()
Type of the resource. The value returned may be null.


setKind

public NetworkInterface setKind(String kind)
Type of the resource. The value set may be null.


getName

public String getName()
Name of the resource, determined by the server; for network devices, these are e.g. eth0, eth1, etc. (output only). The value returned may be null.


setName

public NetworkInterface setName(String name)
Name of the resource, determined by the server; for network devices, these are e.g. eth0, eth1, etc. (output only). The value set may be null.


getNetwork

public String getNetwork()
URL of the network resource attached to this interface. The value returned may be null.


setNetwork

public NetworkInterface setNetwork(String network)
URL of the network resource attached to this interface. The value set may be null.


getNetworkIP

public String getNetworkIP()
An optional IPV4 internal network address to assign to this instance. If not specified, one will be assigned from the available range. The value returned may be null.


setNetworkIP

public NetworkInterface setNetworkIP(String networkIP)
An optional IPV4 internal network address to assign to this instance. If not specified, one will be assigned from the available range. The value set may be null.