org.jclouds.googlecomputeengine.domain
Class Route
java.lang.Object
org.jclouds.googlecomputeengine.domain.Resource
org.jclouds.googlecomputeengine.domain.Route
@Beta
public final class Route
- extends Resource
Represents a route resource.
- 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 |
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-2014 The Apache Software Foundation. All Rights Reserved.