public final class Route
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
Route.Warnings
Model definition for RouteWarnings.
|
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Route() |
| Modifier and Type | Method and Description |
|---|---|
Route |
clone() |
List<RouteAsPath> |
getAsPaths()
Output only.
|
String |
getCreationTimestamp()
Output only.
|
String |
getDescription()
An optional description of this resource.
|
String |
getDestRange()
The destination range of outgoing packets that this route applies to.
|
BigInteger |
getId()
Output only.
|
String |
getKind()
Output only.
|
String |
getName()
Name of the resource.
|
String |
getNetwork()
Fully-qualified URL of the network that this route applies to.
|
String |
getNextHopGateway()
The URL to a gateway that should handle matching packets.
|
String |
getNextHopHub()
Output only.
|
String |
getNextHopIlb()
The URL to a forwarding rule of typeloadBalancingScheme=INTERNAL that should handle matching
packets or the IP address of the forwarding Rule.
|
String |
getNextHopInstance()
The URL to an instance that should handle matching packets.
|
String |
getNextHopInterconnectAttachment()
Output only.
|
Long |
getNextHopInterRegionCost()
Output only.
|
String |
getNextHopIp()
The network IP address of an instance that should handle matching packets.
|
Long |
getNextHopMed()
Output only.
|
String |
getNextHopNetwork()
The URL of the local network if it should handle matching packets.
|
String |
getNextHopOrigin()
Output only.
|
String |
getNextHopPeering()
Output only.
|
String |
getNextHopVpnTunnel()
The URL to a VpnTunnel that should handle matching packets.
|
RouteParams |
getParams()
Input only.
|
Long |
getPriority()
The priority of this route.
|
String |
getRouteStatus()
[Output only] The status of the route.
|
String |
getRouteType()
Output only.
|
String |
getSelfLink()
[Output Only] Server-defined fully-qualified URL for this resource.
|
List<String> |
getTags()
A list of instance tags to which this route applies.
|
List<Route.Warnings> |
getWarnings()
Output only.
|
Route |
set(String fieldName,
Object value) |
Route |
setAsPaths(List<RouteAsPath> asPaths)
Output only.
|
Route |
setCreationTimestamp(String creationTimestamp)
Output only.
|
Route |
setDescription(String description)
An optional description of this resource.
|
Route |
setDestRange(String destRange)
The destination range of outgoing packets that this route applies to.
|
Route |
setId(BigInteger id)
Output only.
|
Route |
setKind(String kind)
Output only.
|
Route |
setName(String name)
Name of the resource.
|
Route |
setNetwork(String network)
Fully-qualified URL of the network that this route applies to.
|
Route |
setNextHopGateway(String nextHopGateway)
The URL to a gateway that should handle matching packets.
|
Route |
setNextHopHub(String nextHopHub)
Output only.
|
Route |
setNextHopIlb(String nextHopIlb)
The URL to a forwarding rule of typeloadBalancingScheme=INTERNAL that should handle matching
packets or the IP address of the forwarding Rule.
|
Route |
setNextHopInstance(String nextHopInstance)
The URL to an instance that should handle matching packets.
|
Route |
setNextHopInterconnectAttachment(String nextHopInterconnectAttachment)
Output only.
|
Route |
setNextHopInterRegionCost(Long nextHopInterRegionCost)
Output only.
|
Route |
setNextHopIp(String nextHopIp)
The network IP address of an instance that should handle matching packets.
|
Route |
setNextHopMed(Long nextHopMed)
Output only.
|
Route |
setNextHopNetwork(String nextHopNetwork)
The URL of the local network if it should handle matching packets.
|
Route |
setNextHopOrigin(String nextHopOrigin)
Output only.
|
Route |
setNextHopPeering(String nextHopPeering)
Output only.
|
Route |
setNextHopVpnTunnel(String nextHopVpnTunnel)
The URL to a VpnTunnel that should handle matching packets.
|
Route |
setParams(RouteParams params)
Input only.
|
Route |
setPriority(Long priority)
The priority of this route.
|
Route |
setRouteStatus(String routeStatus)
[Output only] The status of the route.
|
Route |
setRouteType(String routeType)
Output only.
|
Route |
setSelfLink(String selfLink)
[Output Only] Server-defined fully-qualified URL for this resource.
|
Route |
setTags(List<String> tags)
A list of instance tags to which this route applies.
|
Route |
setWarnings(List<Route.Warnings> warnings)
Output only.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic List<RouteAsPath> getAsPaths()
null for nonepublic Route setAsPaths(List<RouteAsPath> asPaths)
asPaths - asPaths or null for nonepublic String getCreationTimestamp()
null for nonepublic Route setCreationTimestamp(String creationTimestamp)
creationTimestamp - creationTimestamp or null for nonepublic String getDescription()
null for nonepublic Route setDescription(String description)
description - description or null for nonepublic String getDestRange()
null for nonepublic Route setDestRange(String destRange)
destRange - destRange or null for nonepublic BigInteger getId()
null for nonepublic Route setId(BigInteger id)
id - id or null for nonepublic String getKind()
null for nonepublic Route setKind(String kind)
kind - kind or null for nonepublic String getName()
null for nonepublic Route setName(String name)
name - name or null for nonepublic String getNetwork()
null for nonepublic Route setNetwork(String network)
network - network or null for nonepublic String getNextHopGateway()
null for nonepublic Route setNextHopGateway(String nextHopGateway)
nextHopGateway - nextHopGateway or null for nonepublic String getNextHopHub()
null for nonepublic Route setNextHopHub(String nextHopHub)
nextHopHub - nextHopHub or null for nonepublic String getNextHopIlb()
null for nonepublic Route setNextHopIlb(String nextHopIlb)
nextHopIlb - nextHopIlb or null for nonepublic String getNextHopInstance()
null for nonepublic Route setNextHopInstance(String nextHopInstance)
nextHopInstance - nextHopInstance or null for nonepublic Long getNextHopInterRegionCost()
null for nonepublic Route setNextHopInterRegionCost(Long nextHopInterRegionCost)
nextHopInterRegionCost - nextHopInterRegionCost or null for nonepublic String getNextHopInterconnectAttachment()
null for nonepublic Route setNextHopInterconnectAttachment(String nextHopInterconnectAttachment)
nextHopInterconnectAttachment - nextHopInterconnectAttachment or null for nonepublic String getNextHopIp()
null for nonepublic Route setNextHopIp(String nextHopIp)
nextHopIp - nextHopIp or null for nonepublic Long getNextHopMed()
null for nonepublic Route setNextHopMed(Long nextHopMed)
nextHopMed - nextHopMed or null for nonepublic String getNextHopNetwork()
null for nonepublic Route setNextHopNetwork(String nextHopNetwork)
nextHopNetwork - nextHopNetwork or null for nonepublic String getNextHopOrigin()
null for nonepublic Route setNextHopOrigin(String nextHopOrigin)
nextHopOrigin - nextHopOrigin or null for nonepublic String getNextHopPeering()
null for nonepublic Route setNextHopPeering(String nextHopPeering)
nextHopPeering - nextHopPeering or null for nonepublic String getNextHopVpnTunnel()
null for nonepublic Route setNextHopVpnTunnel(String nextHopVpnTunnel)
nextHopVpnTunnel - nextHopVpnTunnel or null for nonepublic RouteParams getParams()
null for nonepublic Route setParams(RouteParams params)
params - params or null for nonepublic Long getPriority()
null for nonepublic Route setPriority(Long priority)
priority - priority or null for nonepublic String getRouteStatus()
null for nonepublic Route setRouteStatus(String routeStatus)
routeStatus - routeStatus or null for nonepublic String getRouteType()
null for nonepublic Route setRouteType(String routeType)
routeType - routeType or null for nonepublic String getSelfLink()
null for nonepublic Route setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic List<String> getTags()
null for nonepublic Route setTags(List<String> tags)
tags - tags or null for nonepublic List<Route.Warnings> getWarnings()
null for nonepublic Route setWarnings(List<Route.Warnings> warnings)
warnings - warnings or null for nonepublic Route set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Route clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2026 Google. All rights reserved.