org.jclouds.googlecomputeengine.domain
Class Instance.NetworkInterface.AccessConfig
java.lang.Object
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.
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-2014 The Apache Software Foundation. All Rights Reserved.