org.jclouds.googlecomputeengine.domain
Class Network

java.lang.Object
  extended by org.jclouds.googlecomputeengine.domain.Resource
      extended by org.jclouds.googlecomputeengine.domain.Network

@Beta
public final class Network
extends Resource

Represents a network used to enable instance communication.

See Also:

Nested Class Summary
static class Network.Builder
           
 
Nested classes/interfaces inherited from class org.jclouds.googlecomputeengine.domain.Resource
Resource.Kind
 
Field Summary
 
Fields inherited from class org.jclouds.googlecomputeengine.domain.Resource
creationTimestamp, description, id, kind, name, selfLink
 
Constructor Summary
protected Network(String id, Date creationTimestamp, URI selfLink, String name, String description, String IPv4Range, String gatewayIPv4)
           
 
Method Summary
static Network.Builder builder()
           
 com.google.common.base.Optional<String> getGatewayIPv4()
          This must be within the range specified by IPv4Range, and is typically the first usable address in that range.
 String getIPv4Range()
           
protected  com.google.common.base.Objects.ToStringHelper string()
          
 Network.Builder toBuilder()
           
 String toString()
          
 
Methods inherited from class org.jclouds.googlecomputeengine.domain.Resource
equals, getCreationTimestamp, getDescription, getId, getKind, getName, getSelfLink, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Network

@ConstructorProperties(value={"id","creationTimestamp","selfLink","name","description","IPv4Range","gatewayIPv4"})
protected Network(String id,
                                             Date creationTimestamp,
                                             URI selfLink,
                                             String name,
                                             String description,
                                             String IPv4Range,
                                             String gatewayIPv4)
Method Detail

getIPv4Range

public String getIPv4Range()
Returns:
Required; The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16.

getGatewayIPv4

public com.google.common.base.Optional<String> getGatewayIPv4()
This must be within the range specified by IPv4Range, and is typically the first usable address in that range. If not specified, the default value is the first usable address in IPv4Range.

Returns:
an optional address that is used for default routing to other networks.

string

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

Overrides:
string in class Resource

toString

public String toString()

Overrides:
toString in class Resource

builder

public static Network.Builder builder()

toBuilder

public Network.Builder toBuilder()
Overrides:
toBuilder in class Resource


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