Compute Engine API v1beta13 (revision 24)



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

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
 NetworkInterface clone()
           
 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 set(String fieldName, Object value)
           
 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
getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, 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.

Returns:
value or null for none

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.

Parameters:
accessConfigs - accessConfigs or null for none

getKind

public String getKind()
Type of the resource.

Returns:
value or null for none

setKind

public NetworkInterface setKind(String kind)
Type of the resource.

Parameters:
kind - kind or null for none

getName

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

Returns:
value or null for none

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

Parameters:
name - name or null for none

getNetwork

public String getNetwork()
URL of the network resource attached to this interface.

Returns:
value or null for none

setNetwork

public NetworkInterface setNetwork(String network)
URL of the network resource attached to this interface.

Parameters:
network - network or null for none

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.

Returns:
value or null for none

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.

Parameters:
networkIP - networkIP or null for none

set

public NetworkInterface set(String fieldName,
                            Object value)
Overrides:
set in class GenericJson

clone

public NetworkInterface clone()
Overrides:
clone in class GenericJson