org.jclouds.googlecomputeengine.domain
Class Route

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

@Beta
public final class Route
extends Resource

Represents a route resource.

Author:
Andrew Bayer
See Also:

Nested Class Summary
static class Route.Builder
           
static class Route.Warning
          If potential misconfigurations are detected for this route, this field will be populated with warning messages.
 
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
 
Method Summary
static Route.Builder builder()
           
 String getDestRange()
           
 URI getNetwork()
           
 com.google.common.base.Optional<URI> getNextHopGateway()
           
 com.google.common.base.Optional<URI> getNextHopInstance()
           
 com.google.common.base.Optional<String> getNextHopIp()
           
 com.google.common.base.Optional<URI> getNextHopNetwork()
           
 Integer getPriority()
           
 Set<String> getTags()
           
 Set<Route.Warning> getWarnings()
           
protected  com.google.common.base.Objects.ToStringHelper string()
          
 Route.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
 

Method Detail

getNetwork

public URI getNetwork()
Returns:
Network for this Route.

getTags

public Set<String> getTags()
Returns:
The set of instance items to which this route applies.

getDestRange

public String getDestRange()
Returns:
The destination range of outgoing packets that this route applies to.

getPriority

public Integer getPriority()
Returns:
The priority of this route. Priority is used to break ties in the case where there is more than one matching route of maximum length. A lower value is higher priority; a priority of 100 is higher than 200.

getNextHopInstance

public com.google.common.base.Optional<URI> getNextHopInstance()
Returns:
The fully-qualified URL to an instance that should handle matching packets.

getNextHopIp

public com.google.common.base.Optional<String> getNextHopIp()
Returns:
The network IP address of an instance that should handle matching packets.

getNextHopNetwork

public com.google.common.base.Optional<URI> getNextHopNetwork()
Returns:
The URL of the local network if it should handle matching packets.

getNextHopGateway

public com.google.common.base.Optional<URI> getNextHopGateway()
Returns:
The URL to a gateway that should handle matching packets. Currently, this is only the internet gateway.

getWarnings

public Set<Route.Warning> getWarnings()
Returns:
If potential misconfigurations are detected for this route, this field will be populated with warning messages.

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 Route.Builder builder()

toBuilder

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


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