org.jclouds.googlecomputeengine.domain
Class Instance.NetworkInterface.AccessConfig

java.lang.Object
  extended by org.jclouds.googlecomputeengine.domain.Instance.NetworkInterface.AccessConfig
Enclosing class:
Instance.NetworkInterface

public static final class Instance.NetworkInterface.AccessConfig
extends Object

Access configuration to an instance's network.

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.


Nested Class Summary
static class Instance.NetworkInterface.AccessConfig.Builder
           
static class Instance.NetworkInterface.AccessConfig.Type
           
 
Method Summary
static Instance.NetworkInterface.AccessConfig.Builder builder()
           
 boolean equals(Object obj)
          
 com.google.common.base.Optional<String> getName()
           
 com.google.common.base.Optional<String> getNatIP()
           
 Instance.NetworkInterface.AccessConfig.Type getType()
           
 int hashCode()
          
protected  com.google.common.base.Objects.ToStringHelper string()
          
 Instance.NetworkInterface.AccessConfig.Builder toBuilder()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getName

public com.google.common.base.Optional<String> getName()
Returns:
name of this access configuration.

getType

public Instance.NetworkInterface.AccessConfig.Type getType()
Returns:
type of configuration. Must be set to ONE_TO_ONE_NAT. This configures port-for-port NAT to the internet.

getNatIP

@Nullable
public com.google.common.base.Optional<String> getNatIP()
Returns:
an external IP address associated with this instance, if there is one.

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()


toString

public String toString()

Overrides:
toString in class Object

builder

public static Instance.NetworkInterface.AccessConfig.Builder builder()

toBuilder

public Instance.NetworkInterface.AccessConfig.Builder toBuilder()


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.